From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001
From: tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Date: Sat, 31 Jul 2010 19:48:06 +0000
Subject: Trinity Qt initial conversion

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
 kppp/logview/export.cpp | 92 ++++++++++++++++++++++++-------------------------
 1 file changed, 46 insertions(+), 46 deletions(-)

(limited to 'kppp/logview/export.cpp')

diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp
index 7f810a6a..14c614c4 100644
--- a/kppp/logview/export.cpp
+++ b/kppp/logview/export.cpp
@@ -22,17 +22,17 @@
 
 #include "export.h"
 
-#include <qpushbutton.h>
-#include <qtextcodec.h>
+#include <tqpushbutton.h>
+#include <tqtextcodec.h>
 
 class Export;
 
 /***** ExportFormats *****/
 static struct {
     int id;
-    QString name;
-    QString desc;
-    QString ext;
+    TQString name;
+    TQString desc;
+    TQString ext;
   }
 
 ExportFormats [] = {
@@ -47,7 +47,7 @@ ExportFormats [] = {
 
 
 /***** ExportWizard *****/
-ExportWizard::ExportWizard(QWidget *parent, const QString &_date)
+ExportWizard::ExportWizard(TQWidget *parent, const TQString &_date)
   : KWizard(parent, "", true) {
   date = _date;
 
@@ -56,13 +56,13 @@ ExportWizard::ExportWizard(QWidget *parent, const QString &_date)
   setCaption(i18n("Export Wizard for kPPP Logs"));
 
   /* format-page */
-  formatPage = new QWidget();
-  QHBoxLayout *formatLayout = new QHBoxLayout(formatPage);
+  formatPage = new TQWidget();
+  TQHBoxLayout *formatLayout = new TQHBoxLayout(formatPage);
 
-  typeList = new QListBox(formatPage);
-  connect(typeList, SIGNAL(highlighted(int)), SLOT (typeHighlighted(int)));
+  typeList = new TQListBox(formatPage);
+  connect(typeList, TQT_SIGNAL(highlighted(int)), TQT_SLOT (typeHighlighted(int)));
   typeList->setMinimumSize(50, 200);
-  QToolTip::add(typeList, i18n("List with possible output formats"));
+  TQToolTip::add(typeList, i18n("List with possible output formats"));
   int i=0;
   while (ExportFormats[i].id) { // add each format to the list
     typeList->insertItem(i18n(ExportFormats[i].name.utf8()));
@@ -72,7 +72,7 @@ ExportWizard::ExportWizard(QWidget *parent, const QString &_date)
   formatLayout->addWidget(typeList);
   formatLayout->addSpacing(10);
 
-  typeInfo = new QLabel(formatPage);
+  typeInfo = new TQLabel(formatPage);
   typeInfo->setAlignment(Qt::AlignTop | Qt::WordBreak);
   typeInfo->setText(i18n("<qt><b>Please choose the output format on the left side.</b></qt>"));
   typeInfo->setMinimumSize(350, 200);
@@ -82,25 +82,25 @@ ExportWizard::ExportWizard(QWidget *parent, const QString &_date)
 
 
   /* filename-page */
-  filenamePage = new QWidget();
-  QVBoxLayout *filenameLayout = new QVBoxLayout( filenamePage );
+  filenamePage = new TQWidget();
+  TQVBoxLayout *filenameLayout = new TQVBoxLayout( filenamePage );
 
-  QLabel *fnLbl = new QLabel(filenamePage);
+  TQLabel *fnLbl = new TQLabel(filenamePage);
   fnLbl->setText(i18n("Filename:"));
   filenameLayout->addWidget(fnLbl);
 
-  fnLine = new QLineEdit(filenamePage);
+  fnLine = new TQLineEdit(filenamePage);
   fnLine->setText(i18n("[No file selected]"));
   fnLine->setReadOnly(true);
   filenameLayout->addWidget(fnLine);
   filenameLayout->addStretch(1);
 
-  fnGet = new QPushButton(filenamePage);
+  fnGet = new TQPushButton(filenamePage);
   fnGet->setText(i18n("&Select File..."));
   fnGet->setMaximumWidth(200);
-  QToolTip::add(fnGet, i18n("Select the filename of the exported output file"));
+  TQToolTip::add(fnGet, i18n("Select the filename of the exported output file"));
   filenameLayout->addWidget(fnGet);
-  connect(fnGet, SIGNAL(clicked()), SLOT(getFilename()));
+  connect(fnGet, TQT_SIGNAL(clicked()), TQT_SLOT(getFilename()));
   filenameLayout->addStretch(2);
 
   addPage(filenamePage, i18n("Selection of Filename"));
@@ -131,7 +131,7 @@ void ExportWizard::getFilename() {
   if ( i == -1 )
       return;
   // prepare filter: e.g.: HTML (*.html *.HTML)
-  QString filter = "*." + ExportFormats[i].ext + " *." + ExportFormats[i].ext.upper() + "|" +
+  TQString filter = "*." + ExportFormats[i].ext + " *." + ExportFormats[i].ext.upper() + "|" +
                    i18n(ExportFormats[i].name.utf8()) + " (*." + ExportFormats[i].ext + " *." +
                    ExportFormats[i].ext.upper() + ")";
 
@@ -144,7 +144,7 @@ void ExportWizard::getFilename() {
 
 void ExportWizard::reject()  {
     hide();
-    filename = QString::null;
+    filename = TQString::null;
 }
 
 void ExportWizard::accept() {
@@ -154,7 +154,7 @@ void ExportWizard::accept() {
 
 
 /***** Export *****/
-Export::Export(const QString &_filename)
+Export::Export(const TQString &_filename)
   : filename(_filename),
     buffer("")
 {
@@ -179,24 +179,24 @@ bool Export::closeFile() {
 
 
 /***** CSVExport *****/
-CSVExport::CSVExport(const QString &filename, const QString &_separator)
+CSVExport::CSVExport(const TQString &filename, const TQString &_separator)
   : Export(filename),
     separator(_separator)
 {
 }
 
-void CSVExport::addHeadline(const QString &a, const QString &b,
-			     const QString &c, const QString &d,
-			     const QString &e, const QString &f,
-			     const QString &g, const QString &h) {
+void CSVExport::addHeadline(const TQString &a, const TQString &b,
+			     const TQString &c, const TQString &d,
+			     const TQString &e, const TQString &f,
+			     const TQString &g, const TQString &h) {
   // no especially style
   addDataline(a, b, c, d, e, f, g, h);
 }
 
-void CSVExport::addDataline(const QString &a, const QString &b,
-			    const QString &c, const QString &d,
-			    const QString &e, const QString &f,
-			    const QString &g, const QString &h) {
+void CSVExport::addDataline(const TQString &a, const TQString &b,
+			    const TQString &c, const TQString &d,
+			    const TQString &e, const TQString &f,
+			    const TQString &g, const TQString &h) {
   buffer+=a + separator +
           b + separator +
           c + separator +
@@ -217,14 +217,14 @@ void CSVExport::setFinishCode() {
 
 
 /***** HTMLExport *****/
-HTMLExport::HTMLExport(const QString &filename, const QString &date)
+HTMLExport::HTMLExport(const TQString &filename, const TQString &date)
   : Export(filename) {
-  QString title = i18n("Connection log for %1").arg(date);
+  TQString title = i18n("Connection log for %1").arg(date);
   buffer = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
   buffer.append("<html>\n<head>\n  <title>"+title+"</title>\n");
-  buffer.append(QString::fromLatin1("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
-                + QTextCodec::codecForLocale()->mimeName() +
-                QString::fromLatin1("\">"));
+  buffer.append(TQString::fromLatin1("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
+                + TQTextCodec::codecForLocale()->mimeName() +
+                TQString::fromLatin1("\">"));
   buffer.append("\n</head>\n<body>\n<h1>"+title+"</h1>\n\n");
   buffer.append("<table width=\"100%\" border=\"1\">\n");
 
@@ -234,13 +234,13 @@ HTMLExport::HTMLExport(const QString &filename, const QString &date)
   tdEndCode   = "</td>";
 }
 
-void HTMLExport::addHeadline(const QString &a, const QString &b,
-			     const QString &c, const QString &d,
-			     const QString &e, const QString &f,
-			     const QString &g, const QString &h) {
+void HTMLExport::addHeadline(const TQString &a, const TQString &b,
+			     const TQString &c, const TQString &d,
+			     const TQString &e, const TQString &f,
+			     const TQString &g, const TQString &h) {
   // simply bold font
-  QString bak1 = tdStartCode; tdStartCode.append("<b>");
-  QString bak2 = tdEndCode; tdEndCode.prepend("</b>");
+  TQString bak1 = tdStartCode; tdStartCode.append("<b>");
+  TQString bak2 = tdEndCode; tdEndCode.prepend("</b>");
 
   addDataline(a, b, c, d, e, f, g, h);
 
@@ -249,10 +249,10 @@ void HTMLExport::addHeadline(const QString &a, const QString &b,
   tdEndCode = bak2;
 }
 
-void HTMLExport::addDataline(const QString &a, const QString &b,
-			     const QString &c, const QString &d,
-			     const QString &e, const QString &f,
-			     const QString &g, const QString &h) {
+void HTMLExport::addDataline(const TQString &a, const TQString &b,
+			     const TQString &c, const TQString &d,
+			     const TQString &e, const TQString &f,
+			     const TQString &g, const TQString &h) {
   buffer+=  trStartCode +
   	    tdStartCode + a + tdEndCode +
   	    tdStartCode + b + tdEndCode +
-- 
cgit v1.2.3