Browse Source

Trinity Qt initial conversion


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19
tpearson 8 years ago
parent
commit
c663b64409
100 changed files with 2159 additions and 2159 deletions
  1. 22
    22
      drkonqi/backtrace.cpp
  2. 5
    5
      drkonqi/backtrace.h
  3. 2
    2
      drkonqi/crashtest.cpp
  4. 29
    29
      drkonqi/debugger.cpp
  5. 10
    10
      drkonqi/debugger.h
  6. 4
    4
      drkonqi/drbugreport.cpp
  7. 3
    3
      drkonqi/drbugreport.h
  8. 20
    20
      drkonqi/krashconf.cpp
  9. 36
    36
      drkonqi/krashconf.h
  10. 9
    9
      drkonqi/krashdcopinterface.h
  11. 23
    23
      drkonqi/toplevel.cpp
  12. 4
    4
      drkonqi/toplevel.h
  13. 22
    22
      kappfinder/common.cpp
  14. 11
    11
      kappfinder/common.h
  15. 5
    5
      kappfinder/main_install.cpp
  16. 41
    41
      kappfinder/toplevel.cpp
  17. 15
    15
      kappfinder/toplevel.h
  18. 23
    23
      kate/app/kateapp.cpp
  19. 6
    6
      kate/app/kateapp.h
  20. 5
    5
      kate/app/kateappIface.cpp
  21. 5
    5
      kate/app/kateappIface.h
  22. 70
    70
      kate/app/kateconfigdialog.cpp
  23. 10
    10
      kate/app/kateconfigdialog.h
  24. 13
    13
      kate/app/kateconfigplugindialogpage.cpp
  25. 3
    3
      kate/app/kateconfigplugindialogpage.h
  26. 5
    5
      kate/app/kateconsole.cpp
  27. 3
    3
      kate/app/kateconsole.h
  28. 40
    40
      kate/app/katedocmanager.cpp
  29. 19
    19
      kate/app/katedocmanager.h
  30. 1
    1
      kate/app/katedocmanageriface.cpp
  31. 1
    1
      kate/app/katedocmanageriface.h
  32. 115
    115
      kate/app/kateexternaltools.cpp
  33. 33
    33
      kate/app/kateexternaltools.h
  34. 93
    93
      kate/app/katefilelist.cpp
  35. 26
    26
      kate/app/katefilelist.h
  36. 139
    139
      kate/app/katefileselector.cpp
  37. 22
    22
      kate/app/katefileselector.h
  38. 81
    81
      kate/app/kategrepdialog.cpp
  39. 22
    22
      kate/app/kategrepdialog.h
  40. 15
    15
      kate/app/katemailfilesdialog.cpp
  41. 5
    5
      kate/app/katemailfilesdialog.h
  42. 14
    14
      kate/app/katemain.cpp
  43. 82
    82
      kate/app/katemainwindow.cpp
  44. 8
    8
      kate/app/katemainwindow.h
  45. 1
    1
      kate/app/katemainwindowiface.cpp
  46. 73
    73
      kate/app/katemdi.cpp
  47. 37
    37
      kate/app/katemdi.h
  48. 25
    25
      kate/app/katemwmodonhddialog.cpp
  49. 4
    4
      kate/app/katemwmodonhddialog.h
  50. 13
    13
      kate/app/katepluginmanager.cpp
  51. 8
    8
      kate/app/katepluginmanager.h
  52. 31
    31
      kate/app/katesavemodifieddialog.cpp
  53. 5
    5
      kate/app/katesavemodifieddialog.h
  54. 66
    66
      kate/app/katesession.cpp
  55. 23
    23
      kate/app/katesession.h
  56. 11
    11
      kate/app/katetabwidget.cpp
  57. 9
    9
      kate/app/katetabwidget.h
  58. 42
    42
      kate/app/kateviewmanager.cpp
  59. 10
    10
      kate/app/kateviewmanager.h
  60. 54
    54
      kate/app/kateviewspace.cpp
  61. 22
    22
      kate/app/kateviewspace.h
  62. 61
    61
      kate/app/kateviewspacecontainer.cpp
  63. 10
    10
      kate/app/kateviewspacecontainer.h
  64. 11
    11
      kate/app/kbookmarkhandler.cpp
  65. 9
    9
      kate/app/kbookmarkhandler.h
  66. 50
    50
      kate/app/kwritemain.cpp
  67. 8
    8
      kate/app/kwritemain.h
  68. 1
    1
      kate/interfaces/application.cpp
  69. 1
    1
      kate/interfaces/application.h
  70. 2
    2
      kate/interfaces/documentmanager.cpp
  71. 2
    2
      kate/interfaces/documentmanager.h
  72. 2
    2
      kate/interfaces/mainwindow.cpp
  73. 3
    3
      kate/interfaces/mainwindow.h
  74. 2
    2
      kate/interfaces/plugin.cpp
  75. 3
    3
      kate/interfaces/plugin.h
  76. 1
    1
      kate/interfaces/pluginconfiginterfaceextension.cpp
  77. 7
    7
      kate/interfaces/pluginconfiginterfaceextension.h
  78. 5
    5
      kate/interfaces/pluginmanager.cpp
  79. 5
    5
      kate/interfaces/pluginmanager.h
  80. 5
    5
      kate/interfaces/toolviewmanager.cpp
  81. 5
    5
      kate/interfaces/toolviewmanager.h
  82. 2
    2
      kate/interfaces/viewmanager.cpp
  83. 1
    1
      kate/interfaces/viewmanager.h
  84. 21
    21
      kate/utils/dockviewbase.cpp
  85. 10
    10
      kate/utils/dockviewbase.h
  86. 2
    2
      kate/utils/listboxview.cpp
  87. 2
    2
      kate/utils/listboxview.h
  88. 6
    6
      kate/utils/messageview.cpp
  89. 5
    5
      kate/utils/messageview.h
  90. 22
    22
      kcminit/main.cpp
  91. 3
    3
      kcminit/main.h
  92. 36
    36
      kcontrol/access/kaccess.cpp
  93. 9
    9
      kcontrol/access/kaccess.h
  94. 155
    155
      kcontrol/access/kcmaccess.cpp
  95. 17
    17
      kcontrol/access/kcmaccess.h
  96. 8
    8
      kcontrol/accessibility/accessibility.cpp
  97. 1
    1
      kcontrol/accessibility/accessibility.h
  98. 92
    92
      kcontrol/arts/arts.cpp
  99. 20
    20
      kcontrol/arts/arts.h
  100. 0
    0
      kcontrol/arts/krichtextlabel.cpp

+ 22
- 22
drkonqi/backtrace.cpp View File

@@ -25,8 +25,8 @@
25 25
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 26
  *****************************************************************/
27 27
 
28
-#include <qfile.h>
29
-#include <qregexp.h>
28
+#include <tqfile.h>
29
+#include <tqregexp.h>
30 30
 
31 31
 #include <kprocess.h>
32 32
 #include <kdebug.h>
@@ -39,9 +39,9 @@
39 39
 #include "backtrace.h"
40 40
 #include "backtrace.moc"
41 41
 
42
-BackTrace::BackTrace(const KrashConfig *krashconf, QObject *parent,
42
+BackTrace::BackTrace(const KrashConfig *krashconf, TQObject *parent,
43 43
                      const char *name)
44
-  : QObject(parent, name),
44
+  : TQObject(parent, name),
45 45
     m_krashconf(krashconf), m_temp(0)
46 46
 {
47 47
   m_proc = new KProcess;
@@ -68,25 +68,25 @@ BackTrace::~BackTrace()
68 68
 
69 69
 void BackTrace::start()
70 70
 {
71
-  QString exec = m_krashconf->tryExec();
71
+  TQString exec = m_krashconf->tryExec();
72 72
   if ( !exec.isEmpty() && KStandardDirs::findExe(exec).isEmpty() )
73 73
   {
74
-    QObject * o = parent();
74
+    TQObject * o = parent();
75 75
 
76
-    if (o && !o->inherits("QWidget"))
76
+    if (o && !o->inherits("TQWidget"))
77 77
     {
78 78
       o = NULL;
79 79
     }
80 80
 
81 81
     KMessageBox::error(
82
-                        (QWidget *)o,
82
+                        (TQWidget *)o,
83 83
 			i18n("Could not generate a backtrace as the debugger '%1' was not found.").arg(exec));
84 84
     return;
85 85
   }
86 86
   m_temp = new KTempFile;
87 87
   m_temp->setAutoDelete(TRUE);
88 88
   int handle = m_temp->handle();
89
-  QString backtraceCommand = m_krashconf->backtraceCommand();
89
+  TQString backtraceCommand = m_krashconf->backtraceCommand();
90 90
   const char* bt = backtraceCommand.latin1();
91 91
   ::write(handle, bt, strlen(bt)); // the command for a backtrace
92 92
   ::write(handle, "\n", 1);
@@ -96,22 +96,22 @@ void BackTrace::start()
96 96
   m_proc = new KProcess;
97 97
   m_proc->setUseShell(true);
98 98
 
99
-  QString str = m_krashconf->debuggerBatch();
99
+  TQString str = m_krashconf->debuggerBatch();
100 100
   m_krashconf->expandString(str, true, m_temp->name());
101 101
 
102 102
   *m_proc << str;
103 103
 
104
-  connect(m_proc, SIGNAL(receivedStdout(KProcess*, char*, int)),
105
-          SLOT(slotReadInput(KProcess*, char*, int)));
106
-  connect(m_proc, SIGNAL(processExited(KProcess*)),
107
-          SLOT(slotProcessExited(KProcess*)));
104
+  connect(m_proc, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
105
+          TQT_SLOT(slotReadInput(KProcess*, char*, int)));
106
+  connect(m_proc, TQT_SIGNAL(processExited(KProcess*)),
107
+          TQT_SLOT(slotProcessExited(KProcess*)));
108 108
 
109 109
   m_proc->start ( KProcess::NotifyOnExit, KProcess::All );
110 110
 }
111 111
 
112 112
 void BackTrace::slotReadInput(KProcess *, char* buf, int buflen)
113 113
 {
114
-  QString newstr = QString::fromLocal8Bit(buf, buflen);
114
+  TQString newstr = TQString::fromLocal8Bit(buf, buflen);
115 115
   m_strBt.append(newstr);
116 116
 
117 117
   emit append(newstr);
@@ -137,25 +137,25 @@ bool BackTrace::usefulBacktrace()
137 137
 {
138 138
   // remove crap
139 139
   if( !m_krashconf->removeFromBacktraceRegExp().isEmpty())
140
-    m_strBt.replace(QRegExp( m_krashconf->removeFromBacktraceRegExp()), QString::null);
140
+    m_strBt.replace(TQRegExp( m_krashconf->removeFromBacktraceRegExp()), TQString::null);
141 141
 
142 142
   if( m_krashconf->disableChecks())
143 143
       return true;
144 144
   // prepend and append newline, so that regexps like '\nwhatever\n' work on all lines
145
-  QString strBt = '\n' + m_strBt + '\n';
145
+  TQString strBt = '\n' + m_strBt + '\n';
146 146
   // how many " ?? " in the bt ?
147 147
   int unknown = 0;
148 148
   if( !m_krashconf->invalidStackFrameRegExp().isEmpty())
149
-    unknown = strBt.contains( QRegExp( m_krashconf->invalidStackFrameRegExp()));
149
+    unknown = strBt.contains( TQRegExp( m_krashconf->invalidStackFrameRegExp()));
150 150
   // how many stack frames in the bt ?
151 151
   int frames = 0;
152 152
   if( !m_krashconf->frameRegExp().isEmpty())
153
-    frames = strBt.contains( QRegExp( m_krashconf->frameRegExp()));
153
+    frames = strBt.contains( TQRegExp( m_krashconf->frameRegExp()));
154 154
   else
155 155
     frames = strBt.contains('\n');
156 156
   bool tooShort = false;
157 157
   if( !m_krashconf->neededInValidBacktraceRegExp().isEmpty())
158
-    tooShort = ( strBt.find( QRegExp( m_krashconf->neededInValidBacktraceRegExp())) == -1 );
158
+    tooShort = ( strBt.find( TQRegExp( m_krashconf->neededInValidBacktraceRegExp())) == -1 );
159 159
   return !m_strBt.isNull() && !tooShort && (unknown < frames);
160 160
 }
161 161
 
@@ -164,7 +164,7 @@ void BackTrace::processBacktrace()
164 164
 {
165 165
   if( !m_krashconf->kcrashRegExp().isEmpty())
166 166
     {
167
-    QRegExp kcrashregexp( m_krashconf->kcrashRegExp());
167
+    TQRegExp kcrashregexp( m_krashconf->kcrashRegExp());
168 168
     int pos = kcrashregexp.search( m_strBt );
169 169
     if( pos >= 0 )
170 170
       {
@@ -175,7 +175,7 @@ void BackTrace::processBacktrace()
175 175
         --len;
176 176
         }
177 177
       m_strBt.remove( pos, len );
178
-      m_strBt.insert( pos, QString::fromLatin1( "[KCrash handler]\n" ));
178
+      m_strBt.insert( pos, TQString::fromLatin1( "[KCrash handler]\n" ));
179 179
       }
180 180
     }
181 181
 }

+ 5
- 5
drkonqi/backtrace.h View File

@@ -32,24 +32,24 @@ class KProcess;
32 32
 class KrashConfig;
33 33
 class KTempFile;
34 34
 
35
-#include <qobject.h>
35
+#include <tqobject.h>
36 36
 
37 37
 class BackTrace : public QObject
38 38
 {
39 39
   Q_OBJECT
40 40
 
41 41
 public:
42
-  BackTrace(const KrashConfig *krashconf, QObject *parent,
42
+  BackTrace(const KrashConfig *krashconf, TQObject *parent,
43 43
             const char *name = 0);
44 44
   ~BackTrace();
45 45
 
46 46
   void start();
47 47
 
48 48
 signals:
49
-  void append(const QString &str); // Just the new text
49
+  void append(const TQString &str); // Just the new text
50 50
 
51 51
   void someError();
52
-  void done(const QString &); // replaces whole text
52
+  void done(const TQString &); // replaces whole text
53 53
 
54 54
 protected slots:
55 55
   void slotProcessExited(KProcess * proc);
@@ -61,6 +61,6 @@ private:
61 61
   KProcess *m_proc;
62 62
   const KrashConfig *m_krashconf;
63 63
   KTempFile *m_temp;
64
-  QString m_strBt;
64
+  TQString m_strBt;
65 65
 };
66 66
 #endif

+ 2
- 2
drkonqi/crashtest.cpp View File

@@ -17,7 +17,7 @@ enum CrashType { Crash, Malloc, Div0, Assert };
17 17
 void do_crash()
18 18
 {
19 19
   KCmdLineArgs *args = 0;
20
-  QCString type = args->arg(0);
20
+  TQCString type = args->arg(0);
21 21
   printf("result = %s\n", type.data());
22 22
 }
23 23
 
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
79 79
 
80 80
   KApplication app(false, false);
81 81
   KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
82
-  QCString type = args->count() ? args->arg(0) : "";
82
+  TQCString type = args->count() ? args->arg(0) : "";
83 83
   int crashtype = Crash;
84 84
   if (type == "malloc")
85 85
     crashtype = Malloc;

+ 29
- 29
drkonqi/debugger.cpp View File

@@ -25,9 +25,9 @@
25 25
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 26
  *****************************************************************/
27 27
 
28
-#include <qlayout.h>
29
-#include <qhbox.h>
30
-#include <qlabel.h>
28
+#include <tqlayout.h>
29
+#include <tqhbox.h>
30
+#include <tqlabel.h>
31 31
 
32 32
 #include <kdialog.h>
33 33
 #include <klocale.h>
@@ -45,29 +45,29 @@
45 45
 #include "debugger.h"
46 46
 #include "debugger.moc"
47 47
 
48
-KrashDebugger :: KrashDebugger (const KrashConfig *krashconf, QWidget *parent, const char *name)
49
-  : QWidget( parent, name ),
48
+KrashDebugger :: KrashDebugger (const KrashConfig *krashconf, TQWidget *parent, const char *name)
49
+  : TQWidget( parent, name ),
50 50
     m_krashconf(krashconf),
51 51
     m_proctrace(0)
52 52
 {
53
-  QVBoxLayout *vbox = new QVBoxLayout( this, 0, KDialog::marginHint() );
53
+  TQVBoxLayout *vbox = new TQVBoxLayout( this, 0, KDialog::marginHint() );
54 54
   vbox->setAutoAdd(TRUE);
55 55
 
56 56
   m_backtrace = new KTextBrowser(this);
57 57
   m_backtrace->setTextFormat(Qt::PlainText);
58 58
   m_backtrace->setFont(KGlobalSettings::fixedFont());
59 59
 
60
-  QWidget *w = new QWidget( this );
61
-  ( new QHBoxLayout( w, 0, KDialog::marginHint() ) )->setAutoAdd( true );
62
-  m_status = new QLabel( w );
63
-  m_status->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred ) );
60
+  TQWidget *w = new TQWidget( this );
61
+  ( new TQHBoxLayout( w, 0, KDialog::marginHint() ) )->setAutoAdd( true );
62
+  m_status = new TQLabel( w );
63
+  m_status->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) );
64 64
   //m_copyButton = new KPushButton( KStdGuiItem::copy(), w );
65
-  KGuiItem item( i18n( "C&opy" ), QString::fromLatin1( "editcopy" ) );
65
+  KGuiItem item( i18n( "C&opy" ), TQString::fromLatin1( "editcopy" ) );
66 66
   m_copyButton = new KPushButton( item, w );
67
-  connect( m_copyButton, SIGNAL( clicked() ), this, SLOT( slotCopy() ) );
67
+  connect( m_copyButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotCopy() ) );
68 68
   m_copyButton->setEnabled( false );
69 69
   m_saveButton = new KPushButton( m_krashconf->safeMode() ? KStdGuiItem::save() : KStdGuiItem::saveAs(), w );
70
-  connect( m_saveButton, SIGNAL( clicked() ), this, SLOT( slotSave() ) );
70
+  connect( m_saveButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSave() ) );
71 71
   m_saveButton->setEnabled( false );
72 72
 }
73 73
 
@@ -77,7 +77,7 @@ KrashDebugger :: ~KrashDebugger()
77 77
   //  delete m_proctrace;
78 78
 }
79 79
 
80
-void KrashDebugger :: slotDone(const QString& str)
80
+void KrashDebugger :: slotDone(const TQString& str)
81 81
 {
82 82
   m_status->setText(i18n("Done."));
83 83
   m_copyButton->setEnabled( true );
@@ -95,7 +95,7 @@ void KrashDebugger :: slotSave()
95 95
 {
96 96
   if (m_krashconf->safeMode())
97 97
   {
98
-    KTempFile tf(QString::fromAscii("/tmp/"), QString::fromAscii(".kcrash"), 0600);
98
+    KTempFile tf(TQString::fromAscii("/tmp/"), TQString::fromAscii(".kcrash"), 0600);
99 99
     if (!tf.status())
100 100
     {
101 101
       *tf.textStream() << m_backtrace->text();
@@ -109,13 +109,13 @@ void KrashDebugger :: slotSave()
109 109
   }
110 110
   else
111 111
   {
112
-    QString defname = m_krashconf->execName() + QString::fromLatin1( ".kcrash" );
112
+    TQString defname = m_krashconf->execName() + TQString::fromLatin1( ".kcrash" );
113 113
     if( defname.contains( '/' ))
114 114
         defname = defname.mid( defname.findRev( '/' ) + 1 );
115
-    QString filename = KFileDialog::getSaveFileName(defname, QString::null, this, i18n("Select Filename"));
115
+    TQString filename = KFileDialog::getSaveFileName(defname, TQString::null, this, i18n("Select Filename"));
116 116
     if (!filename.isEmpty())
117 117
     {
118
-      QFile f(filename);
118
+      TQFile f(filename);
119 119
       
120 120
       if (f.exists()) {
121 121
         if (KMessageBox::Cancel == 
@@ -129,7 +129,7 @@ void KrashDebugger :: slotSave()
129 129
       
130 130
       if (f.open(IO_WriteOnly))
131 131
       {
132
-        QTextStream ts(&f);
132
+        TQTextStream ts(&f);
133 133
         ts << m_backtrace->text();
134 134
         f.close();
135 135
       }
@@ -151,7 +151,7 @@ void KrashDebugger :: slotSomeError()
151 151
       + m_backtrace->text());
152 152
 }
153 153
 
154
-void KrashDebugger :: slotAppend(const QString &str)
154
+void KrashDebugger :: slotAppend(const TQString &str)
155 155
 {
156 156
   m_status->setText(i18n("Loading backtrace..."));
157 157
 
@@ -159,9 +159,9 @@ void KrashDebugger :: slotAppend(const QString &str)
159 159
   m_backtrace->setText(m_backtrace->text() + str);
160 160
 }
161 161
 
162
-void KrashDebugger :: showEvent(QShowEvent *e)
162
+void KrashDebugger :: showEvent(TQShowEvent *e)
163 163
 {
164
-  QWidget::showEvent(e);
164
+  TQWidget::showEvent(e);
165 165
   startDebugger();
166 166
 }
167 167
 
@@ -171,7 +171,7 @@ void KrashDebugger :: startDebugger()
171 171
   if (m_proctrace || !m_backtrace->text().isEmpty())
172 172
     return;
173 173
 
174
-  QString msg;
174
+  TQString msg;
175 175
   bool checks = performChecks( &msg );
176 176
   if( !checks && !m_krashconf->disableChecks())
177 177
   {
@@ -195,20 +195,20 @@ void KrashDebugger :: startDebugger()
195 195
 
196 196
   m_proctrace = new BackTrace(m_krashconf, this);
197 197
 
198
-  connect(m_proctrace, SIGNAL(append(const QString &)),
199
-          SLOT(slotAppend(const QString &)));
200
-  connect(m_proctrace, SIGNAL(done(const QString&)), SLOT(slotDone(const QString&)));
201
-  connect(m_proctrace, SIGNAL(someError()), SLOT(slotSomeError()));
198
+  connect(m_proctrace, TQT_SIGNAL(append(const TQString &)),
199
+          TQT_SLOT(slotAppend(const TQString &)));
200
+  connect(m_proctrace, TQT_SIGNAL(done(const TQString&)), TQT_SLOT(slotDone(const TQString&)));
201
+  connect(m_proctrace, TQT_SIGNAL(someError()), TQT_SLOT(slotSomeError()));
202 202
 
203 203
   m_proctrace->start();
204 204
 }
205 205
 
206 206
 // this function check for "dangerous" settings, returns false
207 207
 // and message in case some of them are activated
208
-bool KrashDebugger::performChecks( QString* msg )
208
+bool KrashDebugger::performChecks( TQString* msg )
209 209
 {
210 210
   bool ret = true;
211
-  KConfig kdedcfg( QString::fromLatin1( "kdedrc" ), true );
211
+  KConfig kdedcfg( TQString::fromLatin1( "kdedrc" ), true );
212 212
   kdedcfg.setGroup( "General" );
213 213
   if( kdedcfg.readBoolEntry( "DelayedCheck", false ))
214 214
   {

+ 10
- 10
drkonqi/debugger.h View File

@@ -34,26 +34,26 @@ class KrashConfig;
34 34
 class KTextBrowser;
35 35
 class BackTrace;
36 36
 
37
-#include <qwidget.h>
37
+#include <tqwidget.h>
38 38
 
39 39
 class KrashDebugger : public QWidget
40 40
 {
41 41
   Q_OBJECT
42 42
 
43 43
 public:
44
-  KrashDebugger(const KrashConfig *krashconf, QWidget *parent = 0, const char *name = 0);
44
+  KrashDebugger(const KrashConfig *krashconf, TQWidget *parent = 0, const char *name = 0);
45 45
   ~KrashDebugger();
46 46
 
47 47
 public slots:
48
-  void slotAppend(const QString &);
49
-  void slotDone(const QString&);
48
+  void slotAppend(const TQString &);
49
+  void slotDone(const TQString&);
50 50
   void slotSomeError();
51 51
 
52 52
 protected:
53 53
   void startDebugger();
54
-  bool performChecks( QString* msg );
54
+  bool performChecks( TQString* msg );
55 55
 
56
-  virtual void showEvent(QShowEvent *e);
56
+  virtual void showEvent(TQShowEvent *e);
57 57
 
58 58
 protected slots:
59 59
   void slotCopy();
@@ -62,11 +62,11 @@ protected slots:
62 62
 private:
63 63
   const KrashConfig *m_krashconf;
64 64
   BackTrace *m_proctrace;
65
-  QLabel *m_status;
65
+  TQLabel *m_status;
66 66
   KTextBrowser *m_backtrace;
67
-  QPushButton * m_copyButton;
68
-  QPushButton * m_saveButton;
69
-  QString m_prependText;
67
+  TQPushButton * m_copyButton;
68
+  TQPushButton * m_saveButton;
69
+  TQString m_prependText;
70 70
 };
71 71
 
72 72
 #endif

+ 4
- 4
drkonqi/drbugreport.cpp View File

@@ -26,7 +26,7 @@
26 26
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
  *****************************************************************/
28 28
 
29
-#include <qmultilineedit.h>
29
+#include <tqmultilineedit.h>
30 30
 
31 31
 #include <kmessagebox.h>
32 32
 #include <klocale.h>
@@ -34,13 +34,13 @@
34 34
 #include "drbugreport.moc"
35 35
 #include "drbugreport.h"
36 36
 
37
-DrKBugReport::DrKBugReport(QWidget *parent, bool modal,
37
+DrKBugReport::DrKBugReport(TQWidget *parent, bool modal,
38 38
                            const KAboutData *aboutData)
39 39
   : KBugReport(parent, modal, aboutData)
40 40
 {
41 41
 }
42 42
 
43
-void DrKBugReport::setText(const QString &str)
43
+void DrKBugReport::setText(const TQString &str)
44 44
 {
45 45
   m_lineedit->setText(str);
46 46
   m_startstring = str.simplifyWhiteSpace();
@@ -51,7 +51,7 @@ void DrKBugReport::slotOk()
51 51
   if (!m_startstring.isEmpty() &&
52 52
       m_lineedit->text().simplifyWhiteSpace() == m_startstring)
53 53
   {
54
-    QString msg = i18n("You have to edit the description "
54
+    TQString msg = i18n("You have to edit the description "
55 55
                        "before the report can be sent.");
56 56
     KMessageBox::error(this, msg);
57 57
     return;

+ 3
- 3
drkonqi/drbugreport.h View File

@@ -40,14 +40,14 @@ public:
40 40
   /**
41 41
    * Constructor.
42 42
    */
43
-  DrKBugReport(QWidget *parent = 0, bool modal = true,
43
+  DrKBugReport(TQWidget *parent = 0, bool modal = true,
44 44
                const KAboutData *aboutData = 0);
45 45
 
46 46
 public:
47 47
   /**
48 48
    * Allows the debugger to set the default text in the editor.
49 49
    */
50
-  void setText(const QString &str);
50
+  void setText(const TQString &str);
51 51
 
52 52
 protected slots:
53 53
   /**
@@ -56,7 +56,7 @@ protected slots:
56 56
   virtual void slotOk( void );
57 57
 
58 58
 private:
59
-  QString m_startstring;
59
+  TQString m_startstring;
60 60
 };
61 61
 
62 62
 #endif

+ 20
- 20
drkonqi/krashconf.cpp View File

@@ -48,7 +48,7 @@ KrashConfig :: ~KrashConfig()
48 48
   delete m_aboutData;
49 49
 }
50 50
 
51
-ASYNC KrashConfig :: registerDebuggingApplication(const QString& launchName)
51
+ASYNC KrashConfig :: registerDebuggingApplication(const TQString& launchName)
52 52
 {
53 53
   emit newDebuggingApplication( launchName );
54 54
 }
@@ -69,7 +69,7 @@ void KrashConfig :: readConfig()
69 69
   if ( !args->getOption( "apppath" ).isEmpty() )
70 70
     m_execname.prepend( args->getOption( "apppath" ) + '/' );
71 71
 
72
-  QCString programname = args->getOption("programname");
72
+  TQCString programname = args->getOption("programname");
73 73
   if (programname.isEmpty())
74 74
     programname.setStr(I18N_NOOP("unknown"));
75 75
   // leak some memory... Well. It's only done once anyway :-)
@@ -80,7 +80,7 @@ void KrashConfig :: readConfig()
80 80
                                0, 0, 0, 0, 0,
81 81
                                args->getOption("bugaddress"));
82 82
 
83
-  QCString startup_id( args->getOption( "startupid" ));
83
+  TQCString startup_id( args->getOption( "startupid" ));
84 84
   if (!startup_id.isEmpty())
85 85
   { // stop startup notification
86 86
     KStartupInfoId id;
@@ -92,13 +92,13 @@ void KrashConfig :: readConfig()
92 92
   config->setGroup("drkonqi");
93 93
 
94 94
   // maybe we should check if it's relative?
95
-  QString configname = config->readEntry("ConfigName",
96
-                                         QString::fromLatin1("enduser"));
95
+  TQString configname = config->readEntry("ConfigName",
96
+                                         TQString::fromLatin1("enduser"));
97 97
 
98
-  QString debuggername = config->readEntry("Debugger",
99
-                                           QString::fromLatin1("gdb"));
98
+  TQString debuggername = config->readEntry("Debugger",
99
+                                           TQString::fromLatin1("gdb"));
100 100
 
101
-  KConfig debuggers(QString::fromLatin1("debuggers/%1rc").arg(debuggername),
101
+  KConfig debuggers(TQString::fromLatin1("debuggers/%1rc").arg(debuggername),
102 102
                     true, false, "appdata");
103 103
 
104 104
   debuggers.setGroup("General");
@@ -112,7 +112,7 @@ void KrashConfig :: readConfig()
112 112
   m_neededInValidBacktraceRegExp = debuggers.readEntry("NeededInValidBacktraceRegExp");
113 113
   m_kcrashRegExp = debuggers.readEntry("KCrashRegExp");
114 114
 
115
-  KConfig preset(QString::fromLatin1("presets/%1rc").arg(configname),
115
+  KConfig preset(TQString::fromLatin1("presets/%1rc").arg(configname),
116 116
                  true, false, "appdata");
117 117
 
118 118
   preset.setGroup("ErrorDescription");
@@ -135,10 +135,10 @@ void KrashConfig :: readConfig()
135 135
 
136 136
   bool b = preset.readBoolEntry("SignalDetails", true);
137 137
 
138
-  QString str = QString::number(m_signalnum);
138
+  TQString str = TQString::number(m_signalnum);
139 139
   // use group unknown if signal not found
140 140
   if (!preset.hasGroup(str))
141
-    str = QString::fromLatin1("unknown");
141
+    str = TQString::fromLatin1("unknown");
142 142
   preset.setGroup(str);
143 143
   m_signalName = preset.readEntry("Name");
144 144
   if (b)
@@ -146,16 +146,16 @@ void KrashConfig :: readConfig()
146 146
 }
147 147
 
148 148
 // replace some of the strings
149
-void KrashConfig :: expandString(QString &str, bool shell, const QString &tempFile) const
149
+void KrashConfig :: expandString(TQString &str, bool shell, const TQString &tempFile) const
150 150
 {
151
-  QMap<QString,QString> map;
152
-  map[QString::fromLatin1("appname")] = QString::fromLatin1(appName());
153
-  map[QString::fromLatin1("execname")] = startedByKdeinit() ? QString::fromLatin1("kdeinit") : m_execname;
154
-  map[QString::fromLatin1("signum")] = QString::number(signalNumber());
155
-  map[QString::fromLatin1("signame")] = signalName();
156
-  map[QString::fromLatin1("progname")] = programName();
157
-  map[QString::fromLatin1("pid")] = QString::number(pid());
158
-  map[QString::fromLatin1("tempfile")] = tempFile;
151
+  TQMap<TQString,TQString> map;
152
+  map[TQString::fromLatin1("appname")] = TQString::fromLatin1(appName());
153
+  map[TQString::fromLatin1("execname")] = startedByKdeinit() ? TQString::fromLatin1("kdeinit") : m_execname;
154
+  map[TQString::fromLatin1("signum")] = TQString::number(signalNumber());
155
+  map[TQString::fromLatin1("signame")] = signalName();
156
+  map[TQString::fromLatin1("progname")] = programName();
157
+  map[TQString::fromLatin1("pid")] = TQString::number(pid());
158
+  map[TQString::fromLatin1("tempfile")] = tempFile;
159 159
   if (shell)
160 160
     str = KMacroExpander::expandMacrosShellQuote( str, map );
161 161
   else

+ 36
- 36
drkonqi/krashconf.h View File

@@ -29,12 +29,12 @@
29 29
 #define KRASHCONF_H
30 30
 
31 31
 #include <kaboutdata.h>
32
-#include <qstring.h>
33
-#include <qobject.h>
32
+#include <tqstring.h>
33
+#include <tqobject.h>
34 34
 
35 35
 #include "krashdcopinterface.h"
36 36
 
37
-class KrashConfig : public QObject, public KrashDCOPInterface
37
+class KrashConfig : public TQObject, public KrashDCOPInterface
38 38
 {
39 39
   Q_OBJECT
40 40
 
@@ -43,42 +43,42 @@ public:
43 43
   virtual ~KrashConfig();
44 44
 
45 45
 k_dcop:
46
-  virtual QString programName() const { return m_aboutData->programName(); };
47
-  virtual QCString appName() const { return m_aboutData->appName(); };
46
+  virtual TQString programName() const { return m_aboutData->programName(); };
47
+  virtual TQCString appName() const { return m_aboutData->appName(); };
48 48
   virtual int signalNumber() const { return m_signalnum; };
49 49
   virtual int pid() const { return m_pid; };
50 50
   virtual bool startedByKdeinit() const { return m_startedByKdeinit; };
51 51
   virtual bool safeMode() const { return m_safeMode; };
52
-  virtual QString signalName() const { return m_signalName; };
53
-  virtual QString signalText() const { return m_signalText; };
54
-  virtual QString whatToDoText() const { return m_whatToDoText; }
55
-  virtual QString errorDescriptionText() const { return m_errorDescriptionText; };
52
+  virtual TQString signalName() const { return m_signalName; };
53
+  virtual TQString signalText() const { return m_signalText; };
54
+  virtual TQString whatToDoText() const { return m_whatToDoText; }
55
+  virtual TQString errorDescriptionText() const { return m_errorDescriptionText; };
56 56
 
57
-  virtual ASYNC registerDebuggingApplication(const QString& launchName);
57
+  virtual ASYNC registerDebuggingApplication(const TQString& launchName);
58 58
 
59 59
 public:
60
-  QString debugger() const { return m_debugger; }
61
-  QString debuggerBatch() const { return m_debuggerBatch; }
62
-  QString tryExec() const { return m_tryExec; }
63
-  QString backtraceCommand() const { return m_backtraceCommand; }
64
-  QString removeFromBacktraceRegExp() const { return m_removeFromBacktraceRegExp; }
65
-  QString invalidStackFrameRegExp() const { return m_invalidStackFrameRegExp; }
66
-  QString frameRegExp() const { return m_frameRegExp; }
67
-  QString neededInValidBacktraceRegExp() const { return m_neededInValidBacktraceRegExp; }
68
-  QString kcrashRegExp() const { return m_kcrashRegExp; }
60
+  TQString debugger() const { return m_debugger; }
61
+  TQString debuggerBatch() const { return m_debuggerBatch; }
62
+  TQString tryExec() const { return m_tryExec; }
63
+  TQString backtraceCommand() const { return m_backtraceCommand; }
64
+  TQString removeFromBacktraceRegExp() const { return m_removeFromBacktraceRegExp; }
65
+  TQString invalidStackFrameRegExp() const { return m_invalidStackFrameRegExp; }
66
+  TQString frameRegExp() const { return m_frameRegExp; }
67
+  TQString neededInValidBacktraceRegExp() const { return m_neededInValidBacktraceRegExp; }
68
+  TQString kcrashRegExp() const { return m_kcrashRegExp; }
69 69
   bool showBacktrace() const { return m_showbacktrace; };
70 70
   bool showDebugger() const { return m_showdebugger && !m_debugger.isNull(); };
71 71
   bool showBugReport() const { return m_showbugreport; };
72 72
   bool disableChecks() const { return m_disablechecks; };
73 73
   const KAboutData *aboutData() const { return m_aboutData; }
74
-  QString execName() const { return m_execname; }
74
+  TQString execName() const { return m_execname; }
75 75
 
76
-  void expandString(QString &str, bool shell, const QString &tempFile = QString::null) const;
76
+  void expandString(TQString &str, bool shell, const TQString &tempFile = TQString::null) const;
77 77
 
78 78
   void acceptDebuggingApp();
79 79
 
80 80
 signals:
81
-  void newDebuggingApplication(const QString& launchName);
81
+  void newDebuggingApplication(const TQString& launchName);
82 82
 
83 83
 private:
84 84
   void readConfig();
@@ -93,21 +93,21 @@ private:
93 93
   bool m_startedByKdeinit;
94 94
   bool m_safeMode;
95 95
   bool m_disablechecks;
96
-  QString m_signalName;
97
-  QString m_signalText;
98
-  QString m_whatToDoText;
99
-  QString m_errorDescriptionText;
100
-  QString m_execname;
96
+  TQString m_signalName;
97
+  TQString m_signalText;
98
+  TQString m_whatToDoText;
99
+  TQString m_errorDescriptionText;
100
+  TQString m_execname;
101 101
 
102
-  QString m_debugger;
103
-  QString m_debuggerBatch;
104
-  QString m_tryExec;
105
-  QString m_backtraceCommand;
106
-  QString m_removeFromBacktraceRegExp;
107
-  QString m_invalidStackFrameRegExp;
108
-  QString m_frameRegExp;
109
-  QString m_neededInValidBacktraceRegExp;
110
-  QString m_kcrashRegExp;
102
+  TQString m_debugger;
103
+  TQString m_debuggerBatch;
104
+  TQString m_tryExec;
105
+  TQString m_backtraceCommand;
106
+  TQString m_removeFromBacktraceRegExp;
107
+  TQString m_invalidStackFrameRegExp;
108
+  TQString m_frameRegExp;
109
+  TQString m_neededInValidBacktraceRegExp;
110
+  TQString m_kcrashRegExp;
111 111
 };
112 112
 
113 113
 #endif

+ 9
- 9
drkonqi/krashdcopinterface.h View File

@@ -32,8 +32,8 @@
32 32
 
33 33
 #include <dcopobject.h>
34 34
 
35
-#include <qstring.h>
36
-#include <qcstring.h>
35
+#include <tqstring.h>
36
+#include <tqcstring.h>
37 37
 #include <kaboutdata.h>
38 38
 
39 39
 /**
@@ -47,18 +47,18 @@ class KrashDCOPInterface : virtual public DCOPObject
47 47
 public:
48 48
 
49 49
 k_dcop:
50
-  virtual QString programName() const = 0;
51
-  virtual QCString appName() const = 0;
50
+  virtual TQString programName() const = 0;
51
+  virtual TQCString appName() const = 0;
52 52
   virtual int signalNumber() const = 0;
53 53
   virtual int pid() const = 0;
54 54
   virtual bool startedByKdeinit() const = 0;
55 55
   virtual bool safeMode() const = 0;
56
-  virtual QString signalName() const = 0;
57
-  virtual QString signalText() const = 0;
58
-  virtual QString whatToDoText() const = 0;
59
-  virtual QString errorDescriptionText() const = 0;
56
+  virtual TQString signalName() const = 0;
57
+  virtual TQString signalText() const = 0;
58
+  virtual TQString whatToDoText() const = 0;
59
+  virtual TQString errorDescriptionText() const = 0;
60 60
 
61
-  virtual ASYNC registerDebuggingApplication(const QString& launchName) = 0;
61
+  virtual ASYNC registerDebuggingApplication(const TQString& launchName) = 0;
62 62
 
63 63
 k_dcop_signals:
64 64
   void acceptDebuggingApplication();

+ 23
- 23
drkonqi/toplevel.cpp View File

@@ -25,9 +25,9 @@
25 25
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 26
  *****************************************************************/
27 27
 
28
-#include <qstring.h>
29
-#include <qlabel.h>
30
-#include <qhbox.h>
28
+#include <tqstring.h>
29
+#include <tqlabel.h>
30
+#include <tqhbox.h>
31 31
 
32 32
 #include "netwm.h"
33 33
 
@@ -47,7 +47,7 @@
47 47
 #include "toplevel.h"
48 48
 #include "toplevel.moc"
49 49
 
50
-Toplevel :: Toplevel(KrashConfig *krashconf, QWidget *parent, const char *name)
50
+Toplevel :: Toplevel(KrashConfig *krashconf, TQWidget *parent, const char *name)
51 51
   : KDialogBase( Tabbed,
52 52
                  krashconf->programName(),
53 53
                  User3 | User2 | User1 | Close,
@@ -61,17 +61,17 @@ Toplevel :: Toplevel(KrashConfig *krashconf, QWidget *parent, const char *name)
61 61
                  ),
62 62
     m_krashconf(krashconf), m_bugreport(0)
63 63
 {
64
-  QHBox *page = addHBoxPage(i18n("&General"));
64
+  TQHBox *page = addHBoxPage(i18n("&General"));
65 65
   page->setSpacing(20);
66 66
 
67 67
   // picture of konqi
68
-  QLabel *lab = new QLabel(page);
69
-  lab->setFrameStyle(QFrame::Panel | QFrame::Sunken);
70
-  QPixmap pix(locate("appdata", QString::fromLatin1("pics/konqi.png")));
68
+  TQLabel *lab = new TQLabel(page);
69
+  lab->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
70
+  TQPixmap pix(locate("appdata", TQString::fromLatin1("pics/konqi.png")));
71 71
   lab->setPixmap(pix);
72 72
   lab->setFixedSize( lab->sizeHint() );
73 73
 
74
-  QLabel * info = new QLabel(generateText(), page);
74
+  TQLabel * info = new TQLabel(generateText(), page);
75 75
   info->setMinimumSize(info->sizeHint());
76 76
 
77 77
   if (m_krashconf->showBacktrace())
@@ -84,8 +84,8 @@ Toplevel :: Toplevel(KrashConfig *krashconf, QWidget *parent, const char *name)
84 84
   showButton( User2, m_krashconf->showDebugger() );
85 85
   showButton( User3, false );
86 86
 
87
-  connect(this, SIGNAL(closeClicked()), SLOT(accept()));
88
-  connect(m_krashconf, SIGNAL(newDebuggingApplication(const QString&)), SLOT(slotNewDebuggingApp(const QString&)));
87
+  connect(this, TQT_SIGNAL(closeClicked()), TQT_SLOT(accept()));
88
+  connect(m_krashconf, TQT_SIGNAL(newDebuggingApplication(const TQString&)), TQT_SLOT(slotNewDebuggingApp(const TQString&)));
89 89
 
90 90
   if ( !m_krashconf->safeMode() && kapp->dcopClient()->attach() )
91 91
     kapp->dcopClient()->registerAs( kapp->name() );
@@ -95,9 +95,9 @@ Toplevel :: ~Toplevel()
95 95
 {
96 96
 }
97 97
 
98
-QString Toplevel :: generateText() const
98
+TQString Toplevel :: generateText() const
99 99
 {
100
-  QString str;
100
+  TQString str;
101 101
 
102 102
   if (!m_krashconf->errorDescriptionText().isEmpty())
103 103
     str += i18n("<p><b>Short description</b></p><p>%1</p>")
@@ -151,13 +151,13 @@ void Toplevel :: slotUser1()
151 151
   m_bugreport = new DrKBugReport(0, true, m_krashconf->aboutData());
152 152
 
153 153
   if (i == KMessageBox::Yes) {
154
-    QApplication::setOverrideCursor ( waitCursor );
154
+    TQApplication::setOverrideCursor ( waitCursor );
155 155
 
156 156
     // generate the backtrace
157 157
     BackTrace *backtrace = new BackTrace(m_krashconf, this);
158
-    connect(backtrace, SIGNAL(someError()), SLOT(slotBacktraceSomeError()));
159
-    connect(backtrace, SIGNAL(done(const QString &)),
160
-            SLOT(slotBacktraceDone(const QString &)));
158
+    connect(backtrace, TQT_SIGNAL(someError()), TQT_SLOT(slotBacktraceSomeError()));
159
+    connect(backtrace, TQT_SIGNAL(done(const TQString &)),
160
+            TQT_SLOT(slotBacktraceDone(const TQString &)));
161 161
 
162 162
     backtrace->start();
163 163
 
@@ -173,7 +173,7 @@ void Toplevel :: slotUser1()
173 173
 
174 174
 void Toplevel :: slotUser2()
175 175
 {
176
-  QString str = m_krashconf->debugger();
176
+  TQString str = m_krashconf->debugger();
177 177
   m_krashconf->expandString(str, true);
178 178
 
179 179
   KProcess proc;
@@ -182,7 +182,7 @@ void Toplevel :: slotUser2()
182 182
   proc.start(KProcess::DontCare);
183 183
 }
184 184
 
185
-void Toplevel :: slotNewDebuggingApp(const QString& launchName)
185
+void Toplevel :: slotNewDebuggingApp(const TQString& launchName)
186 186
 {
187 187
   setButtonText( User3, launchName );
188 188
   showButton( User3, true );
@@ -193,15 +193,15 @@ void Toplevel :: slotUser3()
193 193
   m_krashconf->acceptDebuggingApp();
194 194
 }
195 195
 
196
-void Toplevel :: slotBacktraceDone(const QString &str)
196
+void Toplevel :: slotBacktraceDone(const TQString &str)
197 197
 {
198 198
   // Do not translate.. This will be included in the _MAIL_.
199
-  QString buf = QString::fromLatin1
199
+  TQString buf = TQString::fromLatin1
200 200
     ("\n\n\nHere is a backtrace generated by DrKonqi:\n") + str;
201 201
 
202 202
   m_bugreport->setText(buf);
203 203
 
204
-  QApplication::restoreOverrideCursor();
204
+  TQApplication::restoreOverrideCursor();
205 205
 
206 206
   m_bugreport->exec();
207 207
   delete m_bugreport;
@@ -210,7 +210,7 @@ void Toplevel :: slotBacktraceDone(const QString &str)
210 210
 
211 211
 void Toplevel :: slotBacktraceSomeError()
212 212
 {
213
-  QApplication::restoreOverrideCursor();
213
+  TQApplication::restoreOverrideCursor();
214 214
 
215 215
   KMessageBox::sorry(0, i18n("It was not possible to generate a backtrace."),
216 216
                      i18n("Backtrace Not Possible"));

+ 4
- 4
drkonqi/toplevel.h View File

@@ -41,22 +41,22 @@ class Toplevel : public KDialogBase
41 41
   Q_OBJECT
42 42
 
43 43
 public:
44
-  Toplevel(KrashConfig *krash, QWidget *parent = 0, const char * name = 0);
44
+  Toplevel(KrashConfig *krash, TQWidget *parent = 0, const char * name = 0);
45 45
   ~Toplevel();
46 46
 
47 47
 private:
48 48
   // helper methods
49
-  QString generateText() const;
49
+  TQString generateText() const;
50 50
 
51 51
 protected slots:
52 52
   void slotUser1();
53 53
   void slotUser2();
54
-  void slotNewDebuggingApp(const QString& launchName);
54
+  void slotNewDebuggingApp(const TQString& launchName);
55 55
   void slotUser3();
56 56
 
57 57
 protected slots:
58 58
   void slotBacktraceSomeError();
59
-  void slotBacktraceDone(const QString &);
59
+  void slotBacktraceDone(const TQString &);
60 60
 
61 61
 private:
62 62
   KrashConfig *m_krashconf;

+ 22
- 22
kappfinder/common.cpp View File

@@ -24,8 +24,8 @@
24 24
 #include <kglobal.h>
25 25
 #include <kstandarddirs.h>
26 26
 
27
-#include <qdir.h>
28
-#include <qfile.h>
27
+#include <tqdir.h>
28
+#include <tqfile.h>
29 29
 
30 30
 #include <stdlib.h>
31 31
 
@@ -33,11 +33,11 @@
33 33
 
34 34
 #define DBG_CODE 1213
35 35
 
36
-void copyFile( const QString &inFileName, const QString &outFileName )
36
+void copyFile( const TQString &inFileName, const TQString &outFileName )
37 37
 {
38
-  QFile inFile( inFileName );
38
+  TQFile inFile( inFileName );
39 39
   if ( inFile.open( IO_ReadOnly ) ) {
40
-    QFile outFile( outFileName );
40
+    TQFile outFile( outFileName );
41 41
     if ( outFile.open( IO_WriteOnly ) ) {
42 42
       outFile.writeBlock( inFile.readAll() );
43 43
       outFile.close();
@@ -47,13 +47,13 @@ void copyFile( const QString &inFileName, const QString &outFileName )
47 47
   }
48 48
 }
49 49
 
50
-bool scanDesktopFile( QPtrList<AppLnkCache> &appCache, const QString &templ,
51
-                      QString destDir )
50
+bool scanDesktopFile( TQPtrList<AppLnkCache> &appCache, const TQString &templ,
51
+                      TQString destDir )
52 52
 {
53 53
   KDesktopFile desktop( templ, true );
54 54
 
55 55
   // find out where to put the .desktop files
56
-  QString destName;
56
+  TQString destName;
57 57
   if ( destDir.isNull() )
58 58
     destDir = KGlobal::dirs()->saveLocation( "apps" );
59 59
   else
@@ -74,7 +74,7 @@ bool scanDesktopFile( QPtrList<AppLnkCache> &appCache, const QString &templ,
74 74
   }
75 75
 
76 76
   // determine for which executable to look
77
-  QString exec = desktop.readPathEntry( "TryExec" );
77
+  TQString exec = desktop.readPathEntry( "TryExec" );
78 78
   if ( exec.isEmpty() )
79 79
     exec = desktop.readPathEntry( "Exec" );
80 80
   pos = exec.find( ' ' );
@@ -82,8 +82,8 @@ bool scanDesktopFile( QPtrList<AppLnkCache> &appCache, const QString &templ,
82 82
     exec = exec.left( pos );
83 83
 
84 84
   // try to locate the binary
85
-  QString pexec = KGlobal::dirs()->findExe( exec, 
86
-                 QString( ::getenv( "PATH" ) ) + ":/usr/X11R6/bin:/usr/games" );
85
+  TQString pexec = KGlobal::dirs()->findExe( exec, 
86
+                 TQString( ::getenv( "PATH" ) ) + ":/usr/X11R6/bin:/usr/games" );
87 87
   if ( pexec.isEmpty() ) {
88 88
     kdDebug(DBG_CODE) << "looking for " << exec.local8Bit()
89 89
                       << "\t\tnot found" << endl;
@@ -103,22 +103,22 @@ bool scanDesktopFile( QPtrList<AppLnkCache> &appCache, const QString &templ,
103 103
   return true;
104 104
 }
105 105
 
106
-void createDesktopFiles( QPtrList<AppLnkCache> &appCache, int &added )
106
+void createDesktopFiles( TQPtrList<AppLnkCache> &appCache, int &added )
107 107
 {
108 108
   AppLnkCache* cache;
109 109
   for ( cache = appCache.first(); cache; cache = appCache.next() ) {
110 110
     if ( cache->item == 0 || ( cache->item && cache->item->isOn() ) ) {
111 111
       added++;
112 112
 
113
-      QString destDir = cache->destDir;
114
-      QString destName = cache->destName;
115
-      QString templ = cache->templ;
113
+      TQString destDir = cache->destDir;
114
+      TQString destName = cache->destName;
115
+      TQString templ = cache->templ;
116 116
 
117 117
       destDir += "/";
118
-      QDir d;
118
+      TQDir d;
119 119
       int pos = -1;
120 120
       while ( ( pos = destDir.find( '/', pos + 1 ) ) >= 0 ) {
121
-        QString path = destDir.left( pos + 1 );
121
+        TQString path = destDir.left( pos + 1 );
122 122
         d = path;
123 123
         if ( !d.exists() )
124 124
           d.mkdir( path );
@@ -130,7 +130,7 @@ void createDesktopFiles( QPtrList<AppLnkCache> &appCache, int &added )
130 130
   }
131 131
 }
132 132
 
133
-void decorateDirs( QString destDir )
133
+void decorateDirs( TQString destDir )
134 134
 {
135 135
   // find out where to put the .directory files
136 136
   if ( destDir.isNull() )
@@ -138,19 +138,19 @@ void decorateDirs( QString destDir )
138 138
   else
139 139
     destDir += "/";
140 140
 
141
-  QStringList dirs = KGlobal::dirs()->findAllResources( "data", "kappfinder/apps/*.directory", true );
141
+  TQStringList dirs = KGlobal::dirs()->findAllResources( "data", "kappfinder/apps/*.directory", true );
142 142
 
143
-  QStringList::Iterator it;
143
+  TQStringList::Iterator it;
144 144
   for ( it = dirs.begin(); it != dirs.end(); ++it ) {
145 145
     // find out the name of the file to store
146
-    QString destName = *it;
146
+    TQString destName = *it;
147 147
     int pos = destName.find( "kappfinder/apps/" );
148 148
     if ( pos > 0 )
149 149
       destName = destName.mid( pos + strlen( "kappfinder/apps/" ) );
150 150
 
151 151
     destName = destDir + "/" + destName;
152 152
 
153
-    if ( !QFile::exists( destName ) ) {	
153
+    if ( !TQFile::exists( destName ) ) {	
154 154
       kdDebug(DBG_CODE) << "Copy " << *it << " to " << destName << endl;
155 155
       copyFile( *it, destName );
156 156
     }

+ 11
- 11
kappfinder/common.h View File

@@ -22,22 +22,22 @@
22 22
 #ifndef COMMON_H
23 23
 #define COMMON_H
24 24
 
25
-#include <qlistview.h>
26
-#include <qptrlist.h>
27
-#include <qstring.h>
25
+#include <tqlistview.h>
26
+#include <tqptrlist.h>
27
+#include <tqstring.h>
28 28
 
29 29
 class AppLnkCache
30 30
 {
31 31
   public:
32
-    QString destDir;
33
-    QString destName;
34
-    QString templ;
35
-    QCheckListItem *item;
32
+    TQString destDir;
33
+    TQString destName;
34
+    TQString templ;
35
+    TQCheckListItem *item;
36 36
 };
37 37
 
38
-bool scanDesktopFile( QPtrList<AppLnkCache> &appCache, const QString &templ,
39
-                      QString destDir = QString::null );
40
-void createDesktopFiles( QPtrList<AppLnkCache> &appCache, int &added );
41
-void decorateDirs( QString destDir = QString::null );
38
+bool scanDesktopFile( TQPtrList<AppLnkCache> &appCache, const TQString &templ,
39
+                      TQString destDir = TQString::null );
40
+void createDesktopFiles( TQPtrList<AppLnkCache> &appCache, int &added );
41
+void decorateDirs( TQString destDir = TQString::null );
42 42
 
43 43
 #endif

+ 5
- 5
kappfinder/main_install.cpp View File

@@ -25,7 +25,7 @@
25 25
 #include <klocale.h>
26 26
 #include <kstandarddirs.h>
27 27
 
28
-#include <qstringlist.h>
28
+#include <tqstringlist.h>
29 29
 
30 30
 #include <stdio.h>
31 31
 
@@ -42,14 +42,14 @@ int main( int argc, char *argv[] )
42 42
     return -1;
43 43
   }
44 44
 
45
-  QStringList templates = KGlobal::dirs()->findAllResources( "data", "kappfinder/apps/*.desktop", true );
45
+  TQStringList templates = KGlobal::dirs()->findAllResources( "data", "kappfinder/apps/*.desktop", true );
46 46
 
47
-  QString dir = QString( argv[ 1 ] ) + "/";
47
+  TQString dir = TQString( argv[ 1 ] ) + "/";
48 48
 
49
-  QPtrList<AppLnkCache> appCache;
49
+  TQPtrList<AppLnkCache> appCache;
50 50
   appCache.setAutoDelete( true );
51 51
 
52
-  QStringList::Iterator it;
52
+  TQStringList::Iterator it;
53 53
   for ( it = templates.begin(); it != templates.end(); ++it )
54 54
     scanDesktopFile( appCache, *it, dir );
55 55
 

+ 41
- 41
kappfinder/toplevel.cpp View File

@@ -35,22 +35,22 @@
35 35
 #include <kstdguiitem.h>
36 36
 #include <kstartupinfo.h>
37 37
 
38
-#include <qaccel.h>
39
-#include <qlabel.h>
40
-#include <qlayout.h>
41
-#include <qpushbutton.h>
42
-#include <qdir.h>
43
-#include <qregexp.h>
38
+#include <tqaccel.h>
39
+#include <tqlabel.h>
40
+#include <tqlayout.h>
41
+#include <tqpushbutton.h>
42
+#include <tqdir.h>
43
+#include <tqregexp.h>
44 44
 
45 45
 #include "toplevel.h"
46 46
 
47
-TopLevel::TopLevel( const QString &destDir, QWidget *parent, const char *name )
47
+TopLevel::TopLevel( const TQString &destDir, TQWidget *parent, const char *name )
48 48
   : KDialog( parent, name, true )
49 49
 {
50 50
   setCaption( i18n( "KAppfinder" ) );
51
-  QVBoxLayout *layout = new QVBoxLayout( this, marginHint() );
51
+  TQVBoxLayout *layout = new TQVBoxLayout( this, marginHint() );
52 52
 
53
-  QLabel *label = new QLabel( i18n( "The application finder looks for non-KDE "
53
+  TQLabel *label = new TQLabel( i18n( "The application finder looks for non-KDE "
54 54
                                     "applications on your system and adds "
55 55
                                     "them to the KDE menu system. "
56 56
                                     "Click 'Scan' to begin, select the desired applications and then click 'Apply'."), this);
@@ -59,53 +59,53 @@ TopLevel::TopLevel( const QString &destDir, QWidget *parent, const char *name )
59 59
 
60 60
   layout->addSpacing( 5 );
61 61
 
62
-  mListView = new QListView( this );
62
+  mListView = new TQListView( this );
63 63
   mListView->addColumn( i18n( "Application" ) );
64 64
   mListView->addColumn( i18n( "Description" ) );
65 65
   mListView->addColumn( i18n( "Command" ) );
66 66
   mListView->setMinimumSize( 300, 300 );
67 67
   mListView->setRootIsDecorated( true );
68 68
   mListView->setAllColumnsShowFocus( true );
69
-  mListView->setSelectionMode(QListView::NoSelection);
69
+  mListView->setSelectionMode(TQListView::NoSelection);
70 70
   layout->addWidget( mListView );
71 71
 
72 72
   mProgress = new KProgress( this );
73 73
   mProgress->setPercentageVisible( false );
74 74
   layout->addWidget( mProgress );
75 75
 
76
-  mSummary = new QLabel( i18n( "Summary:" ), this );
76
+  mSummary = new TQLabel( i18n( "Summary:" ), this );
77 77
   layout->addWidget( mSummary );
78 78
 
79 79
   KButtonBox* bbox = new KButtonBox( this );
80
-  mScanButton = bbox->addButton( KGuiItem( i18n( "Scan" ), "find"), this, SLOT( slotScan() ) );
80
+  mScanButton = bbox->addButton( KGuiItem( i18n( "Scan" ), "find"), this, TQT_SLOT( slotScan() ) );
81 81
   bbox->addStretch( 5 );
82 82
   mSelectButton = bbox->addButton( i18n( "Select All" ), this,
83
-                                   SLOT( slotSelectAll() ) );
83
+                                   TQT_SLOT( slotSelectAll() ) );
84 84
   mSelectButton->setEnabled( false );
85 85
   mUnSelectButton = bbox->addButton( i18n( "Unselect All" ), this,
86
-                                     SLOT( slotUnselectAll() ) );
86
+                                     TQT_SLOT( slotUnselectAll() ) );
87 87
   mUnSelectButton->setEnabled( false );
88 88
   bbox->addStretch( 5 );
89
-  mApplyButton = bbox->addButton( KStdGuiItem::apply(), this, SLOT( slotCreate() ) );
89
+  mApplyButton = bbox->addButton( KStdGuiItem::apply(), this, TQT_SLOT( slotCreate() ) );
90 90
   mApplyButton->setEnabled( false );
91
-  bbox->addButton( KStdGuiItem::close(), kapp, SLOT( quit() ) );
91
+  bbox->addButton( KStdGuiItem::close(), kapp, TQT_SLOT( quit() ) );
92 92
   bbox->layout();
93 93
 
94 94
   layout->addWidget( bbox );
95 95
 
96
-	connect( kapp, SIGNAL( lastWindowClosed() ), kapp, SLOT( quit() ) );
96
+	connect( kapp, TQT_SIGNAL( lastWindowClosed() ), kapp, TQT_SLOT( quit() ) );
97 97
 
98 98
   mAppCache.setAutoDelete( true );
99 99
 
100 100
   adjustSize();
101 101
 
102 102
   mDestDir = destDir;
103
-  mDestDir = mDestDir.replace( QRegExp( "^~/" ), QDir::homeDirPath() + "/" );
103
+  mDestDir = mDestDir.replace( TQRegExp( "^~/" ), TQDir::homeDirPath() + "/" );
104 104
 	
105 105
   KStartupInfo::appStarted();
106 106
 
107
-  QAccel *accel = new QAccel( this );
108
-  accel->connectItem( accel->insertItem( Key_Q + CTRL ), kapp, SLOT( quit() ) );
107
+  TQAccel *accel = new TQAccel( this );
108
+  accel->connectItem( accel->insertItem( Key_Q + CTRL ), kapp, TQT_SLOT( quit() ) );
109 109
 
110 110
   KAcceleratorManager::manage( this );
111 111
 }
@@ -116,8 +116,8 @@ TopLevel::~TopLevel()
116 116
   mAppCache.clear();
117 117
 }
118 118
 
119
-QListViewItem* TopLevel::addGroupItem( QListViewItem *parent, const QString &relPath,
120
-                                       const QString &name )
119
+TQListViewItem* TopLevel::addGroupItem( TQListViewItem *parent, const TQString &relPath,
120
+                                       const TQString &name )
121 121
 {
122 122
   KServiceGroup::Ptr root = KServiceGroup::group( relPath );
123 123
   if( !root )
@@ -129,8 +129,8 @@ QListViewItem* TopLevel::addGroupItem( QListViewItem *parent, const QString &rel
129 129
     KSycocaEntry *p = (*it);
130 130
     if ( p->isType( KST_KServiceGroup ) ) {
131 131
       KServiceGroup* serviceGroup = static_cast<KServiceGroup*>( p );
132
-      if ( QString( "%1%2/" ).arg( relPath ).arg( name ) == serviceGroup->relPath() ) {
133
-        QListViewItem* retval;
132
+      if ( TQString( "%1%2/" ).arg( relPath ).arg( name ) == serviceGroup->relPath() ) {
133
+        TQListViewItem* retval;
134 134
         if ( parent )
135 135
           retval = parent->firstChild();
136 136
         else
@@ -143,11 +143,11 @@ QListViewItem* TopLevel::addGroupItem( QListViewItem *parent, const QString &rel
143 143
           retval = retval->nextSibling();
144 144
         }
145 145
 
146
-        QListViewItem *item;
146
+        TQListViewItem *item;
147 147
         if ( parent )
148
-          item = new QListViewItem( parent, serviceGroup->caption() );
148
+          item = new TQListViewItem( parent, serviceGroup->caption() );
149 149
         else
150
-          item = new QListViewItem( mListView, serviceGroup->caption() );
150
+          item = new TQListViewItem( mListView, serviceGroup->caption() );
151 151
 
152 152
         item->setPixmap( 0, SmallIcon( serviceGroup->icon() ) );
153 153
         item->setOpen( true );
@@ -177,12 +177,12 @@ void TopLevel::slotScan()
177 177
 
178 178
   mListView->clear();
179 179
 
180
-  QStringList::Iterator it;
180
+  TQStringList::Iterator it;
181 181
   for ( it = mTemplates.begin(); it != mTemplates.end(); ++it ) {
182 182
     // eye candy
183 183
     mProgress->setProgress( mProgress->progress() + 1 );
184 184
 
185
-    QString desktopName = *it;
185
+    TQString desktopName = *it;
186 186
     int i = desktopName.findRev('/');
187 187
     desktopName = desktopName.mid(i+1);
188 188
     i = desktopName.findRev('.');
@@ -206,16 +206,16 @@ void TopLevel::slotScan()
206 206
 
207 207
     // copy over the desktop file, if exists
208 208
     if ( scanDesktopFile( mAppCache, *it, mDestDir ) ) {
209
-      QString relPath = *it;
209
+      TQString relPath = *it;
210 210
       int pos = relPath.find( "kappfinder/apps/" );
211 211
       relPath = relPath.mid( pos + strlen( "kappfinder/apps/" ) );
212 212
       relPath = relPath.left( relPath.findRev( '/' ) + 1 );
213
-      QStringList dirList = QStringList::split( '/', relPath );
213
+      TQStringList dirList = TQStringList::split( '/', relPath );
214 214
 
215
-      QListViewItem *dirItem = 0;
216
-      QString tmpRelPath = QString::null;
215
+      TQListViewItem *dirItem = 0;
216
+      TQString tmpRelPath = TQString::null;
217 217
 
218
-      QStringList::Iterator tmpIt;
218
+      TQStringList::Iterator tmpIt;
219 219
       for ( tmpIt = dirList.begin(); tmpIt != dirList.end(); ++tmpIt ) {
220 220
         dirItem = addGroupItem( dirItem, tmpRelPath, *tmpIt );
221 221
         tmpRelPath += *tmpIt + '/';
@@ -223,11 +223,11 @@ void TopLevel::slotScan()
223 223
 
224 224
       mFound++;
225 225
 
226
-      QCheckListItem *item;
226
+      TQCheckListItem *item;
227 227
       if ( dirItem )
228
-        item = new QCheckListItem( dirItem, desktop.readName(), QCheckListItem::CheckBox );
228
+        item = new TQCheckListItem( dirItem, desktop.readName(), TQCheckListItem::CheckBox );
229 229
       else
230
-        item = new QCheckListItem( mListView, desktop.readName(), QCheckListItem::CheckBox );
230
+        item = new TQCheckListItem( mListView, desktop.readName(), TQCheckListItem::CheckBox );
231 231
 
232 232
       item->setPixmap( 0, loader->loadIcon( desktop.readIcon(), KIcon::Small ) );
233 233
       item->setText( 1, desktop.readGenericName() );
@@ -241,7 +241,7 @@ void TopLevel::slotScan()
241 241
     }
242 242
 
243 243
     // update summary
244
-    QString sum( i18n( "Summary: found %n application",
244
+    TQString sum( i18n( "Summary: found %n application",
245 245
                        "Summary: found %n applications", mFound ) );
246 246
     mSummary->setText( sum );
247 247
   }
@@ -284,9 +284,9 @@ void TopLevel::slotCreate()
284 284
 
285 285
   KService::rebuildKSycoca(this);
286 286
 
287
-  QString message( i18n( "%n application was added to the KDE menu system.",
287
+  TQString message( i18n( "%n application was added to the KDE menu system.",
288 288
                          "%n applications were added to the KDE menu system.", mAdded ) );
289
-  KMessageBox::information( this, message, QString::null, "ShowInformation" );
289
+  KMessageBox::information( this, message, TQString::null, "ShowInformation" );
290 290
 }
291 291
 
292 292
 #include "toplevel.moc"

+ 15
- 15
kappfinder/toplevel.h View File

@@ -24,7 +24,7 @@
24 24
 
25 25
 #include <kdialog.h>
26 26
 
27
-#include <qstringlist.h>
27
+#include <tqstringlist.h>
28 28
 
29 29
 #include "common.h"
30 30
 
@@ -38,7 +38,7 @@ class TopLevel : public KDialog
38 38
   Q_OBJECT
39 39
 
40 40
   public:
41
-    TopLevel( const QString &destDir, QWidget *parent = 0, const char *name = 0 );
41
+    TopLevel( const TQString &destDir, TQWidget *parent = 0, const char *name = 0 );
42 42
     ~TopLevel();
43 43
 
44 44
   public slots:
@@ -48,21 +48,21 @@ class TopLevel : public KDialog
48 48
     void slotUnselectAll();
49 49
 
50 50
   private:
51
-    QListViewItem *addGroupItem( QListViewItem *parent, const QString &relPath,
52
-                                 const QString &name );
51
+    TQListViewItem *addGroupItem( TQListViewItem *parent, const TQString &relPath,
52
+                                 const TQString &name );
53 53
 
54 54
     KProgress *mProgress;
55
-    QLabel *mSummary;
56
-    QListView *mListView;
57
-    QPushButton *mApplyButton;
58
-    QPushButton *mQuitButton;
59
-    QPushButton *mScanButton;
60
-    QPushButton *mSelectButton;
61
-    QPushButton *mUnSelectButton;
62
-    QString mDestDir;
63
-    QStringList mTemplates;
64
-
65
-    QPtrList<AppLnkCache> mAppCache;
55
+    TQLabel *mSummary;
56
+    TQListView *mListView;
57
+    TQPushButton *mApplyButton;
58
+    TQPushButton *mQuitButton;
59
+    TQPushButton *mScanButton;
60
+    TQPushButton *mSelectButton;
61
+    TQPushButton *mUnSelectButton;
62
+    TQString mDestDir;
63
+    TQStringList mTemplates;
64
+
65
+    TQPtrList<AppLnkCache> mAppCache;
66 66
 
67 67
     int mFound, mAdded;
68 68
 };

+ 23
- 23
kate/app/kateapp.cpp View File

@@ -42,10 +42,10 @@
42 42
 #include <ksimpleconfig.h>
43 43
 #include <kstartupinfo.h>
44 44
 
45
-#include <qfile.h>
46
-#include <qtimer.h>
47
-#include <qdir.h>
48
-#include <qtextcodec.h>
45
+#include <tqfile.h>
46
+#include <tqtimer.h>
47
+#include <tqdir.h>
48
+#include <tqtextcodec.h>
49 49
 
50 50
 #include <stdlib.h>
51 51
 #include <unistd.h>
@@ -81,7 +81,7 @@ KateApp::KateApp (KCmdLineArgs *args)
81 81
   m_obj = new KateAppDCOPIface (this);
82 82
 
83 83
   kdDebug()<<"Setting KATE_PID: '"<<getpid()<<"'"<<endl;
84
-  ::setenv( "KATE_PID", QString("%1").arg(getpid()).latin1(), 1 );
84
+  ::setenv( "KATE_PID", TQString("%1").arg(getpid()).latin1(), 1 );
85 85
 
86 86
   // handle restore different
87 87
   if (isRestored())
@@ -129,10 +129,10 @@ Kate::Application *KateApp::application ()
129 129
  * Has always been the Kate Versioning Scheme:
130 130
  * KDE X.Y.Z contains Kate X-1.Y.Z
131 131
  */
132
-QString KateApp::kateVersion (bool fullVersion)
132
+TQString KateApp::kateVersion (bool fullVersion)
133 133
 {
134
-  return fullVersion ? QString ("%1.%2.%3").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor()).arg(KDE::versionRelease())
135
-           : QString ("%1.%2").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor());
134
+  return fullVersion ? TQString ("%1.%2.%3").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor()).arg(KDE::versionRelease())
135
+           : TQString ("%1.%2").arg(KDE::versionMajor() - 1).arg(KDE::versionMinor());
136 136
 }
137 137
 
138 138
 void KateApp::restoreKate ()
@@ -142,7 +142,7 @@ void KateApp::restoreKate ()
142 142
 
143 143
   // activate again correct session!!!
144 144
   sessionConfig()->setGroup("General");
145
-  QString lastSession (sessionConfig()->readEntry ("Last Session", "default.katesession"));
145
+  TQString lastSession (sessionConfig()->readEntry ("Last Session", "default.katesession"));
146 146
   sessionManager()->activateSession (new KateSession (sessionManager(), lastSession, ""), false, false, false);
147 147
 
148 148
   m_docManager->restoreDocumentList (sessionConfig());
@@ -151,7 +151,7 @@ void KateApp::restoreKate ()
151 151
 
152 152
   // restore all windows ;)
153 153
   for (int n=1; KMainWindow::canBeRestored(n); n++)
154
-    newMainWindow(sessionConfig(), QString ("%1").arg(n));
154
+    newMainWindow(sessionConfig(), TQString ("%1").arg(n));
155 155
 
156 156
   // oh, no mainwindow, create one, should not happen, but make sure ;)
157 157
   if (mainWindows() == 0)
@@ -166,7 +166,7 @@ bool KateApp::startupKate ()
166 166
   // user specified session to open
167 167
   if (m_args->isSet ("start"))
168 168
   {
169
-    sessionManager()->activateSession (sessionManager()->giveSession (QString::fromLocal8Bit(m_args->getOption("start"))), false, false);
169
+    sessionManager()->activateSession (sessionManager()->giveSession (TQString::fromLocal8Bit(m_args->getOption("start"))), false, false);
170 170
   }
171 171
   else
172 172
   {
@@ -186,7 +186,7 @@ bool KateApp::startupKate ()
186 186
   // notify about start
187 187
   KStartupInfo::setNewStartupId( activeMainWindow(), startupId());
188 188
 
189
-  QTextCodec *codec = m_args->isSet("encoding") ? QTextCodec::codecForName(m_args->getOption("encoding")) : 0;
189
+  TQTextCodec *codec = m_args->isSet("encoding") ? TQTextCodec::codecForName(m_args->getOption("encoding")) : 0;
190 190
 
191 191
   bool tempfileSet = KCmdLineArgs::isTempFileSet();
192 192
 
@@ -195,7 +195,7 @@ bool KateApp::startupKate ()
195 195
   for (int z=0; z<m_args->count(); z++)
196 196
   {
197 197
     // this file is no local dir, open it, else warn
198
-    bool noDir = !m_args->url(z).isLocalFile() || !QDir (m_args->url(z).path()).exists();
198
+    bool noDir = !m_args->url(z).isLocalFile() || !TQDir (m_args->url(z).path()).exists();
199 199
 
200 200
     if (noDir)
201 201
     {
@@ -203,7 +203,7 @@ bool KateApp::startupKate ()
203 203
       if (codec)
204 204
         id = activeMainWindow()->viewManager()->openURL( m_args->url(z), codec->name(), false, tempfileSet );
205 205
       else
206
-        id = activeMainWindow()->viewManager()->openURL( m_args->url(z), QString::null, false, tempfileSet );
206
+        id = activeMainWindow()->viewManager()->openURL( m_args->url(z), TQString::null, false, tempfileSet );
207 207
     }
208 208
     else
209 209
       KMessageBox::sorry( activeMainWindow(),
@@ -215,14 +215,14 @@ bool KateApp::startupKate ()
215 215
   // handle stdin input
216 216
   if( m_args->isSet( "stdin" ) )
217 217
   {
218
-    QTextIStream input(stdin);
218
+    TQTextIStream input(stdin);
219 219
 
220 220
     // set chosen codec
221 221
     if (codec)
222 222
       input.setCodec (codec);
223 223
 
224
-    QString line;
225
-    QString text;
224
+    TQString line;
225
+    TQString text;
226 226
 
227 227
     do
228 228
     {
@@ -295,19 +295,19 @@ KateSessionManager *KateApp::sessionManager ()
295 295
   return m_sessionManager;
296 296
 }
297 297
 
298
-bool KateApp::openURL (const KURL &url, const QString &encoding, bool isTempFile)
298
+bool KateApp::openURL (const KURL &url, const TQString &encoding, bool isTempFile)
299 299
 {
300 300
   KateMainWindow *mainWindow = activeMainWindow ();
301 301
 
302 302
   if (!mainWindow)
303 303
     return false;
304 304
 
305
-  QTextCodec *codec = encoding.isEmpty() ? 0 : QTextCodec::codecForName(encoding.latin1());
305
+  TQTextCodec *codec = encoding.isEmpty() ? 0 : TQTextCodec::codecForName(encoding.latin1());
306 306
 
307 307
   kdDebug () << "OPEN URL "<< encoding << endl;
308 308
 
309 309
   // this file is no local dir, open it, else warn
310
-  bool noDir = !url.isLocalFile() || !QDir (url.path()).exists();
310
+  bool noDir = !url.isLocalFile() || !TQDir (url.path()).exists();
311 311
 
312 312
   if (noDir)
313 313
   {
@@ -315,7 +315,7 @@ bool KateApp::openURL (const KURL &url, const QString &encoding, bool isTempFile
315 315
     if (codec)
316 316
       mainWindow->viewManager()->openURL( url, codec->name(), true, isTempFile );
317 317
     else
318
-      mainWindow->viewManager()->openURL( url, QString::null, true, isTempFile );
318
+      mainWindow->viewManager()->openURL( url, TQString::null, true, isTempFile );
319 319
   }
320 320
   else
321 321
     KMessageBox::sorry( mainWindow,
@@ -336,7 +336,7 @@ bool KateApp::setCursor (int line, int column)
336 336
   return true;
337 337
 }
338 338
 
339
-bool KateApp::openInput (const QString &text)
339
+bool KateApp::openInput (const TQString &text)
340 340
 {
341 341
   activeMainWindow()->viewManager()->openURL( "", "", true );
342 342
 
@@ -348,7 +348,7 @@ bool KateApp::openInput (const QString &text)
348 348
   return true;
349 349
 }
350 350
 
351
-KateMainWindow *KateApp::newMainWindow (KConfig *sconfig, const QString &sgroup)
351
+KateMainWindow *KateApp::newMainWindow (KConfig *sconfig, const TQString &sgroup)
352 352
 {
353 353
   KateMainWindow *mainWindow = new KateMainWindow (sconfig, sgroup);
354 354
   m_mainWindows.push_back (mainWindow);

+ 6
- 6
kate/app/kateapp.h View File

@@ -24,7 +24,7 @@
24 24
 
25 25
 #include <kapplication.h>
26 26
 
27
-#include <qvaluelist.h>
27
+#include <tqvaluelist.h>
28 28
 
29 29
 class KateSessionManager;
30 30
 class KateAppDCOPIface;
@@ -75,7 +75,7 @@ class KDE_EXPORT KateApp : public KApplication
75 75
      * @param fullVersion should full version be returned?
76 76
      * @return Kate version
77 77
      */
78
-    static QString kateVersion (bool fullVersion = true);
78
+    static TQString kateVersion (bool fullVersion = true);
79 79
 
80 80
   /**
81 81
    * kate init
@@ -140,7 +140,7 @@ class KDE_EXPORT KateApp : public KApplication
140 140
      * @param sgroup session group for this window
141 141
      * @return new constructed main window
142 142
      */
143
-    KateMainWindow *newMainWindow (KConfig *sconfig = 0, const QString &sgroup = "");
143
+    KateMainWindow *newMainWindow (KConfig *sconfig = 0, const TQString &sgroup = "");
144 144
 
145 145
     /**
146 146
      * removes the mainwindow given, DOES NOT DELETE IT
@@ -180,7 +180,7 @@ class KDE_EXPORT KateApp : public KApplication
180 180
      * @param isTempFile if set to true and the file is a local file, it will be deleted when the document is closed.
181 181
      * @return success
182 182
      */
183
-    bool openURL (const KURL &url, const QString &encoding, bool isTempFile );
183
+    bool openURL (const KURL &url, const TQString &encoding, bool isTempFile );
184 184
 
185 185
     /**
186 186
      * position cursor in current active view
@@ -196,7 +196,7 @@ class KDE_EXPORT KateApp : public KApplication
196 196
      * @param text text to fill in the new doc/view
197 197
      * @return success
198 198
      */
199
-    bool openInput (const QString &text);
199
+    bool openInput (const TQString &text);
200 200
 
201 201
   private:
202 202
     /**
@@ -227,7 +227,7 @@ class KDE_EXPORT KateApp : public KApplication
227 227
     /**
228 228
      * known main windows
229 229
      */
230
-    QValueList<KateMainWindow*> m_mainWindows;
230
+    TQValueList<KateMainWindow*> m_mainWindows;
231 231
 
232 232
     /**
233 233
      * dcop interface

+ 5
- 5
kate/app/kateappIface.cpp View File

@@ -69,12 +69,12 @@ DCOPRef KateAppDCOPIface::mainWindow (uint n)
69 69
   return DCOPRef ();
70 70
 }
71 71
 
72
-bool KateAppDCOPIface::openURL (KURL url, QString encoding)
72
+bool KateAppDCOPIface::openURL (KURL url, TQString encoding)
73 73
 {
74 74
   return m_app->openURL (url, encoding, false);
75 75
 }
76 76
 
77
-bool KateAppDCOPIface::openURL (KURL url, QString encoding, bool isTempFile)
77
+bool KateAppDCOPIface::openURL (KURL url, TQString encoding, bool isTempFile)
78 78
 {
79 79
   return m_app->openURL (url, encoding, isTempFile);
80 80
 }
@@ -84,19 +84,19 @@ bool KateAppDCOPIface::setCursor (int line, int column)
84 84
   return m_app->setCursor (line, column);
85 85
 }
86 86
 
87
-bool KateAppDCOPIface::openInput (QString text)
87
+bool KateAppDCOPIface::openInput (TQString text)
88 88
 {
89 89
   return m_app->openInput (text);
90 90
 }
91 91
 
92
-bool KateAppDCOPIface::activateSession (QString session)
92
+bool KateAppDCOPIface::activateSession (TQString session)
93 93
 {
94 94
   m_app->sessionManager()->activateSession (m_app->sessionManager()->giveSession (session));
95 95
 
96 96
   return true;
97 97
 }
98 98
 
99
-const QString & KateAppDCOPIface::session() const
99
+const TQString & KateAppDCOPIface::session() const
100 100
 {
101 101
   return m_app->sessionManager()->activeSession()->sessionName();
102 102
 }

+ 5
- 5
kate/app/kateappIface.h View File

@@ -49,7 +49,7 @@ class KateAppDCOPIface : public DCOPObject
49 49
      * @param encoding encoding name
50 50
      * @return success
51 51
      */
52
-    bool openURL (KURL url, QString encoding);
52
+    bool openURL (KURL url, TQString encoding);
53 53
 
54 54
     /**
55 55
      * Like the above, but adds an option to let the documentManager know
@@ -57,7 +57,7 @@ class KateAppDCOPIface : public DCOPObject
57 57
      * @p isTempFile should be set to true with the --tempfile option set ONLY,
58 58
      * files opened with this set to true will be deleted when closed.
59 59
      */
60
-    bool openURL(KURL url, QString encoding, bool isTempFile);
60
+    bool openURL(KURL url, TQString encoding, bool isTempFile);
61 61
 
62 62
     /**
63 63
      * set cursor of active view in active main window
@@ -73,19 +73,19 @@ class KateAppDCOPIface : public DCOPObject
73 73
      * @param text text to fill in the new doc/view
74 74
      * @return success
75 75
      */
76
-    bool openInput (QString text);
76
+    bool openInput (TQString text);
77 77
 
78 78
     /**
79 79
      * activate a given session
80 80
      * @param session session name
81 81
      * @return success
82 82
      */
83
-    bool activateSession (QString session);
83
+    bool activateSession (TQString session);
84 84
 
85 85
     /**
86 86
      * @return the name of the active session
87 87
      */
88
-    const QString & session() const;
88
+    const TQString & session() const;
89 89
 
90 90
   private:
91 91
     KateApp *m_app;

+ 70
- 70
kate/app/kateconfigdialog.cpp View File

@@ -32,17 +32,17 @@
32 32
 #include "katefilelist.h"
33 33
 #include "kateexternaltools.h"
34 34
 
35
-#include <qbuttongroup.h>
36
-#include <qcheckbox.h>
37
-#include <qhbox.h>
38
-#include <qlabel.h>
39
-#include <qlayout.h>
40
-#include <qpushbutton.h>
41
-#include <qradiobutton.h>
42
-#include <qspinbox.h>
43
-#include <qvbox.h>
44
-#include <qwhatsthis.h>
45
-#include <qcombobox.h>
35
+#include <tqbuttongroup.h>
36
+#include <tqcheckbox.h>
37
+#include <tqhbox.h>
38
+#include <tqlabel.h>
39
+#include <tqlayout.h>
40
+#include <tqpushbutton.h>
41
+#include <tqradiobutton.h>
42
+#include <tqspinbox.h>
43
+#include <tqvbox.h>
44
+#include <tqwhatsthis.h>
45
+#include <tqcombobox.h>
46 46
 
47 47
 #include <kinstance.h>
48 48
 #include <kdebug.h>
@@ -83,7 +83,7 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
83 83
   pluginPages.setAutoDelete (false);
84 84
   editorPages.setAutoDelete (false);
85 85
 
86
-  QStringList path;
86
+  TQStringList path;
87 87
 
88 88
   setShowIconsInTreeList(true);
89 89
 
@@ -95,75 +95,75 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
95 95
 
96 96
   //BEGIN General page
97 97
   path << i18n("Application") << i18n("General");
98
-  QFrame* frGeneral = addPage(path, i18n("General Options"), BarIcon("gohome", KIcon::SizeSmall));
98
+  TQFrame* frGeneral = addPage(path, i18n("General Options"), BarIcon("gohome", KIcon::SizeSmall));
99 99
 
100
-  QVBoxLayout *lo = new QVBoxLayout( frGeneral );
100
+  TQVBoxLayout *lo = new TQVBoxLayout( frGeneral );
101 101
   lo->setSpacing(KDialog::spacingHint());
102 102
   config->setGroup("General");
103 103
 
104 104
   // GROUP with the one below: "Appearance"
105
-  QButtonGroup *bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("&Appearance"), frGeneral );
105
+  TQButtonGroup *bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Appearance"), frGeneral );
106 106
   lo->addWidget( bgStartup );
107 107
 
108 108
   // show full path in title
109 109
   config->setGroup("General");
110
-  cb_fullPath = new QCheckBox( i18n("&Show full path in title"), bgStartup);
110
+  cb_fullPath = new TQCheckBox( i18n("&Show full path in title"), bgStartup);
111 111
   cb_fullPath->setChecked( mainWindow->viewManager()->getShowFullPath() );
112
-  QWhatsThis::add(cb_fullPath,i18n("If this option is checked, the full document path will be shown in the window caption."));
113
-  connect( cb_fullPath, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
112
+  TQWhatsThis::add(cb_fullPath,i18n("If this option is checked, the full document path will be shown in the window caption."));
113
+  connect( cb_fullPath, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
114 114
 
115 115
 
116 116
   // GROUP with the one below: "Behavior"
117
-  bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral );
117
+  bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("&Behavior"), frGeneral );
118 118
   lo->addWidget( bgStartup );
119 119
 
120 120
   // sync the konsole ?
121
-  cb_syncKonsole = new QCheckBox(bgStartup);
121
+  cb_syncKonsole = new TQCheckBox(bgStartup);
122 122
   cb_syncKonsole->setText(i18n("Sync &terminal emulator with active document"));
123 123
   cb_syncKonsole->setChecked(parent->syncKonsole);
124
-  QWhatsThis::add( cb_syncKonsole, i18n(
124
+  TQWhatsThis::add( cb_syncKonsole, i18n(
125 125
         "If this is checked, the built in Konsole will <code>cd</code> to the directory "
126 126
         "of the active document when started and whenever the active document changes, "
127 127
         "if the document is a local file.") );
128
-  connect( cb_syncKonsole, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
128
+  connect( cb_syncKonsole, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
129 129
 
130 130
   // modified files notification
131
-  cb_modNotifications = new QCheckBox(
131
+  cb_modNotifications = new TQCheckBox(
132 132
       i18n("Wa&rn about files modified by foreign processes"), bgStartup );
133 133
   cb_modNotifications->setChecked( parent->modNotification );
134
-  QWhatsThis::add( cb_modNotifications, i18n(
134
+  TQWhatsThis::add( cb_modNotifications, i18n(
135 135
       "If enabled, when Kate receives focus you will be asked what to do with "
136 136
       "files that have been modified on the hard disk. If not enabled, you will "
137 137
       "be asked what to do with a file that has been modified on the hard disk only "
138 138
       "when that file gains focus inside Kate.") );
139
-  connect( cb_modNotifications, SIGNAL( toggled( bool ) ),
140
-           this, SLOT( slotChanged() ) );
139
+  connect( cb_modNotifications, TQT_SIGNAL( toggled( bool ) ),
140
+           this, TQT_SLOT( slotChanged() ) );
141 141
 
142 142
   // GROUP with the one below: "Meta-informations"
143
-  bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("Meta-Information"), frGeneral );
143
+  bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Meta-Information"), frGeneral );
144 144
   lo->addWidget( bgStartup );
145 145
 
146 146
   // save meta infos
147
-  cb_saveMetaInfos = new QCheckBox( bgStartup );
147
+  cb_saveMetaInfos = new TQCheckBox( bgStartup );
148 148
   cb_saveMetaInfos->setText(i18n("Keep &meta-information past sessions"));
149 149
   cb_saveMetaInfos->setChecked(KateDocManager::self()->getSaveMetaInfos());
150
-  QWhatsThis::add(cb_saveMetaInfos, i18n(
150
+  TQWhatsThis::add(cb_saveMetaInfos, i18n(
151 151
         "Check this if you want document configuration like for example "
152 152
         "bookmarks to be saved past editor sessions. The configuration will be "
153 153
         "restored if the document has not changed when reopened."));
154
-  connect( cb_saveMetaInfos, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
154
+  connect( cb_saveMetaInfos, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
155 155
 
156 156
   // meta infos days
157
-  QHBox *hbDmf = new QHBox( bgStartup );
157
+  TQHBox *hbDmf = new TQHBox( bgStartup );
158 158
   hbDmf->setEnabled(KateDocManager::self()->getSaveMetaInfos());
159
-  QLabel *lDmf = new QLabel( i18n("&Delete unused meta-information after:"), hbDmf );
160
-  sb_daysMetaInfos = new QSpinBox( 0, 180, 1, hbDmf );
159
+  TQLabel *lDmf = new TQLabel( i18n("&Delete unused meta-information after:"), hbDmf );
160
+  sb_daysMetaInfos = new TQSpinBox( 0, 180, 1, hbDmf );
161 161
   sb_daysMetaInfos->setSpecialValueText(i18n("(never)"));
162 162
   sb_daysMetaInfos->setSuffix(i18n(" day(s)"));
163 163
   sb_daysMetaInfos->setValue( KateDocManager::self()->getDaysMetaInfos() );
164 164
   lDmf->setBuddy( sb_daysMetaInfos );
165
-  connect( cb_saveMetaInfos, SIGNAL( toggled( bool ) ), hbDmf, SLOT( setEnabled( bool ) ) );
166
-  connect( sb_daysMetaInfos, SIGNAL( valueChanged ( int ) ), this, SLOT( slotChanged() ) );
165
+  connect( cb_saveMetaInfos, TQT_SIGNAL( toggled( bool ) ), hbDmf, TQT_SLOT( setEnabled( bool ) ) );
166
+  connect( sb_daysMetaInfos, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
167 167
 
168 168
   lo->addStretch(1); // :-] works correct without autoadd
169 169
   //END General page
@@ -172,36 +172,36 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
172 172
 
173 173
   //BEGIN Session page
174 174
   path << i18n("Application") << i18n("Sessions");
175
-  QFrame* frSessions = addPage(path, i18n("Session Management"), BarIcon("history", KIcon::SizeSmall));
175
+  TQFrame* frSessions = addPage(path, i18n("Session Management"), BarIcon("history", KIcon::SizeSmall));
176 176
 
177
-  lo = new QVBoxLayout( frSessions );
177
+  lo = new TQVBoxLayout( frSessions );
178 178
   lo->setSpacing(KDialog::spacingHint());
179 179
 
180 180
   // GROUP with the one below: "Startup"
181
-  bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("Elements of Sessions"), frSessions );
181
+  bgStartup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Elements of Sessions"), frSessions );
182 182
   lo->addWidget( bgStartup );
183 183
 
184 184
   // restore view  config
185
-  cb_restoreVC = new QCheckBox( bgStartup );
185
+  cb_restoreVC = new TQCheckBox( bgStartup );
186 186
   cb_restoreVC->setText(i18n("Include &window configuration"));
187 187
   config->setGroup("General");
188 188
   cb_restoreVC->setChecked( config->readBoolEntry("Restore Window Configuration", true) );
189
-  QWhatsThis::add(cb_restoreVC, i18n(
189
+  TQWhatsThis::add(cb_restoreVC, i18n(
190 190
         "Check this if you want all your views and frames restored each time you open Kate"));
191
-  connect( cb_restoreVC, SIGNAL( toggled( bool ) ), this, SLOT( slotChanged() ) );
191
+  connect( cb_restoreVC, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotChanged() ) );
192 192
 
193
-  QRadioButton *rb1, *rb2, *rb3;
193
+  TQRadioButton *rb1, *rb2, *rb3;
194 194
 
195
-  sessions_start = new QButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Startup"), frSessions );
195
+  sessions_start = new TQButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Startup"), frSessions );
196 196
   lo->add (sessions_start);
197 197
 
198 198
   sessions_start->setRadioButtonExclusive( true );
199
-  sessions_start->insert( rb1=new QRadioButton( i18n("&Start new session"), sessions_start ), 0 );
200
-  sessions_start->insert( rb2=new QRadioButton( i18n("&Load last-used session"), sessions_start ), 1 );
201
-  sessions_start->insert( rb3=new QRadioButton( i18n("&Manually choose a session"), sessions_start ), 2 );
199
+  sessions_start->insert( rb1=new TQRadioButton( i18n("&Start new session"), sessions_start ), 0 );
200
+  sessions_start->insert( rb2=new TQRadioButton( i18n("&Load last-used session"), sessions_start ), 1 );
201
+  sessions_start->insert( rb3=new TQRadioButton( i18n("&Manually choose a session"), sessions_start ), 2 );
202 202
 
203 203
   config->setGroup("General");
204
-  QString sesStart (config->readEntry ("Startup Session", "manual"));
204
+  TQString sesStart (config->readEntry ("Startup Session", "manual"));
205 205
   if (sesStart == "new")
206 206
     sessions_start->setButton (0);
207 207
   else if (sesStart == "last")
@@ -209,20 +209,20 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
209 209
   else
210 210
     sessions_start->setButton (2);
211 211
 
212
-  connect(rb1, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
213
-  connect(rb2, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
214
-  connect(rb3, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
212
+  connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
213
+  connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
214
+  connect(rb3, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
215 215
 
216
-  sessions_exit = new QButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Exit or Session Switch"), frSessions );
216
+  sessions_exit = new TQButtonGroup( 1, Qt::Horizontal, i18n("Behavior on Application Exit or Session Switch"), frSessions );
217 217
   lo->add (sessions_exit);
218 218
 
219 219
   sessions_exit->setRadioButtonExclusive( true );
220
-  sessions_exit->insert( rb1=new QRadioButton( i18n("&Do not save session"), sessions_exit ), 0 );
221
-  sessions_exit->insert( rb2=new QRadioButton( i18n("&Save session"), sessions_exit ), 1 );
222
-  sessions_exit->insert( rb3=new QRadioButton( i18n("&Ask user"), sessions_exit ), 2 );
220
+  sessions_exit->insert( rb1=new TQRadioButton( i18n("&Do not save session"), sessions_exit ), 0 );
221
+  sessions_exit->insert( rb2=new TQRadioButton( i18n("&Save session"), sessions_exit ), 1 );
222
+  sessions_exit->insert( rb3=new TQRadioButton( i18n("&Ask user"), sessions_exit ), 2 );
223 223
 
224 224
   config->setGroup("General");
225
-  QString sesExit (config->readEntry ("Session Exit", "save"));
225
+  TQString sesExit (config->readEntry ("Session Exit", "save"));
226 226
   if (sesExit == "discard")
227 227
     sessions_exit->setButton (0);
228 228
   else if (sesExit == "save")
@@ -230,9 +230,9 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
230 230
   else
231 231
     sessions_exit->setButton (2);
232 232
 
233
-  connect(rb1, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
234
-  connect(rb2, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
235
-  connect(rb3, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
233
+  connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
234
+  connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
235
+  connect(rb3, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
236 236
 
237 237
   lo->addStretch(1); // :-] works correct without autoadd
238 238
   //END Session page
@@ -242,11 +242,11 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
242 242
   // file selector page
243 243
   path << i18n("Application") << i18n("File Selector");
244 244
 
245
-  QVBox *page = addVBoxPage( path, i18n("File Selector Settings"),
245
+  TQVBox *page = addVBoxPage( path, i18n("File Selector Settings"),
246 246
                               BarIcon("fileopen", KIcon::SizeSmall) );
247 247
   fileSelConfigPage = new KFSConfigPage( page, "file selector config page",
248 248
                                          mainWindow->fileselector );
249
-  connect( fileSelConfigPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
249
+  connect( fileSelConfigPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
250 250
   path.clear();
251 251
 
252 252
   path << i18n("Application") << i18n("Document List");
@@ -254,14 +254,14 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
254 254
   BarIcon("view_text", KIcon::SizeSmall) );
255 255
   filelistConfigPage = new KFLConfigPage( page, "file list config page",
256 256
 					  mainWindow->filelist );
257
-  connect( filelistConfigPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
257
+  connect( filelistConfigPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
258 258
   path.clear();
259 259
 
260 260
   path << i18n("Application") << i18n("Plugins");
261
-  /*QVBox **/page=addVBoxPage(path,i18n("Plugin Manager"),
261
+  /*TQVBox **/page=addVBoxPage(path,i18n("Plugin Manager"),
262 262
                           BarIcon("connect_established",KIcon::SizeSmall));
263 263
   KateConfigPluginPage *configPluginPage = new KateConfigPluginPage(page, this);
264
-  connect( configPluginPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
264
+  connect( configPluginPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
265 265
 
266 266
   // Tools->External Tools menu
267 267
   path.clear();
@@ -269,7 +269,7 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
269 269
   page = addVBoxPage( path, i18n("External Tools"),
270 270
       BarIcon("configure", KIcon::SizeSmall) );
271 271
   configExternalToolsPage = new KateExternalToolsConfigWidget(page, "external tools config page");
272
-  connect( configExternalToolsPage, SIGNAL(changed()), this, SLOT(slotChanged()) );
272
+  connect( configExternalToolsPage, TQT_SIGNAL(changed()), this, TQT_SLOT(slotChanged()) );
273 273
 
274 274
   // editor widgets from kwrite/kwdialog
275 275
   path.clear();
@@ -280,11 +280,11 @@ KateConfigDialog::KateConfigDialog ( KateMainWindow *parent, Kate::View *view )
280 280
   {
281 281
     path.clear();
282 282
     path << i18n("Editor") << KTextEditor::configInterfaceExtension (v->document())->configPageName (i);
283
-    /*QVBox **/page = addVBoxPage(path, KTextEditor::configInterfaceExtension (v->document())->configPageFullName (i),
283
+    /*TQVBox **/page = addVBoxPage(path, KTextEditor::configInterfaceExtension (v->document())->configPageFullName (i),
284 284
                               KTextEditor::configInterfaceExtension (v->document())->configPagePixmap(i, KIcon::SizeSmall) );
285 285
 
286 286
     KTextEditor::ConfigPage *cPage = KTextEditor::configInterfaceExtension (v->document())->configPage(i, page);
287
-    connect( cPage, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
287
+    connect( cPage, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
288 288
     editorPages.append (cPage);
289 289
   }
290 290
 
@@ -312,15 +312,15 @@ void KateConfigDialog::addPluginPage (Kate::Plugin *plugin)
312 312
 
313 313
   for (uint i=0; i<Kate::pluginConfigInterfaceExtension(plugin)->configPages(); i++)
314 314
   {
315
-    QStringList path;
315
+    TQStringList path;
316 316
     path.clear();
317 317
     path << i18n("Application")<<i18n("Plugins") << Kate::pluginConfigInterfaceExtension(plugin)->configPageName(i);
318
-    QVBox *page=addVBoxPage(path, Kate::pluginConfigInterfaceExtension(plugin)->configPageFullName(i), Kate::pluginConfigInterfaceExtension(plugin)->configPagePixmap(i, KIcon::SizeSmall));
318
+    TQVBox *page=addVBoxPage(path, Kate::pluginConfigInterfaceExtension(plugin)->configPageFullName(i), Kate::pluginConfigInterfaceExtension(plugin)->configPagePixmap(i, KIcon::SizeSmall));
319 319
 
320 320
     PluginPageListItem *info=new PluginPageListItem;
321 321
     info->plugin = plugin;
322 322
     info->page = Kate::pluginConfigInterfaceExtension(plugin)->configPage (i, page);
323
-    connect( info->page, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
323
+    connect( info->page, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
324 324
     pluginPages.append(info);
325 325
   }
326 326
 }
@@ -334,7 +334,7 @@ void KateConfigDialog::removePluginPage (Kate::Plugin *plugin)
334 334
   {
335 335
     if  ( pluginPages.at(i)->plugin == plugin )
336 336
     {
337
-      QWidget *w = pluginPages.at(i)->page->parentWidget();
337
+      TQWidget *w = pluginPages.at(i)->page->parentWidget();
338 338
       delete pluginPages.at(i)->page;
339 339
       delete w;
340 340
       pluginPages.remove(pluginPages.at(i));

+ 10
- 10
kate/app/kateconfigdialog.h View File

@@ -64,19 +64,19 @@ class KateConfigDialog : public KDialogBase
64 64
     Kate::View* v;
65 65
     bool dataChanged;
66 66
 
67
-    QCheckBox *cb_fullPath;
68
-    QCheckBox *cb_syncKonsole;
69
-    QCheckBox *cb_modNotifications;
70
-    QCheckBox *cb_saveMetaInfos;
71
-    QSpinBox *sb_daysMetaInfos;
72
-    QCheckBox* cb_restoreVC;
73
-    QButtonGroup *sessions_start;
74
-    QButtonGroup *sessions_exit;
67
+    TQCheckBox *cb_fullPath;
68
+    TQCheckBox *cb_syncKonsole;
69
+    TQCheckBox *cb_modNotifications;
70
+    TQCheckBox *cb_saveMetaInfos;
71
+    TQSpinBox *sb_daysMetaInfos;
72
+    TQCheckBox* cb_restoreVC;
73
+    TQButtonGroup *sessions_start;
74
+    TQButtonGroup *sessions_exit;
75 75
     Kate::ConfigPage *fileSelConfigPage;
76 76
     Kate::ConfigPage *filelistConfigPage;
77 77
     Kate::ConfigPage *configExternalToolsPage;
78
-    QPtrList<PluginPageListItem> pluginPages;
79
-    QPtrList<KTextEditor::ConfigPage> editorPages;
78
+    TQPtrList<PluginPageListItem> pluginPages;
79
+    TQPtrList<KTextEditor::ConfigPage> editorPages;
80 80
 };
81 81
 
82 82
 #endif

+ 13
- 13
kate/app/kateconfigplugindialogpage.cpp View File

@@ -24,19 +24,19 @@
24 24
 #include "kateconfigdialog.h"
25 25
 #include <klistbox.h>
26 26
 #include "kateapp.h"
27
-#include <qstringlist.h>
28
-#include <qhbox.h>
29
-#include <qlabel.h>
27
+#include <tqstringlist.h>
28
+#include <tqhbox.h>
29
+#include <tqlabel.h>
30 30
 #include <klocale.h>
31
-#include <qpushbutton.h>
32
-#include <qtooltip.h>
31
+#include <tqpushbutton.h>
32
+#include <tqtooltip.h>
33 33
 #include <kiconloader.h>
34
-#include <qwhatsthis.h>
34
+#include <tqwhatsthis.h>
35 35
 
36 36
 class KatePluginListItem : public QCheckListItem
37 37
 {
38 38
   public:
39
-    KatePluginListItem(bool checked, KatePluginInfo *info, QListView *parent);
39
+    KatePluginListItem(bool checked, KatePluginInfo *info, TQListView *parent);
40 40
     KatePluginInfo *info() const { return mInfo; }
41 41
 
42 42
   protected:
@@ -47,8 +47,8 @@ class KatePluginListItem : public QCheckListItem
47 47
     bool silentStateChange;
48 48
 };
49 49
 
50
-KatePluginListItem::KatePluginListItem(bool checked, KatePluginInfo *info, QListView *parent)
51
-  : QCheckListItem(parent, info->service->name(), CheckBox)
50
+KatePluginListItem::KatePluginListItem(bool checked, KatePluginInfo *info, TQListView *parent)
51
+  : TQCheckListItem(parent, info->service->name(), CheckBox)
52 52
   , mInfo(info)
53 53
   , silentStateChange(false)
54 54
 {
@@ -63,7 +63,7 @@ void KatePluginListItem::stateChange(bool b)
63 63
     static_cast<KatePluginListView *>(listView())->stateChanged(this, b);
64 64
 }
65 65
 
66
-KatePluginListView::KatePluginListView(QWidget *parent, const char *name)
66
+KatePluginListView::KatePluginListView(TQWidget *parent, const char *name)
67 67
   : KListView(parent, name)
68 68
 {
69 69
 }
@@ -73,16 +73,16 @@ void KatePluginListView::stateChanged(KatePluginListItem *item, bool b)
73 73
   emit stateChange(item, b);
74 74
 }
75 75
 
76
-KateConfigPluginPage::KateConfigPluginPage(QWidget *parent, KateConfigDialog *dialog):QVBox(parent)
76
+KateConfigPluginPage::KateConfigPluginPage(TQWidget *parent, KateConfigDialog *dialog):TQVBox(parent)
77 77
 {
78 78
   myDialog=dialog;
79 79
 
80 80
   KatePluginListView* listView = new KatePluginListView(this);
81 81
   listView->addColumn(i18n("Name"));
82 82
   listView->addColumn(i18n("Comment"));
83
-  QWhatsThis::add(listView,i18n("Here you can see all available Kate plugins. Those with a check mark are loaded, and will be loaded again the next time Kate is started."));
83
+  TQWhatsThis::add(listView,i18n("Here you can see all available Kate plugins. Those with a check mark are loaded, and will be loaded again the next time Kate is started."));
84 84
 
85
-  connect(listView, SIGNAL(stateChange(KatePluginListItem *, bool)), this, SLOT(stateChange(KatePluginListItem *, bool)));
85
+  connect(listView, TQT_SIGNAL(stateChange(KatePluginListItem *, bool)), this, TQT_SLOT(stateChange(KatePluginListItem *, bool)));
86 86
 
87 87
   KatePluginList &pluginList (KatePluginManager::self()->pluginList());
88 88
   for (unsigned int i=0; i < pluginList.size(); ++i)

+ 3
- 3
kate/app/kateconfigplugindialogpage.h View File

@@ -25,7 +25,7 @@
25 25
 
26 26
 #include <klistview.h>
27 27
 
28
-#include <qvbox.h>
28
+#include <tqvbox.h>
29 29
 
30 30
 class KatePluginListItem;
31 31
 
@@ -36,7 +36,7 @@ class KatePluginListView : public KListView
36 36
   friend class KatePluginListItem;
37 37
 
38 38
   public:
39
-    KatePluginListView (QWidget *parent = 0, const char *name = 0);
39
+    KatePluginListView (TQWidget *parent = 0, const char *name = 0);
40 40
 
41 41
   signals:
42 42
     void stateChange(KatePluginListItem *, bool);
@@ -50,7 +50,7 @@ class KateConfigPluginPage: public QVBox
50 50
   Q_OBJECT
51 51
 
52 52
   public:
53
-    KateConfigPluginPage(QWidget *parent, class KateConfigDialog *dialog);
53
+    KateConfigPluginPage(TQWidget *parent, class KateConfigDialog *dialog);
54 54
     ~KateConfigPluginPage(){;};
55 55
 
56 56
   private:

+ 5
- 5
kate/app/kateconsole.cpp View File

@@ -40,7 +40,7 @@
40 40
 #include <kmessagebox.h>
41 41
 
42 42
 KateConsole::KateConsole (KateMainWindow *mw, KateMDI::ToolView* parent)
43
- : QVBox (parent)
43
+ : TQVBox (parent)
44 44
  , m_part (0)
45 45
  , m_mw (mw)
46 46
  , m_toolView (parent)
@@ -50,7 +50,7 @@ KateConsole::KateConsole (KateMainWindow *mw, KateMDI::ToolView* parent)
50 50
 KateConsole::~KateConsole ()
51 51
 {
52 52
   if (m_part)
53
-    disconnect ( m_part, SIGNAL(destroyed()), this, SLOT(slotDestroyed()) );
53
+    disconnect ( m_part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) );
54 54
 }
55 55
 
56 56
 void KateConsole::loadConsoleIfNeeded()
@@ -74,7 +74,7 @@ void KateConsole::loadConsoleIfNeeded()
74 74
 
75 75
   m_part->widget()->show();
76 76
 
77
-  connect ( m_part, SIGNAL(destroyed()), this, SLOT(slotDestroyed()) );
77
+  connect ( m_part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) );
78 78
 
79 79
   if (m_mw->viewManager()->activeView())
80 80
     if (m_mw->viewManager()->activeView()->getDoc()->url().isValid())
@@ -93,7 +93,7 @@ void KateConsole::slotDestroyed ()
93 93
   }
94 94
 }
95 95
 
96
-void KateConsole::showEvent(QShowEvent *)
96
+void KateConsole::showEvent(TQShowEvent *)
97 97
 {
98 98
   if (m_part) return;
99 99
 
@@ -109,7 +109,7 @@ void KateConsole::cd (const KURL &url)
109 109
   m_part->openURL (url);
110 110
 }
111 111
 
112
-void KateConsole::sendInput( const QString& text )
112
+void KateConsole::sendInput( const TQString& text )
113 113
 {
114 114
   loadConsoleIfNeeded();
115 115
 

+ 3
- 3
kate/app/kateconsole.h View File

@@ -25,7 +25,7 @@
25 25
 
26 26
 #include <kurl.h>
27 27
 
28
-#include <qvbox.h>
28
+#include <tqvbox.h>
29 29
 
30 30
 namespace KParts {
31 31
   class ReadOnlyPart;
@@ -69,7 +69,7 @@ class KateConsole : public QVBox
69 69
      * send given text to console
70 70
      * @param text commands for console
71 71
      */
72
-    void sendInput( const QString& text );
72
+    void sendInput( const TQString& text );
73 73
 
74 74
   public slots:
75 75
     /**
@@ -94,7 +94,7 @@ class KateConsole : public QVBox
94 94
      * the konsole get shown
95 95
      * @param ev show event
96 96
      */
97
-    void showEvent(QShowEvent *ev);
97
+    void showEvent(TQShowEvent *ev);
98 98
 
99 99
   private:
100 100
     /**

+ 40
- 40
kate/app/katedocmanager.cpp View File

@@ -42,12 +42,12 @@
42 42
 #include <kio/job.h>
43 43
 #include <kwin.h>
44 44
 
45
-#include <qdatetime.h>
46
-#include <qtextcodec.h>
47
-#include <qprogressdialog.h>
45
+#include <tqdatetime.h>
46
+#include <tqtextcodec.h>
47
+#include <tqprogressdialog.h>
48 48
 
49
-KateDocManager::KateDocManager (QObject *parent)
50
- : QObject (parent)
49
+KateDocManager::KateDocManager (TQObject *parent)
50
+ : TQObject (parent)
51 51
  , m_saveMetaInfos(true)
52 52
  , m_daysMetaInfos(0)
53 53
 {
@@ -80,13 +80,13 @@ KateDocManager::~KateDocManager ()
80 80
     // purge saved filesessions
81 81
     if (m_daysMetaInfos > 0)
82 82
     {
83
-      QStringList groups = m_metaInfos->groupList();
84
-      QDateTime *def = new QDateTime(QDate(1970, 1, 1));
85
-      for (QStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
83
+      TQStringList groups = m_metaInfos->groupList();
84
+      TQDateTime *def = new TQDateTime(TQDate(1970, 1, 1));
85
+      for (TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it)
86 86
       {
87 87
         m_metaInfos->setGroup(*it);
88
-        QDateTime last = m_metaInfos->readDateTimeEntry("Time", def);
89
-        if (last.daysTo(QDateTime::currentDateTime()) > m_daysMetaInfos)
88
+        TQDateTime last = m_metaInfos->readDateTimeEntry("Time", def);
89
+        if (last.daysTo(TQDateTime::currentDateTime()) > m_daysMetaInfos)
90 90
           m_metaInfos->deleteGroup(*it);
91 91
       }
92 92
       delete def;
@@ -116,7 +116,7 @@ Kate::Document *KateDocManager::createDoc ()
116 116
   emit documentCreated ((Kate::Document *)doc);
117 117
   emit m_documentManager->documentCreated ((Kate::Document *)doc);
118 118
 
119
-  connect(doc,SIGNAL(modifiedOnDisc(Kate::Document *, bool, unsigned char)),this,SLOT(slotModifiedOnDisc(Kate::Document *, bool, unsigned char)));
119
+  connect(doc,TQT_SIGNAL(modifiedOnDisc(Kate::Document *, bool, unsigned char)),this,TQT_SLOT(slotModifiedOnDisc(Kate::Document *, bool, unsigned char)));
120 120
   return (Kate::Document *)doc;
121 121
 }
122 122
 
@@ -204,7 +204,7 @@ uint KateDocManager::documents ()
204 204
 
205 205
 int KateDocManager::findDocument ( KURL url )
206 206
 {
207
-  QPtrListIterator<Kate::Document> it(m_docList);
207
+  TQPtrListIterator<Kate::Document> it(m_docList);
208 208
 
209 209
   for (; it.current(); ++it)
210 210
   {
@@ -216,7 +216,7 @@ int KateDocManager::findDocument ( KURL url )
216 216
 
217 217
 Kate::Document *KateDocManager::findDocumentByUrl( KURL url )
218 218
 {
219
-  for (QPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
219
+  for (TQPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
220 220
   {
221 221
     if ( it.current()->url() == url)
222 222
       return it.current();
@@ -231,7 +231,7 @@ bool KateDocManager::isOpen(KURL url)
231 231
   return findDocumentByUrl (url) != 0;
232 232
 }
233 233
 
234
-Kate::Document *KateDocManager::openURL (const KURL& url,const QString &encoding, uint *id, bool isTempFile)
234
+Kate::Document *KateDocManager::openURL (const KURL& url,const TQString &encoding, uint *id, bool isTempFile)
235 235
 {
236 236
   // special handling if still only the first initial doc is there
237 237
   if (!documentList().isEmpty() && (documentList().count() == 1) && (!documentList().at(0)->isModified() && documentList().at(0)->url().isEmpty()))
@@ -248,7 +248,7 @@ Kate::Document *KateDocManager::openURL (const KURL& url,const QString &encoding
248 248
 
249 249
     if ( isTempFile && !url.isEmpty() && url.isLocalFile() )
250 250
     {
251
-      QFileInfo fi( url.path() );
251
+      TQFileInfo fi( url.path() );
252 252
       if ( fi.exists() )
253 253
       {
254 254
         m_tempFiles[ doc->documentNumber() ] = qMakePair(url, fi.lastModified());
@@ -256,7 +256,7 @@ Kate::Document *KateDocManager::openURL (const KURL& url,const QString &encoding
256 256
       }
257 257
     }
258 258
 
259
-    connect(doc, SIGNAL(modStateChanged(Kate::Document *)), this, SLOT(slotModChanged(Kate::Document *)));
259
+    connect(doc, TQT_SIGNAL(modStateChanged(Kate::Document *)), this, TQT_SLOT(slotModChanged(Kate::Document *)));
260 260
 
261 261
     emit initialDocumentReplaced();
262 262
 
@@ -279,7 +279,7 @@ Kate::Document *KateDocManager::openURL (const KURL& url,const QString &encoding
279 279
 
280 280
   if ( isTempFile && !url.isEmpty() && url.isLocalFile() )
281 281
   {
282
-    QFileInfo fi( url.path() );
282
+    TQFileInfo fi( url.path() );
283 283
     if ( fi.exists() )
284 284
     {
285 285
       m_tempFiles[ doc->documentNumber() ] = qMakePair(url, fi.lastModified());
@@ -298,7 +298,7 @@ bool KateDocManager::closeDocument(class Kate::Document *doc,bool closeURL)
298 298
   if (closeURL)
299 299
   if (!doc->closeURL()) return false;
300 300
 
301
-  QPtrList<Kate::View> closeList;
301
+  TQPtrList<Kate::View> closeList;
302 302
   uint documentNumber = doc->documentNumber();
303 303
 
304 304
   for (uint i=0; i < KateApp::self()->mainWindows (); i++ )
@@ -308,7 +308,7 @@ bool KateDocManager::closeDocument(class Kate::Document *doc,bool closeURL)
308 308
 
309 309
   if ( closeURL && m_tempFiles.contains( documentNumber ) )
310 310
   {
311
-    QFileInfo fi( m_tempFiles[ documentNumber ].first.path() );
311
+    TQFileInfo fi( m_tempFiles[ documentNumber ].first.path() );
312 312
     if ( fi.lastModified() <= m_tempFiles[ documentNumber ].second /*||
313 313
          KMessageBox::questionYesNo( KateApp::self()->activeMainWindow(),
314 314
             i18n("The supposedly temporary file %1 has been modified. "
@@ -346,7 +346,7 @@ bool KateDocManager::closeAllDocuments(bool closeURL)
346 346
 {
347 347
   bool res = true;
348 348
 
349
-  QPtrList<Kate::Document> docs = m_docList;
349
+  TQPtrList<Kate::Document> docs = m_docList;
350 350
 
351 351
   for (uint i=0; i < KateApp::self()->mainWindows (); i++ )
352 352
   {
@@ -370,9 +370,9 @@ bool KateDocManager::closeAllDocuments(bool closeURL)
370 370
   return res;
371 371
 }
372 372
 
373
-QPtrList<Kate::Document> KateDocManager::modifiedDocumentList() {
374
-  QPtrList<Kate::Document> modified;
375
-  for (QPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it) {
373
+TQPtrList<Kate::Document> KateDocManager::modifiedDocumentList() {
374
+  TQPtrList<Kate::Document> modified;
375
+  for (TQPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it) {
376 376
     Kate::Document *doc = it.current();
377 377
     if (doc->isModified()) {
378 378
       modified.append(doc);
@@ -385,7 +385,7 @@ QPtrList<Kate::Document> KateDocManager::modifiedDocumentList() {
385 385
 bool KateDocManager::queryCloseDocuments(KateMainWindow *w)
386 386
 {
387 387
   uint docCount = m_docList.count();
388
-  for (QPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
388
+  for (TQPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
389 389
   {
390 390
     Kate::Document *doc = it.current();
391 391
 
@@ -402,7 +402,7 @@ bool KateDocManager::queryCloseDocuments(KateMainWindow *w)
402 402
       if (msgres==KMessageBox::Yes)
403 403
       {
404 404
         KEncodingFileDialog::Result r=KEncodingFileDialog::getSaveURLAndEncoding(
405
-              KTextEditor::encodingInterface(doc)->encoding(),QString::null,QString::null,w,i18n("Save As"));
405
+              KTextEditor::encodingInterface(doc)->encoding(),TQString::null,TQString::null,w,i18n("Save As"));
406 406
 
407 407
         doc->setEncoding( r.encoding );
408 408
 
@@ -439,23 +439,23 @@ bool KateDocManager::queryCloseDocuments(KateMainWindow *w)
439 439
 
440 440
 void KateDocManager::saveAll()
441 441
 {
442
-  for (QPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
442
+  for (TQPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
443 443
     if ( it.current()->isModified() && it.current()->views().count() )
444