summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/app_templates
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/app_templates')
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp146
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h12
-rw-r--r--languages/cpp/app_templates/cmakeqt3app/main.cpp6
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.cpp12
-rw-r--r--languages/cpp/app_templates/dcopservice/dcopservice.h14
-rw-r--r--languages/cpp/app_templates/kapp/app.cpp52
-rw-r--r--languages/cpp/app_templates/kapp/app.h8
-rw-r--r--languages/cpp/app_templates/kapp/app_client.cpp14
-rw-r--r--languages/cpp/app_templates/kapp/appiface.h2
-rw-r--r--languages/cpp/app_templates/kapp/appview.cpp28
-rw-r--r--languages/cpp/app_templates/kapp/appview.h20
-rw-r--r--languages/cpp/app_templates/kapp/pref.cpp22
-rw-r--r--languages/cpp/app_templates/kapp/pref.h6
-rw-r--r--languages/cpp/app_templates/kateplugin/plugin_app.cpp6
-rw-r--r--languages/cpp/app_templates/kateplugin/plugin_app.h6
-rw-r--r--languages/cpp/app_templates/kateplugin2/plugin_app.cpp22
-rw-r--r--languages/cpp/app_templates/kateplugin2/plugin_app.h16
-rw-r--r--languages/cpp/app_templates/kcmodule/module.cpp8
-rw-r--r--languages/cpp/app_templates/kcmodule/module.h4
-rw-r--r--languages/cpp/app_templates/kconfig35/app.cpp24
-rw-r--r--languages/cpp/app_templates/kconfig35/app.h4
-rw-r--r--languages/cpp/app_templates/kconfig35/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kconfig35/appview.h8
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4.cpp16
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view.cpp12
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4view.h10
-rw-r--r--languages/cpp/app_templates/kdedcop/app.cpp2
-rw-r--r--languages/cpp/app_templates/kdedcop/app_iface.h4
-rw-r--r--languages/cpp/app_templates/kdedcop/mainclass.cpp4
-rw-r--r--languages/cpp/app_templates/kdedcop/mainclass.h6
-rw-r--r--languages/cpp/app_templates/kdevlang/kdevlang_part.cpp46
-rw-r--r--languages/cpp/app_templates/kdevlang/kdevlang_part.h8
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart/globalconfig.h2
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_part.cpp36
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_part.h10
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart/kdevpart_widget.h4
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart/projectconfig.h2
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart2/globalconfig.h2
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp36
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_part.h10
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart2/kdevpart_widget.h4
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfig.cpp2
-rw-r--r--languages/cpp/app_templates/kdevpart2/projectconfig.h2
-rw-r--r--languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp14
-rw-r--r--languages/cpp/app_templates/kfileplugin/kfile_plugin.h2
-rw-r--r--languages/cpp/app_templates/khello/app.cpp4
-rw-r--r--languages/cpp/app_templates/khello2/widget.cpp4
-rw-r--r--languages/cpp/app_templates/khello2/widget.h2
-rw-r--r--languages/cpp/app_templates/kicker/applet.cpp10
-rw-r--r--languages/cpp/app_templates/kicker/applet.h10
-rw-r--r--languages/cpp/app_templates/kioslave/slave.cpp18
-rw-r--r--languages/cpp/app_templates/kioslave/slave.h6
-rw-r--r--languages/cpp/app_templates/kmake/mainviewimp.cpp4
-rw-r--r--languages/cpp/app_templates/kmake/mainviewimp.h2
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_factory.cpp4
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_factory.h4
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.cpp18
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_part.h14
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.cpp14
-rw-r--r--languages/cpp/app_templates/kofficepart/kopart_view.h4
-rw-r--r--languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp14
-rw-r--r--languages/cpp/app_templates/konqnavpanel/konqnavpanel.h10
-rw-r--r--languages/cpp/app_templates/kpartapp/app.cpp20
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.cpp54
-rw-r--r--languages/cpp/app_templates/kpartapp/app_part.h12
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.cpp16
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.h4
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/app_part.cpp46
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/app_part.h6
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp64
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdi.h10
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp12
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.h2
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp18
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h8
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.cpp40
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.h4
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.h8
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.cpp18
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.h2
-rw-r--r--languages/cpp/app_templates/kxt/app.cpp36
-rw-r--r--languages/cpp/app_templates/kxt/app.h4
-rw-r--r--languages/cpp/app_templates/kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kxt/appview.h8
-rw-r--r--languages/cpp/app_templates/noatunui/plugin_impl.cpp120
-rw-r--r--languages/cpp/app_templates/noatunui/plugin_impl.h28
-rw-r--r--languages/cpp/app_templates/opieapp/example.cpp6
-rw-r--r--languages/cpp/app_templates/opieapp/example.h6
-rw-r--r--languages/cpp/app_templates/opieapplet/simpleimpl.cpp26
-rw-r--r--languages/cpp/app_templates/opieapplet/simpleimpl.h18
-rw-r--r--languages/cpp/app_templates/opieinput/simpleimpl.cpp64
-rw-r--r--languages/cpp/app_templates/opieinput/simpleimpl.h18
-rw-r--r--languages/cpp/app_templates/opiemenu/simpleimpl.cpp22
-rw-r--r--languages/cpp/app_templates/opiemenu/simpleimpl.h16
-rw-r--r--languages/cpp/app_templates/opienet/simmplemodule.h16
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.cpp4
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.h2
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.cpp14
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.h16
-rw-r--r--languages/cpp/app_templates/opietoday/exampleplugin.cpp18
-rw-r--r--languages/cpp/app_templates/opietoday/exampleplugin.h18
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginwidget.cpp8
-rw-r--r--languages/cpp/app_templates/opietoday/examplepluginwidget.h8
-rw-r--r--languages/cpp/app_templates/qmakeapp/main.cpp6
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.cpp146
-rw-r--r--languages/cpp/app_templates/qmakeapp/qmakeapp.h12
-rw-r--r--languages/cpp/app_templates/qt4makeapp/main.cpp4
-rw-r--r--languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp124
-rw-r--r--languages/cpp/app_templates/qt4makeapp/qt4makeapp.h42
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.cpp10
-rw-r--r--languages/cpp/app_templates/qtopia4app/example.h6
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.cpp6
-rw-r--r--languages/cpp/app_templates/qtopiaapp/example.h2
119 files changed, 1011 insertions, 1011 deletions
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
index 841f88d4..973aee2c 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.cpp
@@ -2,120 +2,120 @@
#include "%{APPNAMELC}.h"
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qtoolbar.h>
-#include <qtoolbutton.h>
-#include <qpopupmenu.h>
-#include <qmenubar.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qfiledialog.h>
-#include <qstatusbar.h>
-#include <qmessagebox.h>
-#include <qprinter.h>
-#include <qapplication.h>
-#include <qaccel.h>
-#include <qtextstream.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qwhatsthis.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqtoolbar.h>
+#include <tqtoolbutton.h>
+#include <tqpopupmenu.h>
+#include <tqmenubar.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqfiledialog.h>
+#include <tqstatusbar.h>
+#include <tqmessagebox.h>
+#include <tqprinter.h>
+#include <tqapplication.h>
+#include <tqaccel.h>
+#include <tqtextstream.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqwhatsthis.h>
#include "filesave.xpm"
#include "fileopen.xpm"
#include "fileprint.xpm"
%{APPNAME}::%{APPNAME}()
- : QMainWindow( 0, "%{APPNAME}", WDestructiveClose )
+ : TQMainWindow( 0, "%{APPNAME}", WDestructiveClose )
{
printer = new QPrinter;
- QPixmap openIcon, saveIcon, printIcon;
+ TQPixmap openIcon, saveIcon, printIcon;
- QToolBar * fileTools = new QToolBar( this, "file operations" );
+ TQToolBar * fileTools = new TQToolBar( this, "file operations" );
fileTools->setLabel( tr("File Operations") );
- openIcon = QPixmap( fileopen );
- QToolButton * fileOpen
- = new QToolButton( openIcon, tr("Open File"), QString::null,
- this, SLOT(choose()), fileTools, "open file" );
+ openIcon = TQPixmap( fileopen );
+ TQToolButton * fileOpen
+ = new TQToolButton( openIcon, tr("Open File"), TQString::null,
+ this, TQT_SLOT(choose()), fileTools, "open file" );
- saveIcon = QPixmap( filesave );
- QToolButton * fileSave
- = new QToolButton( saveIcon, tr("Save File"), QString::null,
- this, SLOT(save()), fileTools, "save file" );
+ saveIcon = TQPixmap( filesave );
+ TQToolButton * fileSave
+ = new TQToolButton( saveIcon, tr("Save File"), TQString::null,
+ this, TQT_SLOT(save()), fileTools, "save file" );
- printIcon = QPixmap( fileprint );
- QToolButton * filePrint
- = new QToolButton( printIcon, tr("Print File"), QString::null,
- this, SLOT(print()), fileTools, "print file" );
+ printIcon = TQPixmap( fileprint );
+ TQToolButton * filePrint
+ = new TQToolButton( printIcon, tr("Print File"), TQString::null,
+ this, TQT_SLOT(print()), fileTools, "print file" );
- (void)QWhatsThis::whatsThisButton( fileTools );
+ (void)TQWhatsThis::whatsThisButton( fileTools );
- QString fileOpenText = tr("<p><img source=\"fileopen\"> "
+ TQString fileOpenText = tr("<p><img source=\"fileopen\"> "
"Click this button to open a <em>new file</em>. <br>"
"You can also select the <b>Open</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileOpen, fileOpenText );
+ TQWhatsThis::add( fileOpen, fileOpenText );
- QMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
+ TQMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
- QString fileSaveText = tr("<p>Click this button to save the file you "
+ TQString fileSaveText = tr("<p>Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"
"You can also select the <b>Save</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileSave, fileSaveText );
+ TQWhatsThis::add( fileSave, fileSaveText );
- QString filePrintText = tr("Click this button to print the file you "
+ TQString filePrintText = tr("Click this button to print the file you "
"are editing.\n You can also select the Print "
"command from the File menu.");
- QWhatsThis::add( filePrint, filePrintText );
+ TQWhatsThis::add( filePrint, filePrintText );
- QPopupMenu * file = new QPopupMenu( this );
+ TQPopupMenu * file = new TQPopupMenu( this );
menuBar()->insertItem( tr("&File"), file );
- file->insertItem( tr("&New"), this, SLOT(newDoc()), CTRL+Key_N );
+ file->insertItem( tr("&New"), this, TQT_SLOT(newDoc()), CTRL+Key_N );
int id;
id = file->insertItem( openIcon, tr("&Open..."),
- this, SLOT(choose()), CTRL+Key_O );
+ this, TQT_SLOT(choose()), CTRL+Key_O );
file->setWhatsThis( id, fileOpenText );
id = file->insertItem( saveIcon, tr("&Save"),
- this, SLOT(save()), CTRL+Key_S );
+ this, TQT_SLOT(save()), CTRL+Key_S );
file->setWhatsThis( id, fileSaveText );
- id = file->insertItem( tr("Save &As..."), this, SLOT(saveAs()) );
+ id = file->insertItem( tr("Save &As..."), this, TQT_SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
file->insertSeparator();
id = file->insertItem( printIcon, tr("&Print..."),
- this, SLOT(print()), CTRL+Key_P );
+ this, TQT_SLOT(print()), CTRL+Key_P );
file->setWhatsThis( id, filePrintText );
file->insertSeparator();
- file->insertItem( tr("&Close"), this, SLOT(close()), CTRL+Key_W );
+ file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), qApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
- QPopupMenu * help = new QPopupMenu( this );
+ TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( tr("&Help"), help );
- help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );
- help->insertItem( tr("About &Qt"), this, SLOT(aboutQt()) );
+ help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
+ help->insertItem( tr("About &Qt"), this, TQT_SLOT(aboutQt()) );
help->insertSeparator();
- help->insertItem( tr("What's &This"), this, SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
- e = new QTextEdit( this, "editor" );
+ e = new TQTextEdit( this, "editor" );
e->setFocus();
setCentralWidget( e );
statusBar()->message( tr("Ready"), 2000 );
@@ -140,7 +140,7 @@ void %{APPNAME}::newDoc()
void %{APPNAME}::choose()
{
- QString fn = QFileDialog::getOpenFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null,
this);
if ( !fn.isEmpty() )
load( fn );
@@ -149,13 +149,13 @@ void %{APPNAME}::choose()
}
-void %{APPNAME}::load( const QString &fileName )
+void %{APPNAME}::load( const TQString &fileName )
{
- QFile f( fileName );
+ TQFile f( fileName );
if ( !f.open( IO_ReadOnly ) )
return;
- QTextStream ts( &f );
+ TQTextStream ts( &f );
e->setText( ts.read() );
e->setModified( FALSE );
setCaption( fileName );
@@ -170,15 +170,15 @@ void %{APPNAME}::save()
return;
}
- QString text = e->text();
- QFile f( filename );
+ TQString text = e->text();
+ TQFile f( filename );
if ( !f.open( IO_WriteOnly ) ) {
statusBar()->message( tr("Could not write to %1").arg(filename),
2000 );
return;
}
- QTextStream t( &f );
+ TQTextStream t( &f );
t << text;
f.close();
@@ -192,7 +192,7 @@ void %{APPNAME}::save()
void %{APPNAME}::saveAs()
{
- QString fn = QFileDialog::getSaveFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null,
this );
if ( !fn.isEmpty() ) {
filename = fn;
@@ -205,25 +205,25 @@ void %{APPNAME}::saveAs()
void %{APPNAME}::print()
{
- // ###### Rewrite to use QSimpleRichText to print here as well
+ // ###### Rewrite to use TQSimpleRichText to print here as well
const int Margin = 10;
int pageNo = 1;
if ( printer->setup(this) ) { // printer dialog
statusBar()->message( tr("Printing...") );
- QPainter p;
+ TQPainter p;
if( !p.begin( printer ) ) // paint on printer
return;
p.setFont( e->font() );
int yPos = 0; // y-position for each line
- QFontMetrics fm = p.fontMetrics();
- QPaintDeviceMetrics metrics( printer ); // need width/height
+ TQFontMetrics fm = p.fontMetrics();
+ TQPaintDeviceMetrics metrics( printer ); // need width/height
// of printer surface
for( int i = 0 ; i < e->lines() ; i++ ) {
if ( Margin + yPos > metrics.height() - Margin ) {
- QString msg( "Printing (page " );
- msg += QString::number( ++pageNo );
+ TQString msg( "Printing (page " );
+ msg += TQString::number( ++pageNo );
msg += ")...";
statusBar()->message( msg );
printer->newPage(); // no more room on this page
@@ -242,14 +242,14 @@ void %{APPNAME}::print()
}
}
-void %{APPNAME}::closeEvent( QCloseEvent* ce )
+void %{APPNAME}::closeEvent( TQCloseEvent* ce )
{
if ( !e->isModified() ) {
ce->accept();
return;
}
- switch( QMessageBox::information( this, tr("Qt Application Example"),
+ switch( TQMessageBox::information( this, tr("Qt Application Example"),
tr("Do you want to save the changes"
" to the document?"),
tr("Yes"), tr("No"), tr("Cancel"),
@@ -271,13 +271,13 @@ void %{APPNAME}::closeEvent( QCloseEvent* ce )
void %{APPNAME}::about()
{
- QMessageBox::about( this, tr("Qt Application Example"),
+ TQMessageBox::about( this, tr("Qt Application Example"),
tr("This example demonstrates simple use of "
- "QMainWindow,\nQMenuBar and QToolBar."));
+ "TQMainWindow,\nQMenuBar and TQToolBar."));
}
void %{APPNAME}::aboutQt()
{
- QMessageBox::aboutQt( this, tr("Qt Application Example") );
+ TQMessageBox::aboutQt( this, tr("Qt Application Example") );
}
diff --git a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
index 2d372da9..48bf459a 100644
--- a/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
+++ b/languages/cpp/app_templates/cmakeqt3app/cmakeqt3app.h
@@ -3,7 +3,7 @@
#ifndef %{APPNAMEUC}_H
#define %{APPNAMEUC}_H
-#include <qmainwindow.h>
+#include <tqmainwindow.h>
class QTextEdit;
@@ -16,12 +16,12 @@ public:
~%{APPNAME}();
protected:
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
private slots:
void newDoc();
void choose();
- void load( const QString &fileName );
+ void load( const TQString &fileName );
void save();
void saveAs();
void print();
@@ -30,9 +30,9 @@ private slots:
void aboutQt();
private:
- QPrinter *printer;
- QTextEdit *e;
- QString filename;
+ TQPrinter *printer;
+ TQTextEdit *e;
+ TQString filename;
};
diff --git a/languages/cpp/app_templates/cmakeqt3app/main.cpp b/languages/cpp/app_templates/cmakeqt3app/main.cpp
index bd26f19a..8938adc5 100644
--- a/languages/cpp/app_templates/cmakeqt3app/main.cpp
+++ b/languages/cpp/app_templates/cmakeqt3app/main.cpp
@@ -1,13 +1,13 @@
%{CPP_TEMPLATE}
-#include <qapplication.h>
+#include <tqapplication.h>
#include "%{APPNAMELC}.h"
int main( int argc, char ** argv ) {
- QApplication a( argc, argv );
+ TQApplication a( argc, argv );
%{APPNAME} * mw = new %{APPNAME}();
mw->setCaption( "%{APPNAME}" );
mw->show();
- a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ a.connect( &a, TQT_SIGNAL(lastWindowClosed()), &a, TQT_SLOT(quit()) );
return a.exec();
}
diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.cpp b/languages/cpp/app_templates/dcopservice/dcopservice.cpp
index a23da01b..32f32c65 100644
--- a/languages/cpp/app_templates/dcopservice/dcopservice.cpp
+++ b/languages/cpp/app_templates/dcopservice/dcopservice.cpp
@@ -7,7 +7,7 @@
%{APPNAME}::%{APPNAME}() : DCOPObject("serviceInterface")
{
kdDebug() << "Starting new service... " << endl;
- m_List = QStringList();
+ m_List = TQStringList();
}
%{APPNAME}::~%{APPNAME}()
@@ -15,25 +15,25 @@
kdDebug() << "Going away... " << endl;
}
-QString %{APPNAME}::string(int idx)
+TQString %{APPNAME}::string(int idx)
{
return *m_List.at(idx);
}
-QStringList %{APPNAME}::list()
+TQStringList %{APPNAME}::list()
{
return m_List;
}
-void %{APPNAME}::add(QString arg)
+void %{APPNAME}::add(TQString arg)
{
kdDebug() << "Adding " << arg << " to the list" << endl;
m_List << arg;
}
-bool %{APPNAME}::remove(QString arg)
+bool %{APPNAME}::remove(TQString arg)
{
- QStringList::Iterator it = m_List.find(arg);
+ TQStringList::Iterator it = m_List.find(arg);
if (it != m_List.end())
{
m_List.remove(it);
diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.h b/languages/cpp/app_templates/dcopservice/dcopservice.h
index 4e9eda87..59aa3c28 100644
--- a/languages/cpp/app_templates/dcopservice/dcopservice.h
+++ b/languages/cpp/app_templates/dcopservice/dcopservice.h
@@ -3,8 +3,8 @@
#ifndef _%{APPNAME}_H
#define _%{APPNAME}_H
-#include <qstringlist.h>
-#include <qstring.h>
+#include <tqstringlist.h>
+#include <tqstring.h>
#include <dcopobject.h>
class %{APPNAME} : public DCOPObject
@@ -12,7 +12,7 @@ class %{APPNAME} : public DCOPObject
K_DCOP
private:
- QStringList m_List;
+ TQStringList m_List;
public:
%{APPNAME}();
@@ -20,13 +20,13 @@ class %{APPNAME} : public DCOPObject
~%{APPNAME}();
k_dcop:
- QString string(int);
+ TQString string(int);
- QStringList list();
+ TQStringList list();
- void add(QString);
+ void add(TQString);
- bool remove(QString);
+ bool remove(TQString);
bool exit();
diff --git a/languages/cpp/app_templates/kapp/app.cpp b/languages/cpp/app_templates/kapp/app.cpp
index 5460bba9..6388f452 100644
--- a/languages/cpp/app_templates/kapp/app.cpp
+++ b/languages/cpp/app_templates/kapp/app.cpp
@@ -3,10 +3,10 @@
#include "%{APPNAMELC}.h"
#include "pref.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kglobal.h>
#include <klocale.h>
@@ -49,10 +49,10 @@
setupGUI();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
}
@@ -62,7 +62,7 @@
void %{APPNAME}::load(const KURL& url)
{
- QString target;
+ TQString target;
// the below code is what you should normally do. in this
// example case, we want the url to our own. you probably
// want to use this code instead for your app
@@ -88,19 +88,19 @@ void %{APPNAME}::load(const KURL& url)
void %{APPNAME}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::save(this, SLOT(fileSave()), actionCollection());
- KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- KStdAction::print(this, SLOT(filePrint()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(fileSave()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ KStdAction::print(this, TQT_SLOT(filePrint()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// this doesn't do anything useful. it's just here to illustrate
// how to insert a custom menu and menu item
KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0,
- this, SLOT(optionsPreferences()),
+ this, TQT_SLOT(optionsPreferences()),
actionCollection(), "custom_action");
}
@@ -126,19 +126,19 @@ void %{APPNAME}::readProperties(KConfig *config)
// the app is being restored. read in here whatever you wrote
// in 'saveProperties'
- QString url = config->readPathEntry("lastURL");
+ TQString url = config->readPathEntry("lastURL");
if (!url.isEmpty())
m_view->openURL(KURL(url));
}
-void %{APPNAME}::dragEnterEvent(QDragEnterEvent *event)
+void %{APPNAME}::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void %{APPNAME}::dropEvent(QDropEvent *event)
+void %{APPNAME}::dropEvent(TQDropEvent *event)
{
// this is a very simplistic implementation of a drop event. we
// will only accept a dropped URL. the Qt dnd code can do *much*
@@ -173,10 +173,10 @@ void %{APPNAME}::fileOpen()
// button is clicked
/*
// this brings up the generic open dialog
- KURL url = KURLRequesterDlg::getURL(QString::null, this, i18n("Open Location") );
+ KURL url = KURLRequesterDlg::getURL(TQString::null, this, i18n("Open Location") );
*/
// standard filedialog
- KURL url = KFileDialog::getOpenURL(QString::null, QString::null, this, i18n("Open Location"));
+ KURL url = KFileDialog::getOpenURL(TQString::null, TQString::null, this, i18n("Open Location"));
if (!url.isEmpty())
m_view->openURL(url);
}
@@ -209,13 +209,13 @@ void %{APPNAME}::filePrint()
if (m_printer->setup(this))
{
// setup the printer. with Qt, you always "print" to a
- // QPainter.. whether the output medium is a pixmap, a screen,
+ // TQPainter.. whether the output medium is a pixmap, a screen,
// or paper
- QPainter p;
+ TQPainter p;
p.begin(m_printer);
// we let our view do the actual printing
- QPaintDeviceMetrics metrics(m_printer);
+ TQPaintDeviceMetrics metrics(m_printer);
m_view->print(&p, metrics.height(), metrics.width());
// and send the result to the printer
@@ -233,13 +233,13 @@ void %{APPNAME}::optionsPreferences()
}
}
-void %{APPNAME}::changeStatusbar(const QString& text)
+void %{APPNAME}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text);
}
-void %{APPNAME}::changeCaption(const QString& text)
+void %{APPNAME}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
diff --git a/languages/cpp/app_templates/kapp/app.h b/languages/cpp/app_templates/kapp/app.h
index 45c65f4b..1c92feb8 100644
--- a/languages/cpp/app_templates/kapp/app.h
+++ b/languages/cpp/app_templates/kapp/app.h
@@ -46,8 +46,8 @@ protected:
/**
* Overridden virtuals for Qt drag 'n drop (XDND)
*/
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
protected:
/**
@@ -72,8 +72,8 @@ private slots:
void filePrint();
void optionsPreferences();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kapp/app_client.cpp b/languages/cpp/app_templates/kapp/app_client.cpp
index 5c062077..ecde60fb 100644
--- a/languages/cpp/app_templates/kapp/app_client.cpp
+++ b/languages/cpp/app_templates/kapp/app_client.cpp
@@ -2,8 +2,8 @@
#include <kapplication.h>
#include <dcopclient.h>
-#include <qdatastream.h>
-#include <qstring.h>
+#include <tqdatastream.h>
+#include <tqstring.h>
int main(int argc, char **argv)
{
@@ -14,13 +14,13 @@ int main(int argc, char **argv)
client->attach();
// do a 'send' for now
- QByteArray data;
- QDataStream ds(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream ds(data, IO_WriteOnly);
if (argc > 1)
- ds << QString(argv[1]);
+ ds << TQString(argv[1]);
else
- ds << QString("http://www.kde.org");
- client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data);
+ ds << TQString("http://www.kde.org");
+ client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(TQString)", data);
return app.exec();
}
diff --git a/languages/cpp/app_templates/kapp/appiface.h b/languages/cpp/app_templates/kapp/appiface.h
index 4a24ae7f..9fa7cd1b 100644
--- a/languages/cpp/app_templates/kapp/appiface.h
+++ b/languages/cpp/app_templates/kapp/appiface.h
@@ -11,7 +11,7 @@ class %{APPNAME}Iface : virtual public DCOPObject
public:
k_dcop:
- virtual void openURL(QString url) = 0;
+ virtual void openURL(TQString url) = 0;
};
#endif // _%{APPNAMEUC}IFACE_H_
diff --git a/languages/cpp/app_templates/kapp/appview.cpp b/languages/cpp/app_templates/kapp/appview.cpp
index a57adbf3..32afca2e 100644
--- a/languages/cpp/app_templates/kapp/appview.cpp
+++ b/languages/cpp/app_templates/kapp/appview.cpp
@@ -2,8 +2,8 @@
#include "%{APPNAMELC}view.h"
-#include <qpainter.h>
-#include <qlayout.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
#include <kurl.h>
@@ -13,12 +13,12 @@
#include <krun.h>
#include <klocale.h>
-%{APPNAME}View::%{APPNAME}View(QWidget *parent)
- : QWidget(parent),
+%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
+ : TQWidget(parent),
DCOPObject("%{APPNAME}Iface")
{
// setup our layout manager to automatically add our widgets
- QHBoxLayout *top_layout = new QHBoxLayout(this);
+ TQHBoxLayout *top_layout = new TQHBoxLayout(this);
top_layout->setAutoAdd(true);
// we want to look for all components that satisfy our needs. the
@@ -63,10 +63,10 @@
return;
}
- connect(m_html, SIGNAL(setWindowCaption(const QString&)),
- this, SLOT(slotSetTitle(const QString&)));
- connect(m_html, SIGNAL(setStatusBarText(const QString&)),
- this, SLOT(slotOnURL(const QString&)));
+ connect(m_html, TQT_SIGNAL(setWindowCaption(const TQString&)),
+ this, TQT_SLOT(slotSetTitle(const TQString&)));
+ connect(m_html, TQT_SIGNAL(setStatusBarText(const TQString&)),
+ this, TQT_SLOT(slotOnURL(const TQString&)));
}
@@ -74,18 +74,18 @@
{
}
-void %{APPNAME}View::print(QPainter *p, int height, int width)
+void %{APPNAME}View::print(TQPainter *p, int height, int width)
{
// do the actual printing, here
// p->drawText(etc..)
}
-QString %{APPNAME}View::currentURL()
+TQString %{APPNAME}View::currentURL()
{
return m_html->url().url();
}
-void %{APPNAME}View::openURL(QString url)
+void %{APPNAME}View::openURL(TQString url)
{
openURL(KURL(url));
}
@@ -95,12 +95,12 @@ void %{APPNAME}View::openURL(const KURL& url)
m_html->openURL(url);
}
-void %{APPNAME}View::slotOnURL(const QString& url)
+void %{APPNAME}View::slotOnURL(const TQString& url)
{
emit signalChangeStatusbar(url);
}
-void %{APPNAME}View::slotSetTitle(const QString& title)
+void %{APPNAME}View::slotSetTitle(const TQString& title)
{
emit signalChangeCaption(title);
}
diff --git a/languages/cpp/app_templates/kapp/appview.h b/languages/cpp/app_templates/kapp/appview.h
index ae0c6b6d..236749bc 100644
--- a/languages/cpp/app_templates/kapp/appview.h
+++ b/languages/cpp/app_templates/kapp/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kparts/part.h>
#include <%{APPNAMELC}iface.h>
@@ -21,14 +21,14 @@ class KURL;
* @author %{AUTHOR} <%{EMAIL}>
* @version %{VERSION}
*/
-class %{APPNAME}View : public QWidget, public %{APPNAME}Iface
+class %{APPNAME}View : public TQWidget, public %{APPNAME}Iface
{
Q_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -38,12 +38,12 @@ public:
/**
* Random 'get' function
*/
- QString currentURL();
+ TQString currentURL();
/**
* Random 'set' function accessed by DCOP
*/
- virtual void openURL(QString url);
+ virtual void openURL(TQString url);
/**
* Random 'set' function
@@ -53,22 +53,22 @@ public:
/**
* Print this view to any medium -- paper or not
*/
- void print(QPainter *, int height, int width);
+ void print(TQPainter *, int height, int width);
signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
- void slotOnURL(const QString& url);
- void slotSetTitle(const QString& title);
+ void slotOnURL(const TQString& url);
+ void slotSetTitle(const TQString& title);
private:
KParts::ReadOnlyPart *m_html;
diff --git a/languages/cpp/app_templates/kapp/pref.cpp b/languages/cpp/app_templates/kapp/pref.cpp
index ee647b1c..ff83190f 100644
--- a/languages/cpp/app_templates/kapp/pref.cpp
+++ b/languages/cpp/app_templates/kapp/pref.cpp
@@ -4,8 +4,8 @@
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
%{APPNAME}Preferences::%{APPNAME}Preferences()
: KDialogBase(TreeList, i18n("%{APPNAME} Preferences"),
@@ -14,7 +14,7 @@
// this is the base class for your preferences dialog. it is now
// a Treelist dialog.. but there are a number of other
// possibilities (including Tab, Swallow, and just Plain)
- QFrame *frame;
+ TQFrame *frame;
frame = addPage(i18n("First Page"), i18n("Page One Options"));
m_pageOne = new %{APPNAME}PrefPageOne(frame);
@@ -22,21 +22,21 @@
m_pageTwo = new %{APPNAME}PrefPageTwo(frame);
}
-%{APPNAME}PrefPageOne::%{APPNAME}PrefPageOne(QWidget *parent)
- : QFrame(parent)
+%{APPNAME}PrefPageOne::%{APPNAME}PrefPageOne(TQWidget *parent)
+ : TQFrame(parent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
- new QLabel(i18n("Add something here"), this);
+ new TQLabel(i18n("Add something here"), this);
}
-%{APPNAME}PrefPageTwo::%{APPNAME}PrefPageTwo(QWidget *parent)
- : QFrame(parent)
+%{APPNAME}PrefPageTwo::%{APPNAME}PrefPageTwo(TQWidget *parent)
+ : TQFrame(parent)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
layout->setAutoAdd(true);
- new QLabel(i18n("Add something here"), this);
+ new TQLabel(i18n("Add something here"), this);
}
#include "pref.moc"
diff --git a/languages/cpp/app_templates/kapp/pref.h b/languages/cpp/app_templates/kapp/pref.h
index 11aec821..93859cfd 100644
--- a/languages/cpp/app_templates/kapp/pref.h
+++ b/languages/cpp/app_templates/kapp/pref.h
@@ -4,7 +4,7 @@
#define _%{APPNAMEUC}PREF_H_
#include <kdialogbase.h>
-#include <qframe.h>
+#include <tqframe.h>
class %{APPNAME}PrefPageOne;
class %{APPNAME}PrefPageTwo;
@@ -24,14 +24,14 @@ class %{APPNAME}PrefPageOne : public QFrame
{
Q_OBJECT
public:
- %{APPNAME}PrefPageOne(QWidget *parent = 0);
+ %{APPNAME}PrefPageOne(TQWidget *parent = 0);
};
class %{APPNAME}PrefPageTwo : public QFrame
{
Q_OBJECT
public:
- %{APPNAME}PrefPageTwo(QWidget *parent = 0);
+ %{APPNAME}PrefPageTwo(TQWidget *parent = 0);
};
#endif // _%{APPNAMEUC}PREF_H_
diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.cpp b/languages/cpp/app_templates/kateplugin/plugin_app.cpp
index 9fd4a694..1a40df32 100644
--- a/languages/cpp/app_templates/kateplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kateplugin/plugin_app.cpp
@@ -33,14 +33,14 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance;
}
-QObject* KatePluginFactory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new KatePlugin%{APPNAME}( parent, name );
}
KInstance* KatePluginFactory::s_instance = 0L;
-KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( QObject* parent, const char* name )
+KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* parent, const char* name )
: Kate::Plugin ( (Kate::Application*)parent, name )
{
}
@@ -55,7 +55,7 @@ void KatePlugin%{APPNAME}::addView(Kate::MainWindow *win)
PluginView *view = new PluginView ();
(void) new KAction ( i18n("Insert Hello World"), 0, this,
- SLOT( slotInsertHello() ), view->actionCollection(),
+ TQT_SLOT( slotInsertHello() ), view->actionCollection(),
"edit_insert_%{APPNAMELC}" );
view->setInstance (new KInstance("kate"));
diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.h b/languages/cpp/app_templates/kateplugin/plugin_app.h
index 8cc5b237..879ff967 100644
--- a/languages/cpp/app_templates/kateplugin/plugin_app.h
+++ b/languages/cpp/app_templates/kateplugin/plugin_app.h
@@ -22,7 +22,7 @@ class KatePluginFactory : public KLibFactory
KatePluginFactory();
virtual ~KatePluginFactory();
- virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() );
+ virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
private:
static KInstance* s_instance;
@@ -33,7 +33,7 @@ class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface
Q_OBJECT
public:
- KatePlugin%{APPNAME}( QObject* parent = 0, const char* name = 0 );
+ KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
virtual ~KatePlugin%{APPNAME}();
void addView (Kate::MainWindow *win);
@@ -43,7 +43,7 @@ class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface
void slotInsertHello();
private:
- QPtrList<class PluginView> m_views;
+ TQPtrList<class PluginView> m_views;
};
#endif // _PLUGIN_%{APPNAMEUC}_H_
diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
index 99d78eff..18595d10 100644
--- a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
+++ b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp
@@ -7,8 +7,8 @@
#include <kstandarddirs.h>
#include <kfiledialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
class PluginView : public KXMLGUIClient
{
@@ -37,14 +37,14 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance;
}
-QObject* KatePluginFactory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new KatePlugin%{APPNAME}( parent, name );
}
KInstance* KatePluginFactory::s_instance = 0L;
-KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( QObject* parent, const char* name )
+KatePlugin%{APPNAME}::KatePlugin%{APPNAME}( TQObject* parent, const char* name )
: Kate::Plugin ( (Kate::Application*)parent, name )
{
}
@@ -59,7 +59,7 @@ void KatePlugin%{APPNAME}::addView(Kate::MainWindow *win)
PluginView *view = new PluginView ();
(void) new KAction ( i18n("Insert Hello World"), 0, this,
- SLOT( slotInsertHello() ), view->actionCollection(),
+ TQT_SLOT( slotInsertHello() ), view->actionCollection(),
"edit_insert_%{APPNAMELC}" );
view->setInstance (new KInstance("kate"));
@@ -90,11 +90,11 @@ void KatePlugin%{APPNAME}::slotInsertHello()
kv->insertText ("Hello World");
}
-Kate::PluginConfigPage* KatePlugin%{APPNAME}::configPage (uint, QWidget *w, const char* name)
+Kate::PluginConfigPage* KatePlugin%{APPNAME}::configPage (uint, TQWidget *w, const char* name)
{
%{APPNAME}ConfigPage* p = new %{APPNAME}ConfigPage(this, w);
initConfigPage( p );
- connect( p, SIGNAL(configPageApplyRequest(%{APPNAME}ConfigPage*)), this, SLOT(slotApplyConfig(%{APPNAME}ConfigPage*)) );
+ connect( p, TQT_SIGNAL(configPageApplyRequest(%{APPNAME}ConfigPage*)), this, TQT_SLOT(slotApplyConfig(%{APPNAME}ConfigPage*)) );
return (Kate::PluginConfigPage*)p;
}
@@ -114,17 +114,17 @@ void KatePlugin%{APPNAME}::slotApplyConfig( %{APPNAME}ConfigPage* p )
/**
* %{APPNAME}ConfigPage
*/
-%{APPNAME}ConfigPage::%{APPNAME}ConfigPage (QObject* parent /*= 0L*/, QWidget *parentWidget /*= 0L*/)
+%{APPNAME}ConfigPage::%{APPNAME}ConfigPage (TQObject* parent /*= 0L*/, TQWidget *parentWidget /*= 0L*/)
: Kate::PluginConfigPage( parentWidget )
{
- QVBoxLayout* lo = new QVBoxLayout( this, 0, 0, "config_page_layout" );
+ TQVBoxLayout* lo = new TQVBoxLayout( this, 0, 0, "config_page_layout" );
lo->setSpacing(KDialogBase::spacingHint());
- QLabel* lab = new QLabel("KatePlugin%{APPNAME}'s config page", this);
+ TQLabel* lab = new TQLabel("KatePlugin%{APPNAME}'s config page", this);
lo->addWidget(lab);
- // TODO: add connection to emit SLOT( changed() )
+ // TODO: add connection to emit TQT_SLOT( changed() )
}
%{APPNAME}ConfigPage::~%{APPNAME}ConfigPage()
diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.h b/languages/cpp/app_templates/kateplugin2/plugin_app.h
index e4f97d00..6ad068d4 100644
--- a/languages/cpp/app_templates/kateplugin2/plugin_app.h
+++ b/languages/cpp/app_templates/kateplugin2/plugin_app.h
@@ -26,7 +26,7 @@ public:
KatePluginFactory();
virtual ~KatePluginFactory();
- virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() );
+ virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
private:
static KInstance* s_instance;
@@ -37,7 +37,7 @@ class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface, Kat
Q_OBJECT
public:
- KatePlugin%{APPNAME}( QObject* parent = 0, const char* name = 0 );
+ KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
virtual ~KatePlugin%{APPNAME}();
void addView (Kate::MainWindow *win);
@@ -45,10 +45,10 @@ public:
/** overwrite some functions */
uint configPages () const { return 1; }
- Kate::PluginConfigPage *configPage (uint , QWidget *w, const char *name=0);
- QString configPageName(uint) const { return i18n("%{APPNAME}"); };
- QString configPageFullName(uint) const { return i18n("Configure KatePlugin%{APPNAME}"); };
- QPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; };
+ Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0);
+ TQString configPageName(uint) const { return i18n("%{APPNAME}"); };
+ TQString configPageFullName(uint) const { return i18n("Configure KatePlugin%{APPNAME}"); };
+ TQPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; };
public slots:
void slotInsertHello();
@@ -58,7 +58,7 @@ private:
void initConfigPage( %{APPNAME}ConfigPage* );
private:
- QPtrList<class PluginView> m_views;
+ TQPtrList<class PluginView> m_views;
};
@@ -68,7 +68,7 @@ class %{APPNAME}ConfigPage : public Kate::PluginConfigPage
friend class KatePlugin%{APPNAME};
public:
- %{APPNAME}ConfigPage (QObject* parent = 0L, QWidget *parentWidget = 0L);
+ %{APPNAME}ConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L);
~%{APPNAME}ConfigPage ();
/** Reimplemented from Kate::PluginConfigPage; just emits configPageApplyRequest( this ). */
diff --git a/languages/cpp/app_templates/kcmodule/module.cpp b/languages/cpp/app_templates/kcmodule/module.cpp
index 69e87692..bb15b923 100644
--- a/languages/cpp/app_templates/kcmodule/module.cpp
+++ b/languages/cpp/app_templates/kcmodule/module.cpp
@@ -1,6 +1,6 @@
%{CPP_TEMPLATE}
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kglobal.h>
@@ -8,10 +8,10 @@
#include "%{APPNAMELC}.h"
-typedef KGenericFactory<%{APPNAME}, QWidget> %{APPNAME}Factory;
+typedef KGenericFactory<%{APPNAME}, TQWidget> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}"))
-%{APPNAME}::%{APPNAME}(QWidget *parent, const char *name, const QStringList&)
+%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&)
: KCModule(parent, name), myAboutData(0)
{
// place widgets here
@@ -57,7 +57,7 @@ void %{APPNAME}::configChanged()
}
-QString %{APPNAME}::quickHelp() const
+TQString %{APPNAME}::quickHelp() const
{
return i18n("Helpful information about the %{APPNAMELC} module.");
}
diff --git a/languages/cpp/app_templates/kcmodule/module.h b/languages/cpp/app_templates/kcmodule/module.h
index cebf0f48..7f539c60 100644
--- a/languages/cpp/app_templates/kcmodule/module.h
+++ b/languages/cpp/app_templates/kcmodule/module.h
@@ -11,14 +11,14 @@ class %{APPNAME}: public KCModule
Q_OBJECT
public:
- %{APPNAME}( QWidget *parent=0, const char *name=0, const QStringList& = QStringList() );
+ %{APPNAME}( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() );
~%{APPNAME}();
virtual void load();
virtual void save();
virtual void defaults();
virtual int buttons();
- virtual QString quickHelp() const;
+ virtual TQString quickHelp() const;
virtual const KAboutData *aboutData()const
{ return myAboutData; };
diff --git a/languages/cpp/app_templates/kconfig35/app.cpp b/languages/cpp/app_templates/kconfig35/app.cpp
index e32e28b5..e18b4148 100644
--- a/languages/cpp/app_templates/kconfig35/app.cpp
+++ b/languages/cpp/app_templates/kconfig35/app.cpp
@@ -4,7 +4,7 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kaction.h>
#include <kconfigdialog.h>
@@ -34,10 +34,10 @@
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
}
@@ -47,14 +47,14 @@
void %{APPNAMELC}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
setupGUI();
@@ -75,17 +75,17 @@ void %{APPNAMELC}::optionsPreferences()
// to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show();
}
-void %{APPNAMELC}::changeCaption(const QString& text)
+void %{APPNAMELC}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
}
-void %{APPNAMELC}::changeStatusbar(const QString& text)
+void %{APPNAMELC}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text);
diff --git a/languages/cpp/app_templates/kconfig35/app.h b/languages/cpp/app_templates/kconfig35/app.h
index abfd6c09..0174aa1b 100644
--- a/languages/cpp/app_templates/kconfig35/app.h
+++ b/languages/cpp/app_templates/kconfig35/app.h
@@ -43,8 +43,8 @@ private slots:
void optionsPreferences();
void newToolbarConfig();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
diff --git a/languages/cpp/app_templates/kconfig35/appview.cpp b/languages/cpp/app_templates/kconfig35/appview.cpp
index 35e23682..30d627fe 100644
--- a/languages/cpp/app_templates/kconfig35/appview.cpp
+++ b/languages/cpp/app_templates/kconfig35/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAMELC}View::%{APPNAMELC}View(QWidget *parent)
+%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent)
: %{APPNAMELC}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAMELC}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kconfig35/appview.h b/languages/cpp/app_templates/kconfig35/appview.h
index 45a10de7..5b69ae24 100644
--- a/languages/cpp/app_templates/kconfig35/appview.h
+++ b/languages/cpp/app_templates/kconfig35/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAMELC}View(QWidget *parent);
+ %{APPNAMELC}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
void switchColors();
diff --git a/languages/cpp/app_templates/kde4app/kapp4.cpp b/languages/cpp/app_templates/kde4app/kapp4.cpp
index c11a58d1..b8849a58 100644
--- a/languages/cpp/app_templates/kde4app/kapp4.cpp
+++ b/languages/cpp/app_templates/kde4app/kapp4.cpp
@@ -4,8 +4,8 @@
#include "%{APPNAMELC}view.h"
#include "settings.h"
-#include <QtGui/QDropEvent>
-#include <QtGui/QPainter>
+#include <QtGui/TQDropEvent>
+#include <QtGui/TQPainter>
#include <kconfigdialog.h>
#include <kstatusbar.h>
@@ -47,15 +47,15 @@
void %{APPNAME}::setupActions()
{
- KStandardAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStandardAction::quit(qApp, SLOT(quit()), actionCollection());
+ KStandardAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStandardAction::quit(qApp, TQT_SLOT(quit()), actionCollection());
- KStandardAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStandardAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAME}View
KAction *custom = new KAction(KIcon("colorize"), i18n("Swi&tch Colors"), this);
actionCollection()->addAction( QLatin1String("switch_action"), custom );
- connect(custom, SIGNAL(triggered(bool)), m_view, SLOT(switchColors()));
+ connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors()));
}
void %{APPNAME}::fileNew()
@@ -79,10 +79,10 @@ void %{APPNAME}::optionsPreferences()
return;
}
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self());
- QWidget *generalSettingsDlg = new QWidget;
+ TQWidget *generalSettingsDlg = new QWidget;
ui_prefs_base.setupUi(generalSettingsDlg);
dialog->addPage(generalSettingsDlg, i18n("General"), "package_setting");
- connect(dialog, SIGNAL(settingsChanged(QString)), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged(TQString)), m_view, TQT_SLOT(settingsChanged()));
dialog->setAttribute( Qt::WA_DeleteOnClose );
dialog->show();
}
diff --git a/languages/cpp/app_templates/kde4app/kapp4view.cpp b/languages/cpp/app_templates/kde4app/kapp4view.cpp
index 256f6bcb..785a6858 100644
--- a/languages/cpp/app_templates/kde4app/kapp4view.cpp
+++ b/languages/cpp/app_templates/kde4app/kapp4view.cpp
@@ -3,9 +3,9 @@
#include "settings.h"
#include <klocale.h>
-#include <QtGui/QLabel>
+#include <QtGui/TQLabel>
-%{APPNAME}View::%{APPNAME}View(QWidget *)
+%{APPNAME}View::%{APPNAME}View(TQWidget *)
{
ui_%{APPNAMELC}view_base.setupUi(this);
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAME}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
@@ -29,9 +29,9 @@ void %{APPNAME}View::switchColors()
void %{APPNAME}View::settingsChanged()
{
- QPalette pal;
- pal.setColor( QPalette::Window, Settings::col_background());
- pal.setColor( QPalette::WindowText, Settings::col_foreground());
+ TQPalette pal;
+ pal.setColor( TQPalette::Window, Settings::col_background());
+ pal.setColor( TQPalette::WindowText, Settings::col_foreground());
ui_%{APPNAMELC}view_base.kcfg_sillyLabel->setPalette( pal );
// i18n : internationalization
diff --git a/languages/cpp/app_templates/kde4app/kapp4view.h b/languages/cpp/app_templates/kde4app/kapp4view.h
index ab08445f..9572b914 100644
--- a/languages/cpp/app_templates/kde4app/kapp4view.h
+++ b/languages/cpp/app_templates/kde4app/kapp4view.h
@@ -2,7 +2,7 @@
#ifndef %{APPNAMELC}VIEW_H
#define %{APPNAMELC}VIEW_H
-#include <QtGui/QWidget>
+#include <QtGui/TQWidget>
#include "ui_%{APPNAMELC}view_base.h"
@@ -19,14 +19,14 @@ class KUrl;
* @version %{VERSION}
*/
-class %{APPNAME}View : public QWidget, public Ui::%{APPNAMELC}view_base
+class %{APPNAME}View : public TQWidget, public Ui::%{APPNAMELC}view_base
{
Q_OBJECT
public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -40,12 +40,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
void switchColors();
diff --git a/languages/cpp/app_templates/kdedcop/app.cpp b/languages/cpp/app_templates/kdedcop/app.cpp
index e295253a..e4fa554f 100644
--- a/languages/cpp/app_templates/kdedcop/app.cpp
+++ b/languages/cpp/app_templates/kdedcop/app.cpp
@@ -2,7 +2,7 @@
#include "%{APPNAMELC}.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kmainwindow.h>
#include <klocale.h>
diff --git a/languages/cpp/app_templates/kdedcop/app_iface.h b/languages/cpp/app_templates/kdedcop/app_iface.h
index 57bfb059..7049c712 100644
--- a/languages/cpp/app_templates/kdedcop/app_iface.h
+++ b/languages/cpp/app_templates/kdedcop/app_iface.h
@@ -10,10 +10,10 @@ class DCOPDemoIface : virtual public DCOPObject
// Here you should place your DCOP interface.
// Below are four example methods.
- virtual QString strVal() const = 0;
+ virtual TQString strVal() const = 0;
virtual int intVal() const = 0;
virtual void setIntVal( int num ) = 0;
- virtual void setStrVal( const QString &str ) = 0;
+ virtual void setStrVal( const TQString &str ) = 0;
};
diff --git a/languages/cpp/app_templates/kdedcop/mainclass.cpp b/languages/cpp/app_templates/kdedcop/mainclass.cpp
index 8f334114..a5e0d6a5 100644
--- a/languages/cpp/app_templates/kdedcop/mainclass.cpp
+++ b/languages/cpp/app_templates/kdedcop/mainclass.cpp
@@ -14,7 +14,7 @@ MainClass::~MainClass()
{
}
-void MainClass::setStrVal(const QString & str) {
+void MainClass::setStrVal(const TQString & str) {
m_strValue = str;
}
@@ -22,7 +22,7 @@ void MainClass::setIntVal(int val) {
m_intValue = val;
}
-QString MainClass::strVal() const {
+TQString MainClass::strVal() const {
return m_strValue;
}
diff --git a/languages/cpp/app_templates/kdedcop/mainclass.h b/languages/cpp/app_templates/kdedcop/mainclass.h
index ca37f2ad..13504f82 100644
--- a/languages/cpp/app_templates/kdedcop/mainclass.h
+++ b/languages/cpp/app_templates/kdedcop/mainclass.h
@@ -18,13 +18,13 @@ public:
// Here is the implementation of the example DCOP interface methods.
- virtual void setStrVal(const QString &);
+ virtual void setStrVal(const TQString &);
virtual void setIntVal(int);
- virtual QString strVal() const;
+ virtual TQString strVal() const;
virtual int intVal() const;
private:
- QString m_strValue;
+ TQString m_strValue;
int m_intValue;
};
diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
index 9d5cadcf..364ec0d7 100644
--- a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
+++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp
@@ -1,7 +1,7 @@
%{CPP_TEMPLATE}
-#include <qwhatsthis.h>
-#include <qtimer.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -21,24 +21,24 @@ typedef KGenericFactory<%{APPNAME}Part> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( "kdev%{APPNAMELC}" ) );
static const KDevPluginInfo data("kdev%{APPNAMELC}");
-%{APPNAME}Part::%{APPNAME}Part(QObject *parent, const char *name, const QStringList& )
+%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList& )
: KDevLanguageSupport(&data, parent, name ? name : "%{APPNAME}Part" )
{
setInstance(%{APPNAME}Factory::instance());
setXMLFile("kdevlang_%{APPNAMELC}.rc");
- m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, SLOT(slotRun()),actionCollection(), "build_execute" );
+ m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" );
kdDebug() << "Creating %{APPNAMELC} Part" << endl;
- connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)),
- this, SLOT(projectConfigWidget(KDialogBase*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( partController(), SIGNAL(savedFile(const KURL&)), this, SLOT(savedFile(const KURL&)) );
- connect(partController(), SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(slotActivePartChanged(KParts::Part *)));
+ connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
+ this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( partController(), TQT_SIGNAL(savedFile(const KURL&)), this, TQT_SLOT(savedFile(const KURL&)) );
+ connect(partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(slotActivePartChanged(KParts::Part *)));
}
@@ -74,14 +74,14 @@ void %{APPNAME}Part::projectOpened()
{
kdDebug(9014) << "projectOpened()" << endl;
- connect( project(), SIGNAL(addedFilesToProject(const QStringList &)),
- this, SLOT(addedFilesToProject(const QStringList &)) );
- connect( project(), SIGNAL(removedFilesFromProject(const QStringList &)),
- this, SLOT(removedFilesFromProject(const QStringList &)) );
+ connect( project(), TQT_SIGNAL(addedFilesToProject(const TQStringList &)),
+ this, TQT_SLOT(addedFilesToProject(const TQStringList &)) );
+ connect( project(), TQT_SIGNAL(removedFilesFromProject(const TQStringList &)),
+ this, TQT_SLOT(removedFilesFromProject(const TQStringList &)) );
// We want to parse only after all components have been
// properly initialized
- QTimer::singleShot(0, this, SLOT(parse()));
+ TQTimer::singleShot(0, this, TQT_SLOT(parse()));
}
void %{APPNAME}Part::projectClosed()
{
@@ -97,11 +97,11 @@ void %{APPNAME}Part::savedFile(const KURL &fileName)
emit addedSourceInfo( fileName.path() );
}
}
-void %{APPNAME}Part::addedFilesToProject(const QStringList &fileList)
+void %{APPNAME}Part::addedFilesToProject(const TQStringList &fileList)
{
kdDebug(9014) << "addedFilesToProject()" << endl;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -110,15 +110,15 @@ void %{APPNAME}Part::addedFilesToProject(const QStringList &fileList)
emit updatedSourceInfo();
}
-void %{APPNAME}Part::removedFilesFromProject(const QStringList &fileList)
+void %{APPNAME}Part::removedFilesFromProject(const TQStringList &fileList)
{
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
- QString fileName = project()->projectDirectory() + "/" + ( *it );
+ TQString fileName = project()->projectDirectory() + "/" + ( *it );
if( codeModel()->hasFile(fileName) )
{
kdDebug(9014) << "removed " << fileName << endl;
@@ -135,8 +135,8 @@ void %{APPNAME}Part::parse()
if (project())
{
kapp->setOverrideCursor(waitCursor);
- QStringList files = project()->allFiles();
- for (QStringList::Iterator it = files.begin(); it != files.end() ;++it)
+ TQStringList files = project()->allFiles();
+ for (TQStringList::Iterator it = files.begin(); it != files.end() ;++it)
{
kdDebug(9014) << "maybe parse " << project()->projectDirectory() + "/" + (*it) << endl;
}
diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.h b/languages/cpp/app_templates/kdevlang/kdevlang_part.h
index 25721d64..d6d92ff6 100644
--- a/languages/cpp/app_templates/kdevlang/kdevlang_part.h
+++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.h
@@ -7,7 +7,7 @@
#include <kdevplugin.h>
#include <codemodel.h>
#include <kdevlanguagesupport.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kdialogbase.h>
class KAction;
@@ -19,7 +19,7 @@ class %{APPNAME}Part : public KDevLanguageSupport
{
Q_OBJECT
public:
- %{APPNAME}Part(QObject *parent, const char *name, const QStringList &);
+ %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &);
~%{APPNAME}Part();
protected:
virtual Features features();
@@ -31,8 +31,8 @@ class %{APPNAME}Part : public KDevLanguageSupport
void projectOpened();
void projectClosed();
void savedFile(const KURL &fileName);
- void addedFilesToProject(const QStringList &fileList);
- void removedFilesFromProject(const QStringList &fileList);
+ void addedFilesToProject(const TQStringList &fileList);
+ void removedFilesFromProject(const TQStringList &fileList);
void parse();
void slotActivePartChanged(KParts::Part *part);
private:
diff --git a/languages/cpp/app_templates/kdevpart/globalconfig.cpp b/languages/cpp/app_templates/kdevpart/globalconfig.cpp
index 12396fec..cddf3e7e 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart/globalconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}GlobalConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/globalconfig.h b/languages/cpp/app_templates/kdevpart/globalconfig.h
index 1b321cd2..aea1cbea 100644
--- a/languages/cpp/app_templates/kdevpart/globalconfig.h
+++ b/languages/cpp/app_templates/kdevpart/globalconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}GlobalConfig: public %{APPNAME}GlobalConfigBase
{
Q_OBJECT
public:
- %{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
index dd86843d..082549c4 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp
@@ -1,9 +1,9 @@
%{CPP_TEMPLATE}
#include "%{APPNAMELC}part.h"
-#include <qtimer.h>
-#include <qpopupmenu.h>
-#include <qwhatsthis.h>
+#include <tqtimer.h>
+#include <tqpopupmenu.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kaction.h>
@@ -28,7 +28,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-%{APPNAME}Part::%{APPNAME}Part(QObject *parent, const char *name, const QStringList &/*args*/)
+%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &/*args*/)
: KDevPlugin(&data, parent, name ? name : "%{APPNAME}Part")
{
setInstance(%{APPNAME}Factory::instance());
@@ -38,7 +38,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_widget->setCaption("widget caption");
m_widget->setIcon(SmallIcon(info()->icon()));
- QWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
+ TQWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
// now you decide what should happen to the widget. Take a look at kdevcore.h
// or at other plugins how to embed it.
@@ -60,16 +60,16 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_configProxy = new ConfigWidgetProxy(core());
m_configProxy->createGlobalConfigPage(i18n("%{APPNAME}"), GLOBALDOC_OPTIONS, info()->icon());
m_configProxy->createProjectConfigPage(i18n("%{APPNAME}"), PROJECTDOC_OPTIONS, info()->icon());
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int)));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
- connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()));
- connect(core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
+ connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
}
%{APPNAME}Part::~%{APPNAME}Part()
@@ -92,12 +92,12 @@ void %{APPNAME}Part::setupActions()
{
// create XMLGUI actions here
action = new KAction(i18n("&Do Something..."), 0,
- this, SLOT(doSomething()), actionCollection(), "plugin_action" );
+ this, TQT_SLOT(doSomething()), actionCollection(), "plugin_action" );
action->setToolTip(i18n("Do something"));
action->setWhatsThis(i18n("<b>Do something</b><p>Describe here what does this action do."));
}
-void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
// create configuraton dialogs here
switch (pageNo)
@@ -105,19 +105,19 @@ void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, u
case GLOBALDOC_OPTIONS:
{
%{APPNAME}GlobalConfig *w = new %{APPNAME}GlobalConfig(this, page, "global config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
%{APPNAME}ProjectConfig *w = new %{APPNAME}ProjectConfig(this, page, "project config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
}
}
-void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
+void %{APPNAME}Part::contextMenu(TQPopupMenu *popup, const Context *context)
{
// put actions into the context menu here
if (context->hasType(Context::EditorContext))
@@ -131,7 +131,7 @@ void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
// or create menu items on the fly
// int id = -1;
// id = popup->insertItem(i18n("Do Something Here"),
- // this, SLOT(doSomething()) );
+ // this, TQT_SLOT(doSomething()) );
// popup->setWhatsThis(id, i18n("<b>Do something here</b><p>Describe here what does this action do."
}
else if (context->hasType(Context::FileContext))
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.h b/languages/cpp/app_templates/kdevpart/kdevpart_part.h
index 168b8a40..246e539d 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_part.h
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.h
@@ -4,7 +4,7 @@
#include <kdevplugin.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class QPopupMenu;
class KAction;
@@ -20,14 +20,14 @@ class %{APPNAME}Part: public KDevPlugin
{
Q_OBJECT
public:
- %{APPNAME}Part(QObject *parent, const char *name, const QStringList &args);
+ %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &args);
~%{APPNAME}Part();
private slots:
void init();
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void projectOpened();
void projectClosed();
@@ -38,7 +38,7 @@ private:
KAction *action;
- QGuardedPtr<%{APPNAME}Widget> m_widget;
+ TQGuardedPtr<%{APPNAME}Widget> m_widget;
ConfigWidgetProxy *m_configProxy;
};
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp
index 0c05b976..1fe3558c 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_widget.cpp
@@ -10,7 +10,7 @@
#include "%{APPNAMELC}part.h"
%{APPNAME}Widget::%{APPNAME}Widget(%{APPNAME}Part *part)
- : QWidget(0, "%{APPNAMELC} widget"), m_part(part)
+ : TQWidget(0, "%{APPNAMELC} widget"), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_widget.h b/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
index e29e29d2..308c3e7e 100644
--- a/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
+++ b/languages/cpp/app_templates/kdevpart/kdevpart_widget.h
@@ -2,8 +2,8 @@
#ifndef %{APPNAMEUC}_WIDGET_H
#define %{APPNAMEUC}_WIDGET_H
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
class KDevProject;
class %{APPNAME}Part;
diff --git a/languages/cpp/app_templates/kdevpart/projectconfig.cpp b/languages/cpp/app_templates/kdevpart/projectconfig.cpp
index 5f07993b..42a9f3e7 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart/projectconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}ProjectConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart/projectconfig.h b/languages/cpp/app_templates/kdevpart/projectconfig.h
index ec3ff4df..0ab0cb35 100644
--- a/languages/cpp/app_templates/kdevpart/projectconfig.h
+++ b/languages/cpp/app_templates/kdevpart/projectconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}ProjectConfig: public %{APPNAME}ProjectConfigBase
{
Q_OBJECT
public:
- %{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfig.cpp b/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
index 12396fec..cddf3e7e 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart2/globalconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}GlobalConfig::%{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}GlobalConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/globalconfig.h b/languages/cpp/app_templates/kdevpart2/globalconfig.h
index 1b321cd2..aea1cbea 100644
--- a/languages/cpp/app_templates/kdevpart2/globalconfig.h
+++ b/languages/cpp/app_templates/kdevpart2/globalconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}GlobalConfig: public %{APPNAME}GlobalConfigBase
{
Q_OBJECT
public:
- %{APPNAME}GlobalConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}GlobalConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
index dd86843d..082549c4 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp
@@ -1,9 +1,9 @@
%{CPP_TEMPLATE}
#include "%{APPNAMELC}part.h"
-#include <qtimer.h>
-#include <qpopupmenu.h>
-#include <qwhatsthis.h>
+#include <tqtimer.h>
+#include <tqpopupmenu.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kaction.h>
@@ -28,7 +28,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
-%{APPNAME}Part::%{APPNAME}Part(QObject *parent, const char *name, const QStringList &/*args*/)
+%{APPNAME}Part::%{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &/*args*/)
: KDevPlugin(&data, parent, name ? name : "%{APPNAME}Part")
{
setInstance(%{APPNAME}Factory::instance());
@@ -38,7 +38,7 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_widget->setCaption("widget caption");
m_widget->setIcon(SmallIcon(info()->icon()));
- QWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
+ TQWhatsThis::add(m_widget, i18n("WHAT DOES THIS PART DO?"));
// now you decide what should happen to the widget. Take a look at kdevcore.h
// or at other plugins how to embed it.
@@ -60,16 +60,16 @@ K_EXPORT_COMPONENT_FACTORY( libkdev%{APPNAMELC}, %{APPNAME}Factory( data ) );
m_configProxy = new ConfigWidgetProxy(core());
m_configProxy->createGlobalConfigPage(i18n("%{APPNAME}"), GLOBALDOC_OPTIONS, info()->icon());
m_configProxy->createProjectConfigPage(i18n("%{APPNAME}"), PROJECTDOC_OPTIONS, info()->icon());
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )),
- this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int)));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )),
+ this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
- connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()));
- connect(core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
+ connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
}
%{APPNAME}Part::~%{APPNAME}Part()
@@ -92,12 +92,12 @@ void %{APPNAME}Part::setupActions()
{
// create XMLGUI actions here
action = new KAction(i18n("&Do Something..."), 0,
- this, SLOT(doSomething()), actionCollection(), "plugin_action" );
+ this, TQT_SLOT(doSomething()), actionCollection(), "plugin_action" );
action->setToolTip(i18n("Do something"));
action->setWhatsThis(i18n("<b>Do something</b><p>Describe here what does this action do."));
}
-void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
// create configuraton dialogs here
switch (pageNo)
@@ -105,19 +105,19 @@ void %{APPNAME}Part::insertConfigWidget(const KDialogBase *dlg, QWidget *page, u
case GLOBALDOC_OPTIONS:
{
%{APPNAME}GlobalConfig *w = new %{APPNAME}GlobalConfig(this, page, "global config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
%{APPNAME}ProjectConfig *w = new %{APPNAME}ProjectConfig(this, page, "project config");
- connect(dlg, SIGNAL(okClicked()), w, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
break;
}
}
}
-void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
+void %{APPNAME}Part::contextMenu(TQPopupMenu *popup, const Context *context)
{
// put actions into the context menu here
if (context->hasType(Context::EditorContext))
@@ -131,7 +131,7 @@ void %{APPNAME}Part::contextMenu(QPopupMenu *popup, const Context *context)
// or create menu items on the fly
// int id = -1;
// id = popup->insertItem(i18n("Do Something Here"),
- // this, SLOT(doSomething()) );
+ // this, TQT_SLOT(doSomething()) );
// popup->setWhatsThis(id, i18n("<b>Do something here</b><p>Describe here what does this action do."
}
else if (context->hasType(Context::FileContext))
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
index 168b8a40..246e539d 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h
@@ -4,7 +4,7 @@
#include <kdevplugin.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class QPopupMenu;
class KAction;
@@ -20,14 +20,14 @@ class %{APPNAME}Part: public KDevPlugin
{
Q_OBJECT
public:
- %{APPNAME}Part(QObject *parent, const char *name, const QStringList &args);
+ %{APPNAME}Part(TQObject *parent, const char *name, const TQStringList &args);
~%{APPNAME}Part();
private slots:
void init();
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
void projectOpened();
void projectClosed();
@@ -38,7 +38,7 @@ private:
KAction *action;
- QGuardedPtr<%{APPNAME}Widget> m_widget;
+ TQGuardedPtr<%{APPNAME}Widget> m_widget;
ConfigWidgetProxy *m_configProxy;
};
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp
index 0c05b976..1fe3558c 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.cpp
@@ -10,7 +10,7 @@
#include "%{APPNAMELC}part.h"
%{APPNAME}Widget::%{APPNAME}Widget(%{APPNAME}Part *part)
- : QWidget(0, "%{APPNAMELC} widget"), m_part(part)
+ : TQWidget(0, "%{APPNAMELC} widget"), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
index e29e29d2..308c3e7e 100644
--- a/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
+++ b/languages/cpp/app_templates/kdevpart2/kdevpart_widget.h
@@ -2,8 +2,8 @@
#ifndef %{APPNAMEUC}_WIDGET_H
#define %{APPNAMEUC}_WIDGET_H
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
class KDevProject;
class %{APPNAME}Part;
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfig.cpp b/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
index 5f07993b..42a9f3e7 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
+++ b/languages/cpp/app_templates/kdevpart2/projectconfig.cpp
@@ -3,7 +3,7 @@
#include "%{APPNAMELC}part.h"
-%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent, const char *name)
+%{APPNAME}ProjectConfig::%{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent, const char *name)
: %{APPNAME}ProjectConfigBase(parent, name), m_part(part)
{
}
diff --git a/languages/cpp/app_templates/kdevpart2/projectconfig.h b/languages/cpp/app_templates/kdevpart2/projectconfig.h
index ec3ff4df..0ab0cb35 100644
--- a/languages/cpp/app_templates/kdevpart2/projectconfig.h
+++ b/languages/cpp/app_templates/kdevpart2/projectconfig.h
@@ -10,7 +10,7 @@ class %{APPNAME}ProjectConfig: public %{APPNAME}ProjectConfigBase
{
Q_OBJECT
public:
- %{APPNAME}ProjectConfig(%{APPNAME}Part *part, QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}ProjectConfig(%{APPNAME}Part *part, TQWidget *parent = 0, const char *name = 0);
public slots:
void accept();
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
index 3e6b849a..db259cb3 100644
--- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
+++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp
@@ -6,15 +6,15 @@
#include <kgenericfactory.h>
//#include <kio/global.h>
-//#include <qfileinfo.h>
-//#include <qdir.h>
+//#include <tqfileinfo.h>
+//#include <tqdir.h>
typedef KGenericFactory<%{APPNAME}Plugin> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAMELC}" ))
-%{APPNAME}Plugin::%{APPNAME}Plugin(QObject *parent, const char *name,
- const QStringList &args)
+%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
//add the mimetype here - example:
@@ -28,12 +28,12 @@ K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAME
KFileMimeTypeInfo::ItemInfo* item;
// our new items in the group
- item = addItemInfo(group, "Items", i18n("Items"), QVariant::Int);
- item = addItemInfo(group, "Size", i18n("Size"), QVariant::Int);
+ item = addItemInfo(group, "Items", i18n("Items"), TQVariant::Int);
+ item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int);
setUnit(item, KFileMimeTypeInfo::KiloBytes);
// strings are possible, too:
- //addItemInfo(group, "Text", i18n("Document Type"), QVariant::String);
+ //addItemInfo(group, "Text", i18n("Document Type"), TQVariant::String);
}
bool %{APPNAME}Plugin::readInfo( KFileMetaInfo& info, uint /*what*/)
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
index 358b4dcb..8a0355f1 100644
--- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
+++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h
@@ -15,7 +15,7 @@ class %{APPNAME}Plugin: public KFilePlugin
Q_OBJECT
public:
- %{APPNAME}Plugin( QObject *parent, const char *name, const QStringList& args );
+ %{APPNAME}Plugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};
diff --git a/languages/cpp/app_templates/khello/app.cpp b/languages/cpp/app_templates/khello/app.cpp
index 44332685..811f9337 100644
--- a/languages/cpp/app_templates/khello/app.cpp
+++ b/languages/cpp/app_templates/khello/app.cpp
@@ -2,7 +2,7 @@
#include "%{APPNAMELC}.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kmainwindow.h>
#include <klocale.h>
@@ -13,7 +13,7 @@
// set the shell's ui resource file
setXMLFile("%{APPNAMELC}ui.rc");
- new QLabel( "Hello World", this, "hello label" );
+ new TQLabel( "Hello World", this, "hello label" );
}
%{APPNAME}::~%{APPNAME}()
diff --git a/languages/cpp/app_templates/khello2/widget.cpp b/languages/cpp/app_templates/khello2/widget.cpp
index 6775ac39..266e894f 100644
--- a/languages/cpp/app_templates/khello2/widget.cpp
+++ b/languages/cpp/app_templates/khello2/widget.cpp
@@ -1,10 +1,10 @@
%{CPP_TEMPLATE}
-#include <qlabel.h>
+#include <tqlabel.h>
#include "%{APPNAMELC}widget.h"
-%{APPNAME}Widget::%{APPNAME}Widget(QWidget* parent, const char* name, WFlags fl)
+%{APPNAME}Widget::%{APPNAME}Widget(TQWidget* parent, const char* name, WFlags fl)
: %{APPNAME}WidgetBase(parent,name,fl)
{}
diff --git a/languages/cpp/app_templates/khello2/widget.h b/languages/cpp/app_templates/khello2/widget.h
index 275e13c7..50d7a721 100644
--- a/languages/cpp/app_templates/khello2/widget.h
+++ b/languages/cpp/app_templates/khello2/widget.h
@@ -10,7 +10,7 @@ class %{APPNAME}Widget : public %{APPNAME}WidgetBase
Q_OBJECT
public:
- %{APPNAME}Widget(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}Widget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}Widget();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/languages/cpp/app_templates/kicker/applet.cpp b/languages/cpp/app_templates/kicker/applet.cpp
index 5345ac0c..29ec3d1d 100644
--- a/languages/cpp/app_templates/kicker/applet.cpp
+++ b/languages/cpp/app_templates/kicker/applet.cpp
@@ -1,6 +1,6 @@
%{CPP_TEMPLATE}
-#include <qlcdnumber.h>
+#include <tqlcdnumber.h>
#include <kglobal.h>
#include <klocale.h>
#include <kconfig.h>
@@ -10,12 +10,12 @@
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(const QString& configFile, Type type, int actions, QWidget *parent, const char *name)
+%{APPNAME}::%{APPNAME}(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name)
{
// Get the current application configuration handle
ksConfig = config();
- QLCDNumber *w = new QLCDNumber(this);
+ TQLCDNumber *w = new TQLCDNumber(this);
w->display(42);
mainView = w;
@@ -55,14 +55,14 @@ int %{APPNAME}::heightForWidth(int width) const
return height();
}
-void %{APPNAME}::resizeEvent(QResizeEvent *e)
+void %{APPNAME}::resizeEvent(TQResizeEvent *e)
{
}
extern "C"
{
- KPanelApplet* init( QWidget *parent, const QString& configFile)
+ KPanelApplet* init( TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}(configFile, KPanelApplet::Normal,
diff --git a/languages/cpp/app_templates/kicker/applet.h b/languages/cpp/app_templates/kicker/applet.h
index b078b2a4..ba4d6cd4 100644
--- a/languages/cpp/app_templates/kicker/applet.h
+++ b/languages/cpp/app_templates/kicker/applet.h
@@ -8,7 +8,7 @@
#endif
#include <kpanelapplet.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
@@ -26,8 +26,8 @@ public:
* @param parent The pointer to the parent widget handed over in the factory function.
* @param name A Qt object name for your applet.
**/
- %{APPNAME}(const QString& configFile, Type t = Normal, int actions = 0,
- QWidget *parent = 0, const char *name = 0);
+ %{APPNAME}(const TQString& configFile, Type t = Normal, int actions = 0,
+ TQWidget *parent = 0, const char *name = 0);
/** destructor */
~%{APPNAME}();
@@ -97,11 +97,11 @@ public:
virtual void preferences();
protected:
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
private:
KConfig *ksConfig;
- QWidget *mainView;
+ TQWidget *mainView;
};
#endif
diff --git a/languages/cpp/app_templates/kioslave/slave.cpp b/languages/cpp/app_templates/kioslave/slave.cpp
index df32aebf..c8dc5d81 100644
--- a/languages/cpp/app_templates/kioslave/slave.cpp
+++ b/languages/cpp/app_templates/kioslave/slave.cpp
@@ -1,8 +1,8 @@
-#include <qcstring.h>
-#include <qsocket.h>
-#include <qdatetime.h>
-#include <qbitarray.h>
+#include <tqcstring.h>
+#include <tqsocket.h>
+#include <tqdatetime.h>
+#include <tqbitarray.h>
#include <stdlib.h>
#include <math.h>
@@ -26,7 +26,7 @@
using namespace KIO;
-kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const QCString &pool_socket, const QCString &app_socket)
+kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket)
: SlaveBase("kio_%{APPNAMELC}", pool_socket, app_socket)
{
kdDebug() << "kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol()" << endl;
@@ -44,7 +44,7 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url )
kdDebug() << "kio_%{APPNAMELC}::get(const KURL& url)" << endl ;
kdDebug() << "Seconds: " << url.query() << endl;
- QString remoteServer = url.host();
+ TQString remoteServer = url.host();
int remotePort = url.port();
kdDebug() << "myURL: " << url.prettyURL() << endl;
@@ -52,9 +52,9 @@ void kio_%{APPNAMELC}Protocol::get(const KURL& url )
// Send the mimeType as soon as it is known
mimeType("text/plain");
// Send the data
- QString theData = "This is a test of kio_%{APPNAMELC}";
- data(QCString(theData.local8Bit()));
- data(QByteArray()); // empty array means we're done sending the data
+ TQString theData = "This is a test of kio_%{APPNAMELC}";
+ data(TQCString(theData.local8Bit()));
+ data(TQByteArray()); // empty array means we're done sending the data
finished();
}
diff --git a/languages/cpp/app_templates/kioslave/slave.h b/languages/cpp/app_templates/kioslave/slave.h
index 649ead8c..d094a23a 100644
--- a/languages/cpp/app_templates/kioslave/slave.h
+++ b/languages/cpp/app_templates/kioslave/slave.h
@@ -2,8 +2,8 @@
#ifndef _%{APPNAMELC}_H_
#define _%{APPNAMELC}_H_
-#include <qstring.h>
-#include <qcstring.h>
+#include <tqstring.h>
+#include <tqcstring.h>
#include <kurl.h>
#include <kio/global.h>
@@ -14,7 +14,7 @@ class QCString;
class kio_%{APPNAMELC}Protocol : public KIO::SlaveBase
{
public:
- kio_%{APPNAMELC}Protocol(const QCString &pool_socket, const QCString &app_socket);
+ kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket);
virtual ~kio_%{APPNAMELC}Protocol();
virtual void mimetype(const KURL& url);
virtual void get(const KURL& url);
diff --git a/languages/cpp/app_templates/kmake/mainviewimp.cpp b/languages/cpp/app_templates/kmake/mainviewimp.cpp
index 68cb262a..8a0de706 100644
--- a/languages/cpp/app_templates/kmake/mainviewimp.cpp
+++ b/languages/cpp/app_templates/kmake/mainviewimp.cpp
@@ -1,9 +1,9 @@
#include "mainviewimp.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <klocale.h>
-MainViewImp::MainViewImp(QWidget* parent, const char* name, WFlags fl)
+MainViewImp::MainViewImp(TQWidget* parent, const char* name, WFlags fl)
: MainView(parent,name,fl)
{
}
diff --git a/languages/cpp/app_templates/kmake/mainviewimp.h b/languages/cpp/app_templates/kmake/mainviewimp.h
index 51af1957..190a26e3 100644
--- a/languages/cpp/app_templates/kmake/mainviewimp.h
+++ b/languages/cpp/app_templates/kmake/mainviewimp.h
@@ -8,7 +8,7 @@ class MainViewImp : public MainView
Q_OBJECT
public:
- MainViewImp(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ MainViewImp(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~MainViewImp();
public slots:
diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
index bd79c317..86287a3f 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp
@@ -23,7 +23,7 @@ extern "C"
KInstance* %{APPNAME}Factory::s_global = 0L;
KAboutData* %{APPNAME}Factory::s_aboutData = 0L;
-%{APPNAME}Factory::%{APPNAME}Factory( QObject* parent, const char* name )
+%{APPNAME}Factory::%{APPNAME}Factory( TQObject* parent, const char* name )
: KoFactory( parent, name )
{
global();
@@ -37,7 +37,7 @@ KAboutData* %{APPNAME}Factory::s_aboutData = 0L;
s_global = 0L;
}
-KParts::Part* %{APPNAME}Factory::createPartObject( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, const char* classname, const QStringList & )
+KParts::Part* %{APPNAME}Factory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, const char* classname, const TQStringList & )
{
// If classname is "KoDocument", our host is a koffice application
// otherwise, the host wants us as a simple part, so switch to readonly and single view.
diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.h b/languages/cpp/app_templates/kofficepart/kopart_factory.h
index 45f1f649..58061af3 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_factory.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_factory.h
@@ -15,10 +15,10 @@ class %{APPNAME}Factory : public KoFactory
{
Q_OBJECT
public:
- %{APPNAME}Factory( QObject* parent = 0, const char* name = 0 );
+ %{APPNAME}Factory( TQObject* parent = 0, const char* name = 0 );
~%{APPNAME}Factory();
- virtual KParts::Part *createPartObject( QWidget *parentWidget = 0, const char *widgetName = 0, QObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const QStringList &args = QStringList() );
+ virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
static KInstance* global();
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.cpp b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
index 500179f3..c12b5fd7 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.cpp
@@ -6,40 +6,40 @@
#include "%{APPNAMELC}_part.h"
#include "%{APPNAMELC}_view.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-%{APPNAME}Part::%{APPNAME}Part( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, bool singleViewMode )
+%{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode )
: KoDocument( parentWidget, widgetName, parent, name, singleViewMode )
{
}
-bool %{APPNAME}Part::initDoc( InitDocFlags flags, QWidget* parentWidget )
+bool %{APPNAME}Part::initDoc( InitDocFlags flags, TQWidget* parentWidget )
{
// If nothing is loaded, do initialize here
return TRUE;
}
-KoView* %{APPNAME}Part::createViewInstance( QWidget* parent, const char* name )
+KoView* %{APPNAME}Part::createViewInstance( TQWidget* parent, const char* name )
{
return new %{APPNAME}View( this, parent, name );
}
-bool %{APPNAME}Part::loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles, const QDomDocument & settings, KoStore* store )
+bool %{APPNAME}Part::loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, const TQDomDocument & settings, KoStore* store )
{
/// @todo load the document using the OASIS format
return true;
}
-bool %{APPNAME}Part::loadXML( QIODevice *, const QDomDocument & )
+bool %{APPNAME}Part::loadXML( TQIODevice *, const TQDomDocument & )
{
/// @todo load the document from the QDomDocument
return true;
}
-QDomDocument %{APPNAME}Part::saveXML()
+TQDomDocument %{APPNAME}Part::saveXML()
{
/// @todo save the document into a QDomDocument
- return QDomDocument();
+ return TQDomDocument();
}
bool %{APPNAME}Part::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
@@ -49,7 +49,7 @@ bool %{APPNAME}Part::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
}
-void %{APPNAME}Part::paintContent( QPainter& painter, const QRect& rect, bool /*transparent*/,
+void %{APPNAME}Part::paintContent( TQPainter& painter, const TQRect& rect, bool /*transparent*/,
double /*zoomX*/, double /*zoomY*/ )
{
// ####### handle transparency
diff --git a/languages/cpp/app_templates/kofficepart/kopart_part.h b/languages/cpp/app_templates/kofficepart/kopart_part.h
index 03361ca7..95ebb3f6 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_part.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_part.h
@@ -12,19 +12,19 @@ class %{APPNAME}Part : public KoDocument
{
Q_OBJECT
public:
- %{APPNAME}Part( QWidget *parentWidget = 0, const char *widgetName = 0, QObject* parent = 0, const char* name = 0, bool singleViewMode = false );
+ %{APPNAME}Part( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false );
- virtual void paintContent( QPainter& painter, const QRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
+ virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 );
- virtual bool initDoc( InitDocFlags flags, QWidget* parentWidget = 0 );
+ virtual bool initDoc( InitDocFlags flags, TQWidget* parentWidget = 0 );
- virtual bool loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles, const QDomDocument & settings, KoStore* store );
- virtual bool loadXML( QIODevice *, const QDomDocument & );
- virtual QDomDocument saveXML();
+ virtual bool loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, const TQDomDocument & settings, KoStore* store );
+ virtual bool loadXML( TQIODevice *, const TQDomDocument & );
+ virtual TQDomDocument saveXML();
virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter );
protected:
- virtual KoView* createViewInstance( QWidget* parent, const char* name );
+ virtual KoView* createViewInstance( TQWidget* parent, const char* name );
};
#endif
diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.cpp b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
index 28c0b42f..f32707a8 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.cpp
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.cpp
@@ -6,27 +6,27 @@
#include "%{APPNAMELC}_factory.h"
#include "%{APPNAMELC}_part.h"
-#include <qpainter.h>
-#include <qiconset.h>
+#include <tqpainter.h>
+#include <tqiconset.h>
#include <kaction.h>
#include <kstdaction.h>
#include <klocale.h>
#include <kdebug.h>
-%{APPNAME}View::%{APPNAME}View( %{APPNAME}Part* part, QWidget* parent, const char* name )
+%{APPNAME}View::%{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent, const char* name )
: KoView( part, parent, name )
{
setInstance( %{APPNAME}Factory::global() );
setXMLFile( "%{APPNAMELC}.rc" );
- KStdAction::cut(this, SLOT( cut() ), actionCollection(), "cut" );
+ KStdAction::cut(this, TQT_SLOT( cut() ), actionCollection(), "cut" );
// Note: Prefer KStdAction::* to any custom action if possible.
- //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, SLOT( cut() ),
+ //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, TQT_SLOT( cut() ),
// actionCollection(), "cut");
}
-void %{APPNAME}View::paintEvent( QPaintEvent* ev )
+void %{APPNAME}View::paintEvent( TQPaintEvent* ev )
{
- QPainter painter;
+ TQPainter painter;
painter.begin( this );
/// @todo Scaling
diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.h b/languages/cpp/app_templates/kofficepart/kopart_view.h
index eb14763f..bab3d89e 100644
--- a/languages/cpp/app_templates/kofficepart/kopart_view.h
+++ b/languages/cpp/app_templates/kofficepart/kopart_view.h
@@ -17,13 +17,13 @@ class %{APPNAME}View : public KoView
{
Q_OBJECT
public:
- %{APPNAME}View( %{APPNAME}Part* part, QWidget* parent = 0, const char* name = 0 );
+ %{APPNAME}View( %{APPNAME}Part* part, TQWidget* parent = 0, const char* name = 0 );
protected slots:
void cut();
protected:
- void paintEvent( QPaintEvent* );
+ void paintEvent( TQPaintEvent* );
virtual void updateReadWrite( bool readwrite );
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
index 34515ce2..ae9a85a6 100644
--- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
+++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp
@@ -1,16 +1,16 @@
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kinstance.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}.h"
#include "%{APPNAMELC}.moc"
-%{APPNAME}::%{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name):
+%{APPNAME}::%{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
{
- widget=new QLabel("Init Value",widgetParent);
+ widget=new TQLabel("Init Value",widgetParent);
}
@@ -20,14 +20,14 @@
void %{APPNAME}::handleURL(const KURL &url)
{
- widget->setText(QString("%{APPNAME}")+"::"+url.url());
+ widget->setText(TQString("%{APPNAME}")+"::"+url.url());
}
extern "C"
{
- void* create_konqsidebar_%{APPNAME}(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name)
+ void* create_konqsidebar_%{APPNAME}(KInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
{
return new %{APPNAME}(instance,par,widp,desktopname,name);
}
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
index 949c68d3..9599b530 100644
--- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
+++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h
@@ -7,7 +7,7 @@
#endif
#include <konqsidebarplugin.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
@@ -25,17 +25,17 @@ public:
* @param desktopName The filename of the configuration file.
* @param name A Qt object name for your plugin.
**/
- %{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name=0);
+ %{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name=0);
/** destructor */
~%{APPNAME}();
- virtual QWidget *getWidget(){return widget;}
- virtual void *provides(const QString &) {return 0;}
+ virtual TQWidget *getWidget(){return widget;}
+ virtual void *provides(const TQString &) {return 0;}
protected:
/*Example widget only. You use whichever widget you want. You onl have to care that getWidget returns some kind of widget */
- QLabel *widget;
+ TQLabel *widget;
virtual void handleURL(const KURL &url);
};
diff --git a/languages/cpp/app_templates/kpartapp/app.cpp b/languages/cpp/app_templates/kpartapp/app.cpp
index 68c34ab3..3a8a2274 100644
--- a/languages/cpp/app_templates/kpartapp/app.cpp
+++ b/languages/cpp/app_templates/kpartapp/app.cpp
@@ -76,16 +76,16 @@ void %{APPNAME}::load(const KURL& url)
void %{APPNAME}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
}
void %{APPNAME}::saveProperties(KConfig* /*config*/)
@@ -159,8 +159,8 @@ void %{APPNAME}::optionsConfigureToolbars()
// use the standard toolbar editor
KEditToolbar dlg(factory());
- connect(&dlg, SIGNAL(newToolbarConfig()),
- this, SLOT(applyNewToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
+ this, TQT_SLOT(applyNewToolbarConfig()));
dlg.exec();
}
@@ -183,7 +183,7 @@ void %{APPNAME}::fileOpen()
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
KURL url =
- KFileDialog::getOpenURL( QString::null, QString::null, this );
+ KFileDialog::getOpenURL( TQString::null, TQString::null, this );
if (url.isEmpty() == false)
{
diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp
index bf63557f..809d642a 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.cpp
+++ b/languages/cpp/app_templates/kpartapp/app_part.cpp
@@ -8,27 +8,27 @@
#include <kglobal.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qmultilineedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqmultilineedit.h>
-%{APPNAME}Part::%{APPNAME}Part( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name )
+%{APPNAME}Part::%{APPNAME}Part( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name )
: KParts::ReadWritePart(parent, name)
{
// we need an instance
setInstance( %{APPNAME}PartFactory::instance() );
// this should be your custom internal widget
- m_widget = new QMultiLineEdit( parentWidget, widgetName );
+ m_widget = new TQMultiLineEdit( parentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
// create our actions
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- KStdAction::save(this, SLOT(save()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(save()), actionCollection());
// set our XML-UI resource file
setXMLFile("%{APPNAMELC}_part.rc");
@@ -49,12 +49,12 @@ void %{APPNAME}Part::setReadWrite(bool rw)
// notify your internal widget of the read-write state
m_widget->setReadOnly(!rw);
if (rw)
- connect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ connect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
else
{
- disconnect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ disconnect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
}
ReadWritePart::setReadWrite(rw);
@@ -80,15 +80,15 @@ void %{APPNAME}Part::setModified(bool modified)
bool %{APPNAME}Part::openFile()
{
- // m_file is always local so we can use QFile on it
- QFile file(m_file);
+ // m_file is always local so we can use TQFile on it
+ TQFile file(m_file);
if (file.open(IO_ReadOnly) == false)
return false;
- // our example widget is text-based, so we use QTextStream instead
+ // our example widget is text-based, so we use TQTextStream instead
// of a raw QDataStream
- QTextStream stream(&file);
- QString str;
+ TQTextStream stream(&file);
+ TQString str;
while (!stream.eof())
str += stream.readLine() + "\n";
@@ -110,12 +110,12 @@ bool %{APPNAME}Part::saveFile()
return false;
// m_file is always local, so we use QFile
- QFile file(m_file);
+ TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
return false;
- // use QTextStream to dump the text to the file
- QTextStream stream(&file);
+ // use TQTextStream to dump the text to the file
+ TQTextStream stream(&file);
stream << m_widget->text();
file.close();
@@ -128,7 +128,7 @@ void %{APPNAME}Part::fileOpen()
// this slot is called whenever the File->Open menu is selected,
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
- QString file_name = KFileDialog::getOpenFileName();
+ TQString file_name = KFileDialog::getOpenFileName();
if (file_name.isEmpty() == false)
openURL(file_name);
@@ -137,7 +137,7 @@ void %{APPNAME}Part::fileOpen()
void %{APPNAME}Part::fileSaveAs()
{
// this slot is called whenever the File->Save As menu is selected,
- QString file_name = KFileDialog::getSaveFileName();
+ TQString file_name = KFileDialog::getSaveFileName();
if (file_name.isEmpty() == false)
saveAs(file_name);
}
@@ -164,15 +164,15 @@ KAboutData* %{APPNAME}PartFactory::s_about = 0L;
s_instance = 0L;
}
-KParts::Part* %{APPNAME}PartFactory::createPartObject( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name,
- const char *classname, const QStringList &args )
+KParts::Part* %{APPNAME}PartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args )
{
// Create an instance of our Part
%{APPNAME}Part* obj = new %{APPNAME}Part( parentWidget, widgetName, parent, name );
// See if we are to be read-write or not
- if (QCString(classname) == "KParts::ReadOnlyPart")
+ if (TQCString(classname) == "KParts::ReadOnlyPart")
obj->setReadWrite(false);
return obj;
diff --git a/languages/cpp/app_templates/kpartapp/app_part.h b/languages/cpp/app_templates/kpartapp/app_part.h
index 37c30189..6b56c36a 100644
--- a/languages/cpp/app_templates/kpartapp/app_part.h
+++ b/languages/cpp/app_templates/kpartapp/app_part.h
@@ -25,8 +25,8 @@ public:
/**
* Default constructor
*/
- %{APPNAME}Part(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name);
+ %{APPNAME}Part(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name);
/**
* Destructor
@@ -61,7 +61,7 @@ protected slots:
void fileSaveAs();
private:
- QMultiLineEdit *m_widget;
+ TQMultiLineEdit *m_widget;
};
class KInstance;
@@ -73,9 +73,9 @@ class %{APPNAME}PartFactory : public KParts::Factory
public:
%{APPNAME}PartFactory();
virtual ~%{APPNAME}PartFactory();
- virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name,
- const char *classname, const QStringList &args );
+ virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args );
static KInstance* instance();
private:
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
index a9ee55a3..61e3ca0e 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
@@ -8,13 +8,13 @@
#include <klocale.h>
#include <kglobal.h>
-Plugin%{APPNAME}::Plugin%{APPNAME}( QObject* parent, const char* name )
+Plugin%{APPNAME}::Plugin%{APPNAME}( TQObject* parent, const char* name )
: Plugin( parent, name )
{
// Instantiate all of your actions here. These will appear in
// Konqueror's menu and toolbars.
(void) new KAction( i18n("&Plugin Action"), "%{APPNAMELC}", 0,
- this, SLOT(slotAction()),
+ this, TQT_SLOT(slotAction()),
actionCollection(), "plugin_action" );
}
@@ -29,8 +29,8 @@ void Plugin%{APPNAME}::slotAction()
// change the following block.
if ( !parent()->inherits("KHTMLPart") )
{
- QString title( i18n( "Cannot Translate Source" ) );
- QString text( i18n( "You cannot translate anything except web pages "
+ TQString title( i18n( "Cannot Translate Source" ) );
+ TQString text( i18n( "You cannot translate anything except web pages "
"with this plugin." ) );
KMessageBox::sorry( 0, text, title );
@@ -49,8 +49,8 @@ void Plugin%{APPNAME}::slotAction()
// valid URL
if ( !url.isValid() )
{
- QString title( i18n( "Malformed URL" ) );
- QString text( i18n( "The URL you entered is not valid, please "
+ TQString title( i18n( "Malformed URL" ) );
+ TQString text( i18n( "The URL you entered is not valid, please "
"correct it and try again" ) );
KMessageBox::sorry( 0, text, title );
@@ -63,7 +63,7 @@ void Plugin%{APPNAME}::slotAction()
// BEGIN
KURL work( "http://babel.altavista.com/translate.dyn" );
- QString query( "urltext=" );
+ TQString query( "urltext=" );
query += KURL::encode_string( url.url() );
work.setQuery( query );
// END
@@ -83,7 +83,7 @@ void Plugin%{APPNAME}::slotAction()
s_instance = 0;
}
-QObject* %{APPNAME}Factory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* %{APPNAME}Factory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new Plugin%{APPNAME}( parent, name );
}
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.h b/languages/cpp/app_templates/kpartplugin/plugin_app.h
index e70ad1c1..7c7bfc0c 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.h
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.h
@@ -9,7 +9,7 @@ class Plugin%{APPNAME} : public KParts::Plugin
{
Q_OBJECT
public:
- Plugin%{APPNAME}( QObject* parent = 0, const char* name = 0 );
+ Plugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
virtual ~Plugin%{APPNAME}();
public slots:
@@ -23,7 +23,7 @@ public:
%{APPNAME}Factory();
virtual ~%{APPNAME}Factory();
- virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() );
+ virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
static KInstance* instance();
diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
index 71155138..a851f02a 100644
--- a/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/app_part.cpp
@@ -10,30 +10,30 @@
#include <kglobal.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qmultilineedit.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqmultilineedit.h>
typedef KParts::GenericFactory<%{APPNAMELC}Part> %{APPNAMELC}PartFactory;
K_EXPORT_COMPONENT_FACTORY( lib%{APPNAMELC}part, %{APPNAMELC}PartFactory );
-%{APPNAMELC}Part::%{APPNAMELC}Part( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList & /*args*/)
+%{APPNAMELC}Part::%{APPNAMELC}Part( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList & /*args*/)
: KParts::ReadWritePart(parent)
{
// we need an instance
setInstance( %{APPNAMELC}PartFactory::instance() );
// this should be your custom internal widget
- m_widget = new QMultiLineEdit( parentWidget, widgetName );
+ m_widget = new TQMultiLineEdit( parentWidget, widgetName );
// notify the part that this is our internal widget
setWidget(m_widget);
// create our actions
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- KStdAction::save(this, SLOT(save()), actionCollection());
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(save()), actionCollection());
// set our XML-UI resource file
setXMLFile("%{APPNAMELC}_part.rc");
@@ -63,12 +63,12 @@ void %{APPNAMELC}Part::setReadWrite(bool rw)
// notify your internal widget of the read-write state
m_widget->setReadOnly(!rw);
if (rw)
- connect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ connect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
else
{
- disconnect(m_widget, SIGNAL(textChanged()),
- this, SLOT(setModified()));
+ disconnect(m_widget, TQT_SIGNAL(textChanged()),
+ this, TQT_SLOT(setModified()));
}
ReadWritePart::setReadWrite(rw);
@@ -94,15 +94,15 @@ void %{APPNAMELC}Part::setModified(bool modified)
bool %{APPNAMELC}Part::openFile()
{
- // m_file is always local so we can use QFile on it
- QFile file(m_file);
+ // m_file is always local so we can use TQFile on it
+ TQFile file(m_file);
if (file.open(IO_ReadOnly) == false)
return false;
- // our example widget is text-based, so we use QTextStream instead
+ // our example widget is text-based, so we use TQTextStream instead
// of a raw QDataStream
- QTextStream stream(&file);
- QString str;
+ TQTextStream stream(&file);
+ TQString str;
while (!stream.eof())
str += stream.readLine() + "\n";
@@ -124,12 +124,12 @@ bool %{APPNAMELC}Part::saveFile()
return false;
// m_file is always local, so we use QFile
- QFile file(m_file);
+ TQFile file(m_file);
if (file.open(IO_WriteOnly) == false)
return false;
- // use QTextStream to dump the text to the file
- QTextStream stream(&file);
+ // use TQTextStream to dump the text to the file
+ TQTextStream stream(&file);
stream << m_widget->text();
file.close();
@@ -142,7 +142,7 @@ void %{APPNAMELC}Part::fileOpen()
// this slot is called whenever the File->Open menu is selected,
// the Open shortcut is pressed (usually CTRL+O) or the Open toolbar
// button is clicked
- QString file_name = KFileDialog::getOpenFileName();
+ TQString file_name = KFileDialog::getOpenFileName();
if (file_name.isEmpty() == false)
openURL(file_name);
@@ -151,7 +151,7 @@ void %{APPNAMELC}Part::fileOpen()
void %{APPNAMELC}Part::fileSaveAs()
{
// this slot is called whenever the File->Save As menu is selected,
- QString file_name = KFileDialog::getSaveFileName();
+ TQString file_name = KFileDialog::getSaveFileName();
if (file_name.isEmpty() == false)
saveAs(file_name);
}
diff --git a/languages/cpp/app_templates/kscons_kmdi/app_part.h b/languages/cpp/app_templates/kscons_kmdi/app_part.h
index e1dd002b..2d4ea947 100644
--- a/languages/cpp/app_templates/kscons_kmdi/app_part.h
+++ b/languages/cpp/app_templates/kscons_kmdi/app_part.h
@@ -27,8 +27,8 @@ public:
/**
* Default constructor
*/
- %{APPNAMELC}Part(QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name, const QStringList & /*args*/);
+ %{APPNAMELC}Part(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name, const TQStringList & /*args*/);
/**
* Destructor
@@ -68,7 +68,7 @@ protected slots:
void fileSaveAs();
private:
- QMultiLineEdit *m_widget;
+ TQMultiLineEdit *m_widget;
};
#endif // _%{APPNAMEUC}PART_H_
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
index be5d8862..4286053a 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp
@@ -1,11 +1,11 @@
%{CPP_TEMPLATE}
-#include <qdragobject.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qdragobject.h>
-#include <qstatusbar.h>
-#include <qtoolbutton.h>
+#include <tqdragobject.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqdragobject.h>
+#include <tqstatusbar.h>
+#include <tqtoolbutton.h>
#include <kdebug.h>
#include <kglobal.h>
@@ -53,8 +53,8 @@
setStandardMDIMenuEnabled(false);
m_manager = new KParts::PartManager(this);
- connect(m_manager, SIGNAL(activePartChanged(KParts::Part*)),
- this, SLOT(createGUI(KParts::Part*)) );
+ connect(m_manager, TQT_SIGNAL(activePartChanged(KParts::Part*)),
+ this, TQT_SLOT(createGUI(KParts::Part*)) );
#if KDE_IS_VERSION(3, 3, 0)
setToolviewStyle( KMdi::TextAndIcon );
@@ -77,7 +77,7 @@
// and a status bar
statusBar()->show();
- connect( this, SIGNAL( viewActivated( KMdiChildView * ) ), this, SLOT( currentChanged( KMdiChildView * ) ) );
+ connect( this, TQT_SIGNAL( viewActivated( KMdiChildView * ) ), this, TQT_SLOT( currentChanged( KMdiChildView * ) ) );
m_console = new kmdikonsole(this, "konsole");
m_console->setIcon( SmallIcon("konsole") );
@@ -88,11 +88,11 @@
#if KDE_IS_VERSION(3, 3, 0)
if (Settings::showCloseTabsButton())
{
- QToolButton *but = new QToolButton(tabWidget());
+ TQToolButton *but = new TQToolButton(tabWidget());
but->setIconSet(SmallIcon("tab_remove"));
but->adjustSize();
but->hide();
- connect(but, SIGNAL(clicked()), actionCollection()->action( "file_close" ), SIGNAL(activated()));
+ connect(but, TQT_SIGNAL(clicked()), actionCollection()->action( "file_close" ), TQT_SIGNAL(activated()));
tabWidget()->setCornerWidget(but, TopRight);
}
#endif
@@ -124,29 +124,29 @@ void %{APPNAMELC}kmdi::setupActions()
{
setXMLFile("%{APPNAMELC}_shell.rc");
- KStdAction::openNew(this, SLOT(slotFileNew()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(slotFileNew()), actionCollection());
- KStdAction::tipOfDay( this, SLOT( showTip() ), actionCollection()
+ KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection()
)->setWhatsThis(i18n("This shows useful tips on the use of this application."));
- KStdAction::close(this, SLOT(slotFileClose()), actionCollection());
- KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(slotFileClose()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
KAction* action = KStdAction::configureToolbars(this,
- SLOT(optionsConfigureToolbars()), actionCollection());
+ TQT_SLOT(optionsConfigureToolbars()), actionCollection());
createGUI( NULL );
}
void %{APPNAMELC}kmdi::showTip()
{
- KTipDialog::showTip(this,QString::null,true);
+ KTipDialog::showTip(this,TQString::null,true);
}
void %{APPNAMELC}kmdi::showTipOnStart()
@@ -170,8 +170,8 @@ void %{APPNAMELC}kmdi::slotFileNew()
void %{APPNAMELC}kmdi::openURL(const KURL & url)
{
// check if the url is not already opened first
- QValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
- QValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
for (; it != end; ++it)
{
%{APPNAMELC}kmdiView *view = *it;
@@ -283,9 +283,9 @@ void %{APPNAMELC}kmdi::optionsConfigureKeys()
{
//KKeyDialog::configure(actionCollection());
KKeyDialog dlg( false, this );
- QPtrList<KXMLGUIClient> clients = guiFactory()->clients();
+ TQPtrList<KXMLGUIClient> clients = guiFactory()->clients();
- for( QPtrListIterator<KXMLGUIClient> it( clients ); it.current(); ++it )
+ for( TQPtrListIterator<KXMLGUIClient> it( clients ); it.current(); ++it )
dlg.insert ( (*it)->actionCollection(), (*it)->instance()->aboutData()->programName() );
dlg.configure();
@@ -320,15 +320,15 @@ void %{APPNAMELC}kmdi::optionsPreferences()
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged()));
dialog->show();
}
void %{APPNAMELC}kmdi::settingsChanged()
{
// propagate the changes to our views
- /*QValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
- QValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
+ /*TQValueList<%{APPNAMELC}kmdiView*>::iterator it = m_views.begin();
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator end = m_views.end();
for (; it != end; ++it)
{
%{APPNAMELC}kmdiView *view = *it;
@@ -336,19 +336,19 @@ void %{APPNAMELC}kmdi::settingsChanged()
}*/
}
-void %{APPNAMELC}kmdi::changeStatusbar(const QString& text)
+void %{APPNAMELC}kmdi::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAMELC}kmdi::dragEnterEvent(QDragEnterEvent *event)
+void %{APPNAMELC}kmdi::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void %{APPNAMELC}kmdi::dropEvent(QDropEvent *event)
+void %{APPNAMELC}kmdi::dropEvent(TQDropEvent *event)
{
KURL::List urls;
@@ -365,7 +365,7 @@ void %{APPNAMELC}kmdi::dropEvent(QDropEvent *event)
bool %{APPNAMELC}kmdi::queryClose()
{
- QValueList<%{APPNAMELC}kmdiView*>::iterator it;
+ TQValueList<%{APPNAMELC}kmdiView*>::iterator it;
// check if we can close all documents
for (it = m_views.begin(); it != m_views.end(); ++it)
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
index 370a3034..8ff90205 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}KMDI_H
#define _%{APPNAMEUC}KMDI_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kapplication.h>
#include <kmdimainfrm.h>
@@ -37,8 +37,8 @@ class %{APPNAMELC}kmdi : public KMdiMainFrm
void openURL( const KURL& );
protected:
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
virtual bool queryClose();
private slots:
@@ -57,7 +57,7 @@ class %{APPNAMELC}kmdi : public KMdiMainFrm
void newToolbarConfig();
- void changeStatusbar(const QString& text);
+ void changeStatusbar(const TQString& text);
void currentChanged( KMdiChildView *current );
bool requestClose(KMdiChildView* view);
@@ -68,7 +68,7 @@ class %{APPNAMELC}kmdi : public KMdiMainFrm
void setupAccel();
void setupActions();
- QValueList<%{APPNAMELC}kmdiView*> m_views;
+ TQValueList<%{APPNAMELC}kmdiView*> m_views;
KToggleAction *m_toolbarAction;
KToggleAction *m_statusbarAction;
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
index c4cfbf65..d7c00001 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
@@ -1,7 +1,7 @@
%{CPP_TEMPLATE}
-#include <qpixmap.h>
-#include <qlayout.h>
+#include <tqpixmap.h>
+#include <tqlayout.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -13,7 +13,7 @@
#include "%{APPNAMELC}kmdiView.h"
- %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( QWidget *parentWidget, const char *name )
+ %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( TQWidget *parentWidget, const char *name )
: KMdiChildView( parentWidget, name )
{
m_part = NULL;
@@ -35,11 +35,11 @@
part()->widget()->setFocus();
setFocusProxy(part()->widget());
- QBoxLayout* layout = new QHBoxLayout(this, 0, -1, "kdissertviewlayout" );
- part()->widget()->reparent( this, QPoint(0, 0) );
+ TQBoxLayout* layout = new TQHBoxLayout(this, 0, -1, "kdissertviewlayout" );
+ part()->widget()->reparent( this, TQPoint(0, 0) );
layout->addWidget( part()->widget() );
- // connect( m_part, SIGNAL(stateChanged()), this, SLOT(updateCaption()) );
+ // connect( m_part, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(updateCaption()) );
}
else
{
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
index 66e5203b..af05df48 100644
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
+++ b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.h
@@ -16,7 +16,7 @@ class %{APPNAMELC}kmdiView : public KMdiChildView
{
Q_OBJECT
public:
- %{APPNAMELC}kmdiView( QWidget *parentWidget=0L, const char *name=0L );
+ %{APPNAMELC}kmdiView( TQWidget *parentWidget=0L, const char *name=0L );
virtual ~%{APPNAMELC}kmdiView();
KParts::ReadWritePart *part() { return m_part; }
diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
index da41685f..8171c6b8 100644
--- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
+++ b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.cpp
@@ -1,7 +1,7 @@
%{CPP_TEMPLATE}
-#include <qfileinfo.h>
-#include <qframe.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
#include <kparts/part.h>
#include <kate/document.h>
@@ -12,7 +12,7 @@
#include "kmdikonsole.h"
-kmdikonsole::kmdikonsole(QWidget *parent, const char *name) : QVBox(parent, name)
+kmdikonsole::kmdikonsole(TQWidget *parent, const char *name) : TQVBox(parent, name)
{
m_haskonsole = false;
respawn();
@@ -31,17 +31,17 @@ void kmdikonsole::respawn()
if (!m_part) return;
- if (m_part->widget()->inherits("QFrame"))
- ((QFrame*)m_part->widget())->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ if (m_part->widget()->inherits("TQFrame"))
+ ((TQFrame*)m_part->widget())->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
m_haskonsole=true;
- connect( m_part, SIGNAL(destroyed()), this, SLOT(slotDestroyed()) );
+ connect( m_part, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) );
m_part->widget()->show();
show();
}
-void kmdikonsole::setDirectory(const QString &dirname)
+void kmdikonsole::setDirectory(const TQString &dirname)
{
if (m_haskonsole)
{
@@ -51,9 +51,9 @@ void kmdikonsole::setDirectory(const QString &dirname)
}
}
-void kmdikonsole::showEvent(QShowEvent *ev)
+void kmdikonsole::showEvent(TQShowEvent *ev)
{
- QWidget::showEvent(ev);
+ TQWidget::showEvent(ev);
activate();
}
diff --git a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
index 83adb417..ef5a2c1e 100644
--- a/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
+++ b/languages/cpp/app_templates/kscons_kmdi/kmdikonsole.h
@@ -3,18 +3,18 @@
#ifndef KMDIKONSOLE_H
#define KMDIKONSOLE_H
-#include <qvbox.h>
+#include <tqvbox.h>
class kmdikonsole : public QVBox
{
Q_OBJECT
public:
- kmdikonsole( QWidget* parent, const char* name=0);
+ kmdikonsole( TQWidget* parent, const char* name=0);
~kmdikonsole();
public slots:
- void setDirectory(const QString & dir);
+ void setDirectory(const TQString & dir);
void activate();
private slots:
@@ -22,7 +22,7 @@ class kmdikonsole : public QVBox
void respawn();
protected:
- void showEvent(QShowEvent *ev);
+ void showEvent(TQShowEvent *ev);
private:
KParts::ReadOnlyPart *m_part;
diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp
index bc343554..2a696ea0 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/app.cpp
@@ -4,10 +4,10 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kconfigdialog.h>
#include <kglobal.h>
@@ -48,10 +48,10 @@
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
showTipOnStart();
}
@@ -62,22 +62,22 @@
void %{APPNAME}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::tipOfDay( this, SLOT( showTip() ), actionCollection()
+ KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection()
)->setWhatsThis(i18n("This shows useful tips on the use of this application."));
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAME}View
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
createGUI();
@@ -140,17 +140,17 @@ void %{APPNAME}::optionsPreferences()
// to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show();
}
-void %{APPNAME}::changeStatusbar(const QString& text)
+void %{APPNAME}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAME}::changeCaption(const QString& text)
+void %{APPNAME}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
@@ -158,7 +158,7 @@ void %{APPNAME}::changeCaption(const QString& text)
void %{APPNAME}::showTip()
{
- KTipDialog::showTip(this,QString::null,true);
+ KTipDialog::showTip(this,TQString::null,true);
}
void %{APPNAME}::showTipOnStart()
diff --git a/languages/cpp/app_templates/kscons_kxt/app.h b/languages/cpp/app_templates/kscons_kxt/app.h
index 4f855793..e812716d 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.h
+++ b/languages/cpp/app_templates/kscons_kxt/app.h
@@ -53,8 +53,8 @@ private slots:
void newToolbarConfig();
void showTip();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.cpp b/languages/cpp/app_templates/kscons_kxt/appview.cpp
index 7dc99f61..2bcc9c6a 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAME}View::%{APPNAME}View(QWidget *parent)
+%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
: %{APPNAME}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAME}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.h b/languages/cpp/app_templates/kscons_kxt/appview.h
index 86d097a4..96f0845f 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.h
+++ b/languages/cpp/app_templates/kscons_kxt/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
public slots:
void switchColors();
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
index f4418571..efdbf40b 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
@@ -1,8 +1,8 @@
%{CPP_TEMPLATE}
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qcolor.h>
+#include <tqcheckbox.h>
+#include <tqcolor.h>
#include <kapplication.h>
#include <klocale.h>
#include <kpushbutton.h>
@@ -24,7 +24,7 @@ extern "C"
return new %{APPNAME}( id );
}
- QDialog *kss_setup()
+ TQDialog *kss_setup()
{
KGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}Setup();
@@ -33,15 +33,15 @@ extern "C"
//-----------------------------------------------------------------------------
//! dialog to setup screen saver parameters
-%{APPNAME}Setup::%{APPNAME}Setup( QWidget *parent, const char *name )
+%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name )
: %{APPNAME}UI( parent, name, TRUE )
{
/// @todo
//Connect your signals and slots here to configure the screen saver.
- connect( OkayPushButton, SIGNAL( released() ),
- SLOT( slotOkPressed() ) );
- connect( CancelPushButton, SIGNAL( released() ),
- SLOT( slotCancelPressed() ) );
+ connect( OkayPushButton, TQT_SIGNAL( released() ),
+ TQT_SLOT( slotOkPressed() ) );
+ connect( CancelPushButton, TQT_SIGNAL( released() ),
+ TQT_SLOT( slotCancelPressed() ) );
}
@@ -101,7 +101,7 @@ void %{APPNAME}::blank()
{
/// @todo
//Add your code to render the screen.
- setBackgroundColor( QColor(black) );
+ setBackgroundColor( TQColor(black) );
//
erase();
}
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.h b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
index 1301083d..a5d252a5 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.h
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
@@ -21,7 +21,7 @@ class %{APPNAME}Setup : public %{APPNAME}UI
{
Q_OBJECT
public:
- %{APPNAME}Setup( QWidget *parent = NULL, const char *name = NULL );
+ %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL );
private slots:
void slotOkPressed();
diff --git a/languages/cpp/app_templates/kxt/app.cpp b/languages/cpp/app_templates/kxt/app.cpp
index 6e2ce524..ce5577cb 100644
--- a/languages/cpp/app_templates/kxt/app.cpp
+++ b/languages/cpp/app_templates/kxt/app.cpp
@@ -4,10 +4,10 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kconfigdialog.h>
#include <kglobal.h>
@@ -47,10 +47,10 @@
setAutoSaveSettings();
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQT_SLOT(changeCaption(const TQString&)));
}
@@ -60,19 +60,19 @@
void %{APPNAMELC}::setupActions()
{
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAMELC}View
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
createGUI();
@@ -135,17 +135,17 @@ void %{APPNAMELC}::optionsPreferences()
// to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings");
- connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show();
}
-void %{APPNAMELC}::changeStatusbar(const QString& text)
+void %{APPNAMELC}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAMELC}::changeCaption(const QString& text)
+void %{APPNAMELC}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
diff --git a/languages/cpp/app_templates/kxt/app.h b/languages/cpp/app_templates/kxt/app.h
index 22037de2..09f031c4 100644
--- a/languages/cpp/app_templates/kxt/app.h
+++ b/languages/cpp/app_templates/kxt/app.h
@@ -47,8 +47,8 @@ private slots:
void optionsPreferences();
void newToolbarConfig();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kxt/appview.cpp b/languages/cpp/app_templates/kxt/appview.cpp
index 35e23682..30d627fe 100644
--- a/languages/cpp/app_templates/kxt/appview.cpp
+++ b/languages/cpp/app_templates/kxt/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAMELC}View::%{APPNAMELC}View(QWidget *parent)
+%{APPNAMELC}View::%{APPNAMELC}View(TQWidget *parent)
: %{APPNAMELC}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAMELC}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kxt/appview.h b/languages/cpp/app_templates/kxt/appview.h
index 45a10de7..5b69ae24 100644
--- a/languages/cpp/app_templates/kxt/appview.h
+++ b/languages/cpp/app_templates/kxt/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAMELC}View(QWidget *parent);
+ %{APPNAMELC}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
private slots:
void switchColors();
diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.cpp b/languages/cpp/app_templates/noatunui/plugin_impl.cpp
index 1b5eea45..7f4cda15 100644
--- a/languages/cpp/app_templates/noatunui/plugin_impl.cpp
+++ b/languages/cpp/app_templates/noatunui/plugin_impl.cpp
@@ -9,12 +9,12 @@
#include <noatun/controls.h>
#include <noatun/effects.h>
-#include <qpushbutton.h>
-#include <qdragobject.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qobjectlist.h>
-#include <qobjectdict.h>
+#include <tqpushbutton.h>
+#include <tqdragobject.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqobjectlist.h>
+#include <tqobjectdict.h>
#include <kpopupmenu.h>
#include <kstatusbar.h>
@@ -25,53 +25,53 @@
//#include <kfiledialog.h>
//#include <kconfig.h>
-%{APPNAME}UI::%{APPNAME}UI() : QWidget(0,"%{APPNAME}UI"), UserInterface()
+%{APPNAME}UI::%{APPNAME}UI() : TQWidget(0,"%{APPNAME}UI"), UserInterface()
{
setAcceptDrops(true);
static const int buttonSize=32;
- mBack=new QPushButton(this);
+ mBack=new TQPushButton(this);
mBack->setFixedSize(buttonSize,buttonSize);
mBack->setPixmap(BarIcon("noatunback"));
- connect(mBack, SIGNAL(clicked()), napp->player(), SLOT(back()));
- QToolTip::add(mBack,i18n("Back"));
+ connect(mBack, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()));
+ TQToolTip::add(mBack,i18n("Back"));
- mStop=new QPushButton(this);
+ mStop=new TQPushButton(this);
mStop->setFixedSize(buttonSize,buttonSize);
mStop->setPixmap(BarIcon("noatunstop"));
- connect(mStop, SIGNAL(clicked()), napp->player(), SLOT(stop()));
- QToolTip::add(mStop, i18n("Stop"));
+ connect(mStop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()));
+ TQToolTip::add(mStop, i18n("Stop"));
- mPlay=new QPushButton(this);
+ mPlay=new TQPushButton(this);
mPlay->setToggleButton(true);
mPlay->setFixedSize(buttonSize,buttonSize);
mPlay->setPixmap(BarIcon("noatunplay"));
- connect(mPlay, SIGNAL(clicked()), napp->player(), SLOT(playpause()));
- QToolTip::add(mPlay, i18n("Play"));
+ connect(mPlay, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()));
+ TQToolTip::add(mPlay, i18n("Play"));
- mForward=new QPushButton(this);
+ mForward=new TQPushButton(this);
mForward->setFixedSize(buttonSize,buttonSize);
mForward->setPixmap(BarIcon("noatunforward"));
- connect(mForward, SIGNAL(clicked()), napp->player(), SLOT(forward()));
- QToolTip::add(mForward, i18n("Forward"));
+ connect(mForward, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()));
+ TQToolTip::add(mForward, i18n("Forward"));
- mPlaylist=new QPushButton(this);
+ mPlaylist=new TQPushButton(this);
mPlaylist->setToggleButton(true);
mPlaylist->setFixedSize(buttonSize,buttonSize);
mPlaylist->setPixmap(BarIcon("noatunplaylist"));
- connect(mPlaylist, SIGNAL(clicked()), napp->player(), SLOT(toggleListView()));
- QToolTip::add(mPlaylist, i18n("Playlist"));
+ connect(mPlaylist, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()));
+ TQToolTip::add(mPlaylist, i18n("Playlist"));
- mLoop=new QPushButton(this);
+ mLoop=new TQPushButton(this);
mLoop->setFixedSize(buttonSize,buttonSize);
mLoop->setPixmap(BarIcon("noatunloopnone"));
- connect(mLoop, SIGNAL(clicked()), napp->player(), SLOT(loop()));
- QToolTip::add(mLoop, i18n("Change loop style"));
+ connect(mLoop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(loop()));
+ TQToolTip::add(mLoop, i18n("Change loop style"));
- mPopup=new QPushButton(this);
+ mPopup=new TQPushButton(this);
mPopup->setFixedSize(buttonSize,buttonSize);
mPopup->setPixmap(BarIcon("noatun"));
- connect(mPopup, SIGNAL(clicked()), SLOT(popup()));
+ connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup()));
mVolume=new L33tSlider(0,100,10,0, Horizontal, this);
@@ -81,7 +81,7 @@
mStatusBar=new KStatusBar(this);
- QGridLayout *l=new QGridLayout(this);
+ TQGridLayout *l=new TQGridLayout(this);
l->addWidget(mBack,0,0);
l->addWidget(mStop,0,1);
l->addWidget(mPlay,0,2);
@@ -98,33 +98,33 @@
statusBar()->message(i18n("No File Loaded"));
statusBar()->insertItem("--:--/--:--", 1, 0, true);
- connect(napp, SIGNAL(hideYourself()), this, SLOT(hide()) );
- connect(napp, SIGNAL(showYourself()), this, SLOT(show()) );
+ connect(napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
+ connect(napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
- connect(napp->player(), SIGNAL(playing()), this, SLOT(slotPlaying()));
- connect(napp->player(), SIGNAL(stopped()), this, SLOT(slotStopped()));
- connect(napp->player(), SIGNAL(paused()), this, SLOT(slotPaused()));
+ connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
+ connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
+ connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
napp->player()->handleButtons();
- connect(napp->player(), SIGNAL(timeout()), this, SLOT(slotTimeout()));
- connect(napp->player(), SIGNAL(loopTypeChange(int)), this, SLOT(changeLoopType(int)));
+ connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
+ connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(changeLoopType(int)));
/* This skipToWrapper is needed to pass milliseconds to Player() as everybody
* below the GUI is based on milliseconds instead of some unprecise thingy
* like seconds or mille */
- connect(seeker(), SIGNAL(userChanged(int)), this, SLOT(skipToWrapper(int)));
- connect(this, SIGNAL(skipTo(int)), napp->player(), SLOT(skipTo(int)));
- connect(seeker(), SIGNAL(sliderMoved(int)), SLOT(sliderMoved(int)));
+ connect(seeker(), TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
+ connect(this, TQT_SIGNAL(skipTo(int)), napp->player(), TQT_SLOT(skipTo(int)));
+ connect(seeker(), TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(sliderMoved(int)));
- connect(mVolume, SIGNAL(sliderMoved(int)), napp->player(), SLOT(setVolume(int)));
- connect(mVolume, SIGNAL(userChanged(int)), napp->player(), SLOT(setVolume(int)));
+ connect(mVolume, TQT_SIGNAL(sliderMoved(int)), napp->player(), TQT_SLOT(setVolume(int)));
+ connect(mVolume, TQT_SIGNAL(userChanged(int)), napp->player(), TQT_SLOT(setVolume(int)));
- connect(napp->player(), SIGNAL(playlistShown()), SLOT(playlistShown()));
- connect(napp->player(), SIGNAL(playlistHidden()), SLOT(playlistHidden()));
+ connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(playlistShown()));
+ connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(playlistHidden()));
// Event Filter for the RMB
- for (QPtrListIterator<QObject> i(*children()); i.current(); ++i)
+ for (TQPtrListIterator<TQObject> i(*children()); i.current(); ++i)
(*i)->installEventFilter(this);
setCaption("Noatun");
@@ -140,23 +140,23 @@
/** save settings here */
}
-void %{APPNAME}UI::closeEvent(QCloseEvent*)
+void %{APPNAME}UI::closeEvent(TQCloseEvent*)
{
unload();
}
-void %{APPNAME}UI::showEvent(QShowEvent*e)
+void %{APPNAME}UI::showEvent(TQShowEvent*e)
{
- QWidget::showEvent(e);
+ TQWidget::showEvent(e);
}
-void %{APPNAME}UI::dragEnterEvent(QDragEnterEvent *event)
+void %{APPNAME}UI::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void %{APPNAME}UI::dropEvent(QDropEvent *event)
+void %{APPNAME}UI::dropEvent(TQDropEvent *event)
{
KURL::List uri;
if (KURLDrag::decode(event, uri))
@@ -166,14 +166,14 @@ void %{APPNAME}UI::dropEvent(QDropEvent *event)
}
}
-void %{APPNAME}UI::mouseReleaseEvent(QMouseEvent *e)
+void %{APPNAME}UI::mouseReleaseEvent(TQMouseEvent *e)
{
- QWidget::mouseReleaseEvent(e);
+ TQWidget::mouseReleaseEvent(e);
if (e->button()!=RightButton) return;
NoatunStdAction::ContextMenu::showContextMenu();
}
-void %{APPNAME}UI::changeStatusbar(const QString& text, const QString &text2)
+void %{APPNAME}UI::changeStatusbar(const TQString& text, const TQString &text2)
{
if (!text2.isNull())
statusBar()->changeItem(text2, 1);
@@ -181,7 +181,7 @@ void %{APPNAME}UI::changeStatusbar(const QString& text, const QString &text2)
statusBar()->message(!text.isNull() ? text : napp->player()->current().title());
}
-void %{APPNAME}UI::changeCaption(const QString& text)
+void %{APPNAME}UI::changeCaption(const TQString& text)
{
setCaption(text);
}
@@ -265,21 +265,21 @@ void %{APPNAME}UI::changeLoopType(int t)
}
}
-bool %{APPNAME}UI::eventFilter(QObject *o, QEvent *e)
+bool %{APPNAME}UI::eventFilter(TQObject *o, TQEvent *e)
{
- if ((e->type() == QEvent::MouseButtonRelease)
- && ((static_cast<QMouseEvent*>(e))->button()==RightButton))
+ if ((e->type() == TQEvent::MouseButtonRelease)
+ && ((static_cast<TQMouseEvent*>(e))->button()==RightButton))
{
- mouseReleaseEvent(static_cast<QMouseEvent*>(e));
+ mouseReleaseEvent(static_cast<TQMouseEvent*>(e));
return true;
}
- if (e->type() == QEvent::Wheel)
+ if (e->type() == TQEvent::Wheel)
{
- wheelEvent(static_cast<QWheelEvent*>(e));
+ wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
}
- return QWidget::eventFilter(o, e);
+ return TQWidget::eventFilter(o, e);
}
void %{APPNAME}UI::playlistShown()
@@ -292,7 +292,7 @@ void %{APPNAME}UI::playlistHidden()
mPlaylist->setOn(false);
}
-void %{APPNAME}UI::wheelEvent(QWheelEvent *e)
+void %{APPNAME}UI::wheelEvent(TQWheelEvent *e)
{
int delta=e->delta();
mVolume->setValue(mVolume->value()+(delta/120));
diff --git a/languages/cpp/app_templates/noatunui/plugin_impl.h b/languages/cpp/app_templates/noatunui/plugin_impl.h
index 970246d4..e918f925 100644
--- a/languages/cpp/app_templates/noatunui/plugin_impl.h
+++ b/languages/cpp/app_templates/noatunui/plugin_impl.h
@@ -23,27 +23,27 @@ class KStatusBar;
* @version 0.1
* Note: You can user _every_ widget for implementing your userinterface.
*/
-class %{APPNAME}UI : public QWidget, public UserInterface
+class %{APPNAME}UI : public TQWidget, public UserInterface
{
Q_OBJECT
public:
%{APPNAME}UI();
virtual ~%{APPNAME}UI();
- void load(const QString& url);
+ void load(const TQString& url);
protected:
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
- virtual void closeEvent(QCloseEvent*);
- virtual void showEvent(QShowEvent*e);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
+ virtual void closeEvent(TQCloseEvent*);
+ virtual void showEvent(TQShowEvent*e);
/** RMB -> context menu */
- virtual void mouseReleaseEvent(QMouseEvent *);
- virtual bool eventFilter(QObject*, QEvent*);
+ virtual void mouseReleaseEvent(TQMouseEvent *);
+ virtual bool eventFilter(TQObject*, TQEvent*);
/** volume control */
- virtual void wheelEvent(QWheelEvent *e);
+ virtual void wheelEvent(TQWheelEvent *e);
protected:
- QSlider *seeker() const { return mSeeker; }
+ TQSlider *seeker() const { return mSeeker; }
KStatusBar *statusBar() const { return mStatusBar; }
public slots:
@@ -64,13 +64,13 @@ signals:
void skipTo( int ); // emitted by skipToWrapper()
private slots:
- void changeStatusbar(const QString& text, const QString &text2=0);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text, const TQString &text2=0);
+ void changeCaption(const TQString& text);
void popup();
private:
- QPushButton *mBack, *mStop, *mPlay, *mForward, *mPlaylist, *mPopup, *mLoop;
- QSlider *mSeeker, *mVolume;
+ TQPushButton *mBack, *mStop, *mPlay, *mForward, *mPlaylist, *mPopup, *mLoop;
+ TQSlider *mSeeker, *mVolume;
KStatusBar *mStatusBar;
};
diff --git a/languages/cpp/app_templates/opieapp/example.cpp b/languages/cpp/app_templates/opieapp/example.cpp
index 84f3f9d5..ebb4233c 100644
--- a/languages/cpp/app_templates/opieapp/example.cpp
+++ b/languages/cpp/app_templates/opieapp/example.cpp
@@ -1,5 +1,5 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <opie/oapplicationfactory.h>
typedef OApplicationFactory<%{APPNAME}> %{APPNAME}Factory;
@@ -9,10 +9,10 @@ OPIE_EXPORT_APP( %{APPNAME}Factory )
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl )
+%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
: %{APPNAME}Base( parent, name, fl )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/opieapp/example.h b/languages/cpp/app_templates/opieapp/example.h
index 1ba8ead7..2a9c9efa 100644
--- a/languages/cpp/app_templates/opieapp/example.h
+++ b/languages/cpp/app_templates/opieapp/example.h
@@ -7,10 +7,10 @@ class %{APPNAME} : public %{APPNAME}Base
Q_OBJECT
public:
- static QString appName() {
- return QString::fromLatin1("%{APPNAMELC}" );
+ static TQString appName() {
+ return TQString::fromLatin1("%{APPNAMELC}" );
}
- %{APPNAME}( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/opieapplet/simpleimpl.cpp b/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
index 1474a0e4..3264314c 100644
--- a/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opieapplet/simpleimpl.cpp
@@ -1,6 +1,6 @@
-#include <qlabel.h>
-#include <qpainter.h>
-#include <qmessagebox.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqmessagebox.h>
#include <qpe/applnk.h> // for AppLnk
#include <qpe/resource.h> // for Resource loading
@@ -8,8 +8,8 @@
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(QWidget *parent)
- : QWidget( parent, "%{APPNAME} Applet" ) {
+%{APPNAME}::%{APPNAME}(TQWidget *parent)
+ : TQWidget( parent, "%{APPNAME} Applet" ) {
/*
* we will load an Image, scale it for the right usage
* remember your applet might be used by different
@@ -19,7 +19,7 @@
* the only class that allows scaling.
*/
- QImage image = Resource::loadImage("%{APPNAMELC}/%{APPNAMELC}");
+ TQImage image = Resource::loadImage("%{APPNAMELC}/%{APPNAMELC}");
/*
* smooth scale to AppLnk smallIconSize for applest
* smallIconSize gets adjusted to the resolution
@@ -32,7 +32,7 @@
* now we need to convert the Image to a Pixmap cause these
* can be drawn more easily
*/
- m_pix = new QPixmap();
+ m_pix = new TQPixmap();
m_pix->convertFromImage( image );
/*
@@ -56,15 +56,15 @@
* global with mapToGlobal(). Then you might also need to
* move the widgets so it is visible
*/
-void %{APPNAME}::mousePressEvent(QMouseEvent* ) {
- QMessageBox::information(this, tr("No action taken"),
+void %{APPNAME}::mousePressEvent(TQMouseEvent* ) {
+ TQMessageBox::information(this, tr("No action taken"),
tr("<qt>This Plugin does not yet support anything usefule aye.</qt>"),
- QMessageBox::Ok );
+ TQMessageBox::Ok );
}
-void %{APPNAME}::paintEvent( QPaintEvent* ) {
- QPainter p(this);
+void %{APPNAME}::paintEvent( TQPaintEvent* ) {
+ TQPainter p(this);
/* simpy draw the pixmap from the start of this widget */
p.drawPixmap(0, 0, *m_pix );
@@ -89,7 +89,7 @@ void %{APPNAME}::paintEvent( QPaintEvent* ) {
/*
* For the taskbar interface return a Widget
*/
-QWidget* %{APPNAME}Impl::applet( QWidget* parent ) {
+TQWidget* %{APPNAME}Impl::applet( TQWidget* parent ) {
/*
* There are problems with ownership. So we add
* our ownlist and clear this;
diff --git a/languages/cpp/app_templates/opieapplet/simpleimpl.h b/languages/cpp/app_templates/opieapplet/simpleimpl.h
index 19475367..7cca8ee7 100644
--- a/languages/cpp/app_templates/opieapplet/simpleimpl.h
+++ b/languages/cpp/app_templates/opieapplet/simpleimpl.h
@@ -26,8 +26,8 @@
* luckiy there is a macro for the reference counting
* We provide an Implementation of the interface.
*/
-#include <qwidget.h>
-#include <qptrlist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
#include <qpe/taskbarappletinterface.h>
@@ -35,18 +35,18 @@
/*
* Because we only draw an Icon in a fixed width and height
* we declare and define %{APPNAME} here and you could use QLabel
- * setPixmap or use QWidget and draw yourself.
+ * setPixmap or use TQWidget and draw yourself.
* You might also want to reimplement mouse*Event to use some simple actions
*/
-class %{APPNAME} : public QWidget {
+class %{APPNAME} : public TQWidget {
Q_OBJECT
public:
- %{APPNAME}(QWidget *parent);
+ %{APPNAME}(TQWidget *parent);
~%{APPNAME}();
private:
- void mousePressEvent( QMouseEvent* );
- void paintEvent( QPaintEvent* );
- QPixmap *m_pix;
+ void mousePressEvent( TQMouseEvent* );
+ void paintEvent( TQPaintEvent* );
+ TQPixmap *m_pix;
};
class %{APPNAME}Impl : public TaskbarAppletInterface {
@@ -57,7 +57,7 @@ public:
QRESULT queryInterface( const QUuid&, QUnknownInterface** );
- QWidget *applet( QWidget* parent );
+ TQWidget *applet( TQWidget* parent );
int position()const;
/*
diff --git a/languages/cpp/app_templates/opieinput/simpleimpl.cpp b/languages/cpp/app_templates/opieinput/simpleimpl.cpp
index 6da986eb..db2e4285 100644
--- a/languages/cpp/app_templates/opieinput/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opieinput/simpleimpl.cpp
@@ -1,43 +1,43 @@
-#include <qwidget.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qsignalmapper.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqsignalmapper.h>
+#include <tqpushbutton.h>
#include <qpe/resource.h>
#include "%{APPNAMELC}.h"
-%{APPNAME}::%{APPNAME}(QWidget* par, WFlags fl )
- : QHBox(par, "name", fl )
+%{APPNAME}::%{APPNAME}(TQWidget* par, WFlags fl )
+ : TQHBox(par, "name", fl )
{
- QCheckBox *box1 = new QCheckBox(tr("Alt"),this);
- connect(box1,SIGNAL(toggled(bool)),
- this,SLOT(slotAlt(bool)));
+ TQCheckBox *box1 = new TQCheckBox(tr("Alt"),this);
+ connect(box1,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(slotAlt(bool)));
m_alt = box1;
- box1 = new QCheckBox(tr("Shift"),this );
- connect(box1,SIGNAL(toggled(bool)),
- this,SLOT(slotShift(bool)));
+ box1 = new TQCheckBox(tr("Shift"),this );
+ connect(box1,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(slotShift(bool)));
m_shi = box1;
- box1 = new QCheckBox(tr("Ctrl","Control Shortcut on keyboard"),this );
- connect(box1,SIGNAL(toggled(bool)),
- this,SLOT(slotCtrl(bool)));
+ box1 = new TQCheckBox(tr("Ctrl","Control Shortcut on keyboard"),this );
+ connect(box1,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(slotCtrl(bool)));
m_ctrl = box1;
- QSignalMapper *map = new QSignalMapper(this);
- QPushButton *btn = new QPushButton("a",this);
+ TQSignalMapper *map = new TQSignalMapper(this);
+ TQPushButton *btn = new TQPushButton("a",this);
map->setMapping(btn,0);
- connect(btn,SIGNAL(clicked()),map,SLOT(map()));
+ connect(btn,TQT_SIGNAL(clicked()),map,TQT_SLOT(map()));
- btn = new QPushButton("b",this);
+ btn = new TQPushButton("b",this);
map->setMapping(btn,1);
- connect(btn,SIGNAL(clicked()),map,SLOT(map()));
+ connect(btn,TQT_SIGNAL(clicked()),map,TQT_SLOT(map()));
- btn = new QPushButton("c",this);
+ btn = new TQPushButton("c",this);
map->setMapping(btn,2);
- connect(btn,SIGNAL(clicked()),map,SLOT(map()));
+ connect(btn,TQT_SIGNAL(clicked()),map,TQT_SLOT(map()));
- connect(map,SIGNAL(mapped(int)),
- this,SLOT(slotKey(int)));
+ connect(map,TQT_SIGNAL(mapped(int)),
+ this,TQT_SLOT(slotKey(int)));
resetState();
}
@@ -102,7 +102,7 @@ void %{APPNAME}::slotCtrl(bool b){
delete m_icn;
}
-QWidget *%{APPNAME}Impl::inputMethod( QWidget *parent, Qt::WFlags f )
+TQWidget *%{APPNAME}Impl::inputMethod( TQWidget *parent, Qt::WFlags f )
{
if ( !m_pickboard )
m_pickboard = new %{APPNAME}( parent, f );
@@ -115,22 +115,22 @@ void %{APPNAME}Impl::resetState()
m_pickboard->resetState();
}
-QPixmap *%{APPNAME}Impl::icon()
+TQPixmap *%{APPNAME}Impl::icon()
{
if ( !m_icn )
- m_icn = new QPixmap(Resource::loadPixmap("Tux"));
+ m_icn = new TQPixmap(Resource::loadPixmap("Tux"));
return m_icn;
}
-QString %{APPNAME}Impl::name()
+TQString %{APPNAME}Impl::name()
{
- return QObject::tr("Example Input");
+ return TQObject::tr("Example Input");
}
-void %{APPNAME}Impl::onKeyPress( QObject *receiver, const char *slot )
+void %{APPNAME}Impl::onKeyPress( TQObject *receiver, const char *slot )
{
if ( m_pickboard )
- QObject::connect( m_pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
+ TQObject::connect( m_pickboard, TQT_SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot );
}
#ifndef QT_NO_COMPONENT
diff --git a/languages/cpp/app_templates/opieinput/simpleimpl.h b/languages/cpp/app_templates/opieinput/simpleimpl.h
index 362e59b3..17972b29 100644
--- a/languages/cpp/app_templates/opieinput/simpleimpl.h
+++ b/languages/cpp/app_templates/opieinput/simpleimpl.h
@@ -1,16 +1,16 @@
#ifndef %{APPNAME}IMPL_H
#define %{APPNAME}IMPL_H
-#include <qhbox.h>
+#include <tqhbox.h>
#include <qpe/inputmethodinterface.h>
class QPixmap;
class QCheckBox;
-class %{APPNAME} : public QHBox {
+class %{APPNAME} : public TQHBox {
Q_OBJECT
public:
- %{APPNAME}( QWidget *par, WFlags f );
+ %{APPNAME}( TQWidget *par, WFlags f );
~%{APPNAME}();
void resetState();
private slots:
@@ -22,7 +22,7 @@ signals:
void key(ushort,ushort,ushort,bool,bool);
private:
int m_state;
- QCheckBox *m_alt,*m_shi,*m_ctrl;
+ TQCheckBox *m_alt,*m_shi,*m_ctrl;
};
class %{APPNAME}Impl : public InputMethodInterface
@@ -36,15 +36,15 @@ public:
Q_REFCOUNT
#endif
- virtual QWidget *inputMethod( QWidget *parent, Qt::WFlags f );
+ virtual TQWidget *inputMethod( TQWidget *parent, Qt::WFlags f );
virtual void resetState();
- virtual QPixmap *icon();
- virtual QString name();
- virtual void onKeyPress( QObject *receiver, const char *slot );
+ virtual TQPixmap *icon();
+ virtual TQString name();
+ virtual void onKeyPress( TQObject *receiver, const char *slot );
private:
%{APPNAME} *m_pickboard;
- QPixmap *m_icn;
+ TQPixmap *m_icn;
};
#endif
diff --git a/languages/cpp/app_templates/opiemenu/simpleimpl.cpp b/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
index 95245661..17b59a3e 100644
--- a/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
+++ b/languages/cpp/app_templates/opiemenu/simpleimpl.cpp
@@ -4,13 +4,13 @@
#include <qpe/resource.h>
/* QT */
-#include <qiconset.h>
-#include <qpopupmenu.h>
-#include <qmessagebox.h>
+#include <tqiconset.h>
+#include <tqpopupmenu.h>
+#include <tqmessagebox.h>
%{APPNAME}::%{APPNAME}()
- :QObject( 0, "%{APPNAME}" )
+ :TQObject( 0, "%{APPNAME}" )
{
}
@@ -22,27 +22,27 @@ int %{APPNAME}::position() const
return 3;
}
-QString %{APPNAME}::name() const
+TQString %{APPNAME}::name() const
{
return tr( "MenuApplet Example Name" );
}
-QString %{APPNAME}::text() const
+TQString %{APPNAME}::text() const
{
return tr( "Click the white rabbit" );
}
-QIconSet %{APPNAME}::icon() const
+TQIconSet %{APPNAME}::icon() const
{
- QPixmap pix;
- QImage img = Resource::loadImage( "Tux" );
+ TQPixmap pix;
+ TQImage img = Resource::loadImage( "Tux" );
if ( !img.isNull() )
pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
return pix;
}
-QPopupMenu* %{APPNAME}::popup(QWidget*) const
+TQPopupMenu* %{APPNAME}::popup(TQWidget*) const
{
/* no subdir */
return 0;
@@ -50,7 +50,7 @@ QPopupMenu* %{APPNAME}::popup(QWidget*) const
void %{APPNAME}::activated()
{
- QMessageBox::information(0,tr("No white rabbit found"),
+ TQMessageBox::information(0,tr("No white rabbit found"),
tr("<qt>No white rabbit was seen near Opie."
"Only the beautiful OpieZilla is available"
"for your pleassure</qt>"));
diff --git a/languages/cpp/app_templates/opiemenu/simpleimpl.h b/languages/cpp/app_templates/opiemenu/simpleimpl.h
index 3961e3c4..b384ee2d 100644
--- a/languages/cpp/app_templates/opiemenu/simpleimpl.h
+++ b/languages/cpp/app_templates/opiemenu/simpleimpl.h
@@ -3,9 +3,9 @@
#include <qpe/menuappletinterface.h>
-#include <qobject.h>
+#include <tqobject.h>
-class %{APPNAME} : public QObject, public MenuAppletInterface
+class %{APPNAME} : public TQObject, public MenuAppletInterface
{
Q_OBJECT
@@ -19,13 +19,13 @@ public:
virtual int position() const;
- virtual QString name ( ) const;
- virtual QIconSet icon ( ) const;
- virtual QString text ( ) const;
- /* virtual QString tr( const char* ) const;
- virtual QString tr( const char*, const char* ) const;
+ virtual TQString name ( ) const;
+ virtual TQIconSet icon ( ) const;
+ virtual TQString text ( ) const;
+ /* virtual TQString tr( const char* ) const;
+ virtual TQString tr( const char*, const char* ) const;
*/
- virtual QPopupMenu *popup ( QWidget *parent ) const;
+ virtual TQPopupMenu *popup ( TQWidget *parent ) const;
virtual void activated ( );
};
diff --git a/languages/cpp/app_templates/opienet/simmplemodule.h b/languages/cpp/app_templates/opienet/simmplemodule.h
index 9158a7c8..7a8882b4 100644
--- a/languages/cpp/app_templates/opienet/simmplemodule.h
+++ b/languages/cpp/app_templates/opienet/simmplemodule.h
@@ -12,17 +12,17 @@ public:
VirtualModule();
~VirtualModule();
- const QString type() {return QString::fromLatin1("vpn" );}
- void setProfile( const QString& ) {}
+ const TQString type() {return TQString::fromLatin1("vpn" );}
+ void setProfile( const TQString& ) {}
bool isOwner( Interface* );
- QWidget *configure( Interface* );
- QWidget *information( Interface* );
+ TQWidget *configure( Interface* );
+ TQWidget *information( Interface* );
QList<Interface> getInterfaces();
- void possibleNewInterfaces( QMap<QString, QString>& );
- Interface *addNewInterface( const QString& );
+ void possibleNewInterfaces( TQMap<TQString, TQString>& );
+ Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); }
- void receive( const QCString&, const QByteArray& ar ) {} // don't listen
+ TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
QList<Interface> m_interfaces;
};
diff --git a/languages/cpp/app_templates/opienet/simpleiface.cpp b/languages/cpp/app_templates/opienet/simpleiface.cpp
index 9182a2f9..bbabcbda 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.cpp
+++ b/languages/cpp/app_templates/opienet/simpleiface.cpp
@@ -1,6 +1,6 @@
#include "%{APPNAMELC}iface.h"
-%{APPNAME}Interface::%{APPNAME}Interface( QObject* parent,
+%{APPNAME}Interface::%{APPNAME}Interface( TQObject* parent,
const char* name,
bool status )
: Interface(parent, name, status )
@@ -16,7 +16,7 @@ bool %{APPNAME}Interface::refresh() {
* something actual existing
* I take wlan0 in my case
*/
- QString old = getInterfaceName();
+ TQString old = getInterfaceName();
qWarning("Interface name was " + old );
setInterfaceName( "wlan0" );
diff --git a/languages/cpp/app_templates/opienet/simpleiface.h b/languages/cpp/app_templates/opienet/simpleiface.h
index f235c160..ef514697 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.h
+++ b/languages/cpp/app_templates/opienet/simpleiface.h
@@ -7,7 +7,7 @@ class %{APPNAME}Interface : public Interface {
Q_OBJECT
public:
- %{APPNAME}Interface(QObject* parent, const char* name = "vpn", bool up = false );
+ %{APPNAME}Interface(TQObject* parent, const char* name = "vpn", bool up = false );
~%{APPNAME}Interface();
public slots:
diff --git a/languages/cpp/app_templates/opienet/simplemodule.cpp b/languages/cpp/app_templates/opienet/simplemodule.cpp
index a67974a8..0a96c844 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.cpp
+++ b/languages/cpp/app_templates/opienet/simplemodule.cpp
@@ -1,4 +1,4 @@
-#include <qwidget.h>
+#include <tqwidget.h>
#include <interfaces/interfaceinformationimp.h>
@@ -32,12 +32,12 @@ bool %{APPNAME}Module::isOwner( Interface* iface ) {
return m_interfaces.find( iface ) != -1;
}
-QWidget* %{APPNAME}Module::configure( Interface* ) {
+TQWidget* %{APPNAME}Module::configure( Interface* ) {
/* We don't have any Config for now */
return 0l;
}
-QWidget* %{APPNAME}Module::information( Interface* iface ) {
+TQWidget* %{APPNAME}Module::information( Interface* iface ) {
return new InterfaceInformationImp(0, "Interface info", iface );
}
@@ -45,13 +45,13 @@ QList<Interface> %{APPNAME}Module::getInterfaces() {
return m_interfaces;
}
-void %{APPNAME}Module::possibleNewInterfaces( QMap<QString, QString>& map) {
- map.insert( QObject::tr("VPN PPTP"),
- QObject::tr("Add new Point to Point Tunnel Protocol connection" ) );
+void %{APPNAME}Module::possibleNewInterfaces( TQMap<TQString, TQString>& map) {
+ map.insert( TQObject::tr("VPN PPTP"),
+ TQObject::tr("Add new Point to Point Tunnel Protocol connection" ) );
}
-Interface* %{APPNAME}Module::addNewInterface( const QString& ) {
+Interface* %{APPNAME}Module::addNewInterface( const TQString& ) {
/* check the str if we support more interfaces */
/*
Interface* iface = new %{APPNAME}Interface( 0 );
diff --git a/languages/cpp/app_templates/opienet/simplemodule.h b/languages/cpp/app_templates/opienet/simplemodule.h
index 1b02b688..4120d811 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.h
+++ b/languages/cpp/app_templates/opienet/simplemodule.h
@@ -12,17 +12,17 @@ public:
%{APPNAME}Module();
~%{APPNAME}Module();
- const QString type() {return QString::fromLatin1("vpn" );}
- void setProfile( const QString& ) {}
+ const TQString type() {return TQString::fromLatin1("vpn" );}
+ void setProfile( const TQString& ) {}
bool isOwner( Interface* );
- QWidget *configure( Interface* );
- QWidget *information( Interface* );
+ TQWidget *configure( Interface* );
+ TQWidget *information( Interface* );
QList<Interface> getInterfaces();
- void possibleNewInterfaces( QMap<QString, QString>& );
- Interface *addNewInterface( const QString& );
+ void possibleNewInterfaces( TQMap<TQString, TQString>& );
+ Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); }
- void receive( const QCString&, const QByteArray& ar ) {} // don't listen
+ TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
QList<Interface> m_interfaces;
};
diff --git a/languages/cpp/app_templates/opietoday/exampleplugin.cpp b/languages/cpp/app_templates/opietoday/exampleplugin.cpp
index 3d32b274..c7df8069 100644
--- a/languages/cpp/app_templates/opietoday/exampleplugin.cpp
+++ b/languages/cpp/app_templates/opietoday/exampleplugin.cpp
@@ -9,8 +9,8 @@
delete (%{APPNAME}Widget*)m_widget;
}
-QString %{APPNAME}::pluginName() const {
- return QObject::tr( "%{APPNAME}" );
+TQString %{APPNAME}::pluginName() const {
+ return TQObject::tr( "%{APPNAME}" );
}
double %{APPNAME}::versionNumber() const {
@@ -18,11 +18,11 @@ double %{APPNAME}::versionNumber() const {
}
// this sets the image that will be shown on the left side of the plugin
-QString %{APPNAME}::pixmapNameWidget() const {
- return QString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}");
+TQString %{APPNAME}::pixmapNameWidget() const {
+ return TQString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}");
}
-QWidget* %{APPNAME}::widget( QWidget * wid ) {
+TQWidget* %{APPNAME}::widget( TQWidget * wid ) {
if(!m_widget) {
m_widget = new %{APPNAME}Widget( wid, "%{APPNAME}" );
}
@@ -31,18 +31,18 @@ QWidget* %{APPNAME}::widget( QWidget * wid ) {
// that would be the icon of the config widget in todays config view
-QString %{APPNAME}::pixmapNameConfig() const {
+TQString %{APPNAME}::pixmapNameConfig() const {
return 0l;
}
// No config widget yet, look at the datebook plugin for an example of that
-TodayConfigWidget* %{APPNAME}::configWidget( QWidget* /*parent*/ ) {
+TodayConfigWidget* %{APPNAME}::configWidget( TQWidget* /*parent*/ ) {
return 0l;
}
// add the binary name of the app to launch here
-QString %{APPNAME}::appName() const {
- return QString::null;
+TQString %{APPNAME}::appName() const {
+ return TQString::null;
}
// if the plugin should be excluded form the refresh cycles that can be set in the today app
diff --git a/languages/cpp/app_templates/opietoday/exampleplugin.h b/languages/cpp/app_templates/opietoday/exampleplugin.h
index b321f434..ebd44ba5 100644
--- a/languages/cpp/app_templates/opietoday/exampleplugin.h
+++ b/languages/cpp/app_templates/opietoday/exampleplugin.h
@@ -1,8 +1,8 @@
#ifndef %{APPNAME}_PLUGIN_H
#define %{APPNAME}_PLUGIN_H
-#include <qwidget.h>
-#include <qguardedptr.h>
+#include <tqwidget.h>
+#include <tqguardedptr.h>
#include <opie/todayplugininterface.h>
#include <opie/todayconfigwidget.h>
@@ -16,19 +16,19 @@ public:
%{APPNAME}();
~%{APPNAME}();
- QString pluginName() const;
+ TQString pluginName() const;
double versionNumber() const;
- QString pixmapNameWidget() const;
- QWidget* widget(QWidget *);
- QString pixmapNameConfig() const;
- TodayConfigWidget* configWidget(QWidget *);
- QString appName() const;
+ TQString pixmapNameWidget() const;
+ TQWidget* widget(TQWidget *);
+ TQString pixmapNameConfig() const;
+ TodayConfigWidget* configWidget(TQWidget *);
+ TQString appName() const;
bool excludeFromRefresh() const;
void refresh();
void reinitialize();
private:
- QGuardedPtr<%{APPNAME}Widget> m_widget;
+ TQGuardedPtr<%{APPNAME}Widget> m_widget;
};
#endif
diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
index b0cb0dcc..a80dad81 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
+++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp
@@ -3,8 +3,8 @@
#include "%{APPNAMELC}widget.h"
-%{APPNAME}Widget::%{APPNAME}Widget( QWidget *parent, const char* name)
- : QWidget(parent, name ) {
+%{APPNAME}Widget::%{APPNAME}Widget( TQWidget *parent, const char* name)
+ : TQWidget(parent, name ) {
m_exampleLabel = 0l;
m_layout = 0l;
@@ -17,12 +17,12 @@
// that should be triggered when clicked are defined in slotClicked()
// of course also normal widgets can be used.
m_exampleLabel = new OClickableLabel( this );
- connect( m_exampleLabel, SIGNAL( clicked() ), this, SLOT( slotClicked() ) );
+ connect( m_exampleLabel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClicked() ) );
if ( m_layout ) {
delete m_layout;
}
- m_layout = new QHBoxLayout( this );
+ m_layout = new TQHBoxLayout( this );
m_layout->setAutoAdd( true );
readConfig();
diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.h b/languages/cpp/app_templates/opietoday/examplepluginwidget.h
index 26a72128..53a67b18 100644
--- a/languages/cpp/app_templates/opietoday/examplepluginwidget.h
+++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.h
@@ -1,16 +1,16 @@
#ifndef %{APPNAME}_PLUGIN_WIDGET_H
#define %{APPNAME}_PLUGIN_WIDGET_H
-#include <qlayout.h>
+#include <tqlayout.h>
#include <opie/oclickablelabel.h>
-class %{APPNAME}Widget : public QWidget {
+class %{APPNAME}Widget : public TQWidget {
Q_OBJECT
public:
- %{APPNAME}Widget( QWidget *parent, const char *name );
+ %{APPNAME}Widget( TQWidget *parent, const char *name );
~%{APPNAME}Widget();
void refresh();
@@ -20,7 +20,7 @@ private slots:
private:
OClickableLabel* m_exampleLabel;
- QHBoxLayout* m_layout;
+ TQHBoxLayout* m_layout;
void readConfig();
void getInfo();
};
diff --git a/languages/cpp/app_templates/qmakeapp/main.cpp b/languages/cpp/app_templates/qmakeapp/main.cpp
index bd26f19a..8938adc5 100644
--- a/languages/cpp/app_templates/qmakeapp/main.cpp
+++ b/languages/cpp/app_templates/qmakeapp/main.cpp
@@ -1,13 +1,13 @@
%{CPP_TEMPLATE}
-#include <qapplication.h>
+#include <tqapplication.h>
#include "%{APPNAMELC}.h"
int main( int argc, char ** argv ) {
- QApplication a( argc, argv );
+ TQApplication a( argc, argv );
%{APPNAME} * mw = new %{APPNAME}();
mw->setCaption( "%{APPNAME}" );
mw->show();
- a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ a.connect( &a, TQT_SIGNAL(lastWindowClosed()), &a, TQT_SLOT(quit()) );
return a.exec();
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
index 841f88d4..973aee2c 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.cpp
@@ -2,120 +2,120 @@
#include "%{APPNAMELC}.h"
-#include <qimage.h>
-#include <qpixmap.h>
-#include <qtoolbar.h>
-#include <qtoolbutton.h>
-#include <qpopupmenu.h>
-#include <qmenubar.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qfiledialog.h>
-#include <qstatusbar.h>
-#include <qmessagebox.h>
-#include <qprinter.h>
-#include <qapplication.h>
-#include <qaccel.h>
-#include <qtextstream.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qwhatsthis.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
+#include <tqtoolbar.h>
+#include <tqtoolbutton.h>
+#include <tqpopupmenu.h>
+#include <tqmenubar.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqfiledialog.h>
+#include <tqstatusbar.h>
+#include <tqmessagebox.h>
+#include <tqprinter.h>
+#include <tqapplication.h>
+#include <tqaccel.h>
+#include <tqtextstream.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqwhatsthis.h>
#include "filesave.xpm"
#include "fileopen.xpm"
#include "fileprint.xpm"
%{APPNAME}::%{APPNAME}()
- : QMainWindow( 0, "%{APPNAME}", WDestructiveClose )
+ : TQMainWindow( 0, "%{APPNAME}", WDestructiveClose )
{
printer = new QPrinter;
- QPixmap openIcon, saveIcon, printIcon;
+ TQPixmap openIcon, saveIcon, printIcon;
- QToolBar * fileTools = new QToolBar( this, "file operations" );
+ TQToolBar * fileTools = new TQToolBar( this, "file operations" );
fileTools->setLabel( tr("File Operations") );
- openIcon = QPixmap( fileopen );
- QToolButton * fileOpen
- = new QToolButton( openIcon, tr("Open File"), QString::null,
- this, SLOT(choose()), fileTools, "open file" );
+ openIcon = TQPixmap( fileopen );
+ TQToolButton * fileOpen
+ = new TQToolButton( openIcon, tr("Open File"), TQString::null,
+ this, TQT_SLOT(choose()), fileTools, "open file" );
- saveIcon = QPixmap( filesave );
- QToolButton * fileSave
- = new QToolButton( saveIcon, tr("Save File"), QString::null,
- this, SLOT(save()), fileTools, "save file" );
+ saveIcon = TQPixmap( filesave );
+ TQToolButton * fileSave
+ = new TQToolButton( saveIcon, tr("Save File"), TQString::null,
+ this, TQT_SLOT(save()), fileTools, "save file" );
- printIcon = QPixmap( fileprint );
- QToolButton * filePrint
- = new QToolButton( printIcon, tr("Print File"), QString::null,
- this, SLOT(print()), fileTools, "print file" );
+ printIcon = TQPixmap( fileprint );
+ TQToolButton * filePrint
+ = new TQToolButton( printIcon, tr("Print File"), TQString::null,
+ this, TQT_SLOT(print()), fileTools, "print file" );
- (void)QWhatsThis::whatsThisButton( fileTools );
+ (void)TQWhatsThis::whatsThisButton( fileTools );
- QString fileOpenText = tr("<p><img source=\"fileopen\"> "
+ TQString fileOpenText = tr("<p><img source=\"fileopen\"> "
"Click this button to open a <em>new file</em>. <br>"
"You can also select the <b>Open</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileOpen, fileOpenText );
+ TQWhatsThis::add( fileOpen, fileOpenText );
- QMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
+ TQMimeSourceFactory::defaultFactory()->setPixmap( "fileopen", openIcon );
- QString fileSaveText = tr("<p>Click this button to save the file you "
+ TQString fileSaveText = tr("<p>Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"
"You can also select the <b>Save</b> command "
"from the <b>File</b> menu.</p>");
- QWhatsThis::add( fileSave, fileSaveText );
+ TQWhatsThis::add( fileSave, fileSaveText );
- QString filePrintText = tr("Click this button to print the file you "
+ TQString filePrintText = tr("Click this button to print the file you "
"are editing.\n You can also select the Print "
"command from the File menu.");
- QWhatsThis::add( filePrint, filePrintText );
+ TQWhatsThis::add( filePrint, filePrintText );
- QPopupMenu * file = new QPopupMenu( this );
+ TQPopupMenu * file = new TQPopupMenu( this );
menuBar()->insertItem( tr("&File"), file );
- file->insertItem( tr("&New"), this, SLOT(newDoc()), CTRL+Key_N );
+ file->insertItem( tr("&New"), this, TQT_SLOT(newDoc()), CTRL+Key_N );
int id;
id = file->insertItem( openIcon, tr("&Open..."),
- this, SLOT(choose()), CTRL+Key_O );
+ this, TQT_SLOT(choose()), CTRL+Key_O );
file->setWhatsThis( id, fileOpenText );
id = file->insertItem( saveIcon, tr("&Save"),
- this, SLOT(save()), CTRL+Key_S );
+ this, TQT_SLOT(save()), CTRL+Key_S );
file->setWhatsThis( id, fileSaveText );
- id = file->insertItem( tr("Save &As..."), this, SLOT(saveAs()) );
+ id = file->insertItem( tr("Save &As..."), this, TQT_SLOT(saveAs()) );
file->setWhatsThis( id, fileSaveText );
file->insertSeparator();
id = file->insertItem( printIcon, tr("&Print..."),
- this, SLOT(print()), CTRL+Key_P );
+ this, TQT_SLOT(print()), CTRL+Key_P );
file->setWhatsThis( id, filePrintText );
file->insertSeparator();
- file->insertItem( tr("&Close"), this, SLOT(close()), CTRL+Key_W );
+ file->insertItem( tr("&Close"), this, TQT_SLOT(close()), CTRL+Key_W );
- file->insertItem( tr("&Quit"), qApp, SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( tr("&Quit"), qApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
menuBar()->insertSeparator();
- QPopupMenu * help = new QPopupMenu( this );
+ TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( tr("&Help"), help );
- help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );
- help->insertItem( tr("About &Qt"), this, SLOT(aboutQt()) );
+ help->insertItem( tr("&About"), this, TQT_SLOT(about()), Key_F1 );
+ help->insertItem( tr("About &Qt"), this, TQT_SLOT(aboutQt()) );
help->insertSeparator();
- help->insertItem( tr("What's &This"), this, SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( tr("What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
- e = new QTextEdit( this, "editor" );
+ e = new TQTextEdit( this, "editor" );
e->setFocus();
setCentralWidget( e );
statusBar()->message( tr("Ready"), 2000 );
@@ -140,7 +140,7 @@ void %{APPNAME}::newDoc()
void %{APPNAME}::choose()
{
- QString fn = QFileDialog::getOpenFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null,
this);
if ( !fn.isEmpty() )
load( fn );
@@ -149,13 +149,13 @@ void %{APPNAME}::choose()
}
-void %{APPNAME}::load( const QString &fileName )
+void %{APPNAME}::load( const TQString &fileName )
{
- QFile f( fileName );
+ TQFile f( fileName );
if ( !f.open( IO_ReadOnly ) )
return;
- QTextStream ts( &f );
+ TQTextStream ts( &f );
e->setText( ts.read() );
e->setModified( FALSE );
setCaption( fileName );
@@ -170,15 +170,15 @@ void %{APPNAME}::save()
return;
}
- QString text = e->text();
- QFile f( filename );
+ TQString text = e->text();
+ TQFile f( filename );
if ( !f.open( IO_WriteOnly ) ) {
statusBar()->message( tr("Could not write to %1").arg(filename),
2000 );
return;
}
- QTextStream t( &f );
+ TQTextStream t( &f );
t << text;
f.close();
@@ -192,7 +192,7 @@ void %{APPNAME}::save()
void %{APPNAME}::saveAs()
{
- QString fn = QFileDialog::getSaveFileName( QString::null, QString::null,
+ TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null,
this );
if ( !fn.isEmpty() ) {
filename = fn;
@@ -205,25 +205,25 @@ void %{APPNAME}::saveAs()
void %{APPNAME}::print()
{
- // ###### Rewrite to use QSimpleRichText to print here as well
+ // ###### Rewrite to use TQSimpleRichText to print here as well
const int Margin = 10;
int pageNo = 1;
if ( printer->setup(this) ) { // printer dialog
statusBar()->message( tr("Printing...") );
- QPainter p;
+ TQPainter p;
if( !p.begin( printer ) ) // paint on printer
return;
p.setFont( e->font() );
int yPos = 0; // y-position for each line
- QFontMetrics fm = p.fontMetrics();
- QPaintDeviceMetrics metrics( printer ); // need width/height
+ TQFontMetrics fm = p.fontMetrics();
+ TQPaintDeviceMetrics metrics( printer ); // need width/height
// of printer surface
for( int i = 0 ; i < e->lines() ; i++ ) {
if ( Margin + yPos > metrics.height() - Margin ) {
- QString msg( "Printing (page " );
- msg += QString::number( ++pageNo );
+ TQString msg( "Printing (page " );
+ msg += TQString::number( ++pageNo );
msg += ")...";
statusBar()->message( msg );
printer->newPage(); // no more room on this page
@@ -242,14 +242,14 @@ void %{APPNAME}::print()
}
}
-void %{APPNAME}::closeEvent( QCloseEvent* ce )
+void %{APPNAME}::closeEvent( TQCloseEvent* ce )
{
if ( !e->isModified() ) {
ce->accept();
return;
}
- switch( QMessageBox::information( this, tr("Qt Application Example"),
+ switch( TQMessageBox::information( this, tr("Qt Application Example"),
tr("Do you want to save the changes"
" to the document?"),
tr("Yes"), tr("No"), tr("Cancel"),
@@ -271,13 +271,13 @@ void %{APPNAME}::closeEvent( QCloseEvent* ce )
void %{APPNAME}::about()
{
- QMessageBox::about( this, tr("Qt Application Example"),
+ TQMessageBox::about( this, tr("Qt Application Example"),
tr("This example demonstrates simple use of "
- "QMainWindow,\nQMenuBar and QToolBar."));
+ "TQMainWindow,\nQMenuBar and TQToolBar."));
}
void %{APPNAME}::aboutQt()
{
- QMessageBox::aboutQt( this, tr("Qt Application Example") );
+ TQMessageBox::aboutQt( this, tr("Qt Application Example") );
}
diff --git a/languages/cpp/app_templates/qmakeapp/qmakeapp.h b/languages/cpp/app_templates/qmakeapp/qmakeapp.h
index 2d372da9..48bf459a 100644
--- a/languages/cpp/app_templates/qmakeapp/qmakeapp.h
+++ b/languages/cpp/app_templates/qmakeapp/qmakeapp.h
@@ -3,7 +3,7 @@
#ifndef %{APPNAMEUC}_H
#define %{APPNAMEUC}_H
-#include <qmainwindow.h>
+#include <tqmainwindow.h>
class QTextEdit;
@@ -16,12 +16,12 @@ public:
~%{APPNAME}();
protected:
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
private slots:
void newDoc();
void choose();
- void load( const QString &fileName );
+ void load( const TQString &fileName );
void save();
void saveAs();
void print();
@@ -30,9 +30,9 @@ private slots:
void aboutQt();
private:
- QPrinter *printer;
- QTextEdit *e;
- QString filename;
+ TQPrinter *printer;
+ TQTextEdit *e;
+ TQString filename;
};
diff --git a/languages/cpp/app_templates/qt4makeapp/main.cpp b/languages/cpp/app_templates/qt4makeapp/main.cpp
index 3416347e..4f6295a2 100644
--- a/languages/cpp/app_templates/qt4makeapp/main.cpp
+++ b/languages/cpp/app_templates/qt4makeapp/main.cpp
@@ -1,12 +1,12 @@
%{CPP_TEMPLATE}
-#include <QApplication>
+#include <TQApplication>
#include "%{APPNAMELC}.h"
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(application);
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
%{APPNAME} * mw = new %{APPNAME}();
mw->show();
return app.exec();
diff --git a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
index af16391f..11bcf85f 100644
--- a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
+++ b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.cpp
@@ -3,10 +3,10 @@
#include <QtGui>
#include "%{APPNAMELC}.h"
-#include <QTextEdit>
-#include <QTextStream>
-#include <QCloseEvent>
-#include <QFileDialog>
+#include <TQTextEdit>
+#include <TQTextStream>
+#include <TQCloseEvent>
+#include <TQFileDialog>
%{APPNAME}::%{APPNAME}()
{
@@ -20,13 +20,13 @@
readSettings();
- connect(textEdit->document(), SIGNAL(contentsChanged()),
- this, SLOT(documentWasModified()));
+ connect(textEdit->document(), TQT_SIGNAL(contentsChanged()),
+ this, TQT_SLOT(documentWasModified()));
setCurrentFile("");
}
-void %{APPNAME}::closeEvent(QCloseEvent *event)
+void %{APPNAME}::closeEvent(TQCloseEvent *event)
{
if (maybeSave()) {
writeSettings();
@@ -47,7 +47,7 @@ void %{APPNAME}::newFile()
void %{APPNAME}::open()
{
if (maybeSave()) {
- QString fileName = QFileDialog::getOpenFileName(this);
+ TQString fileName = TQFileDialog::getOpenFileName(this);
if (!fileName.isEmpty())
loadFile(fileName);
}
@@ -64,7 +64,7 @@ bool %{APPNAME}::save()
bool %{APPNAME}::saveAs()
{
- QString fileName = QFileDialog::getSaveFileName(this);
+ TQString fileName = TQFileDialog::getSaveFileName(this);
if (fileName.isEmpty())
return false;
@@ -73,7 +73,7 @@ bool %{APPNAME}::saveAs()
void %{APPNAME}::about()
{
- QMessageBox::about(this, tr("About Application"),
+ TQMessageBox::about(this, tr("About Application"),
tr("The <b>Application</b> example demonstrates how to "
"write modern GUI applications using Qt, with a menu bar, "
"toolbars, and a status bar."));
@@ -86,62 +86,62 @@ void %{APPNAME}::documentWasModified()
void %{APPNAME}::createActions()
{
- newAct = new QAction(QIcon(":/filenew.xpm"), tr("&New"), this);
+ newAct = new TQAction(QIcon(":/filenew.xpm"), tr("&New"), this);
newAct->setShortcut(tr("Ctrl+N"));
newAct->setStatusTip(tr("Create a new file"));
- connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));
+ connect(newAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(newFile()));
- openAct = new QAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
+ openAct = new TQAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
openAct->setShortcut(tr("Ctrl+O"));
openAct->setStatusTip(tr("Open an existing file"));
- connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
+ connect(openAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(open()));
- saveAct = new QAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
+ saveAct = new TQAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
saveAct->setShortcut(tr("Ctrl+S"));
saveAct->setStatusTip(tr("Save the document to disk"));
- connect(saveAct, SIGNAL(triggered()), this, SLOT(save()));
+ connect(saveAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(save()));
- saveAsAct = new QAction(tr("Save &As..."), this);
+ saveAsAct = new TQAction(tr("Save &As..."), this);
saveAsAct->setStatusTip(tr("Save the document under a new name"));
- connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs()));
+ connect(saveAsAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(saveAs()));
- exitAct = new QAction(tr("E&xit"), this);
+ exitAct = new TQAction(tr("E&xit"), this);
exitAct->setShortcut(tr("Ctrl+Q"));
exitAct->setStatusTip(tr("Exit the application"));
- connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
+ connect(exitAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(close()));
- cutAct = new QAction(QIcon(":/editcut.xpm"), tr("Cu&t"), this);
+ cutAct = new TQAction(QIcon(":/editcut.xpm"), tr("Cu&t"), this);
cutAct->setShortcut(tr("Ctrl+X"));
cutAct->setStatusTip(tr("Cut the current selection's contents to the "
"clipboard"));
- connect(cutAct, SIGNAL(triggered()), textEdit, SLOT(cut()));
+ connect(cutAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(cut()));
- copyAct = new QAction(QIcon(":/editcopy.xpm"), tr("&Copy"), this);
+ copyAct = new TQAction(QIcon(":/editcopy.xpm"), tr("&Copy"), this);
copyAct->setShortcut(tr("Ctrl+C"));
copyAct->setStatusTip(tr("Copy the current selection's contents to the "
"clipboard"));
- connect(copyAct, SIGNAL(triggered()), textEdit, SLOT(copy()));
+ connect(copyAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(copy()));
- pasteAct = new QAction(QIcon(":/editpaste.xpm"), tr("&Paste"), this);
+ pasteAct = new TQAction(QIcon(":/editpaste.xpm"), tr("&Paste"), this);
pasteAct->setShortcut(tr("Ctrl+V"));
pasteAct->setStatusTip(tr("Paste the clipboard's contents into the current "
"selection"));
- connect(pasteAct, SIGNAL(triggered()), textEdit, SLOT(paste()));
+ connect(pasteAct, TQT_SIGNAL(triggered()), textEdit, TQT_SLOT(paste()));
- aboutAct = new QAction(tr("&About"), this);
+ aboutAct = new TQAction(tr("&About"), this);
aboutAct->setStatusTip(tr("Show the application's About box"));
- connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
+ connect(aboutAct, TQT_SIGNAL(triggered()), this, TQT_SLOT(about()));
- aboutQtAct = new QAction(tr("About &Qt"), this);
+ aboutQtAct = new TQAction(tr("About &Qt"), this);
aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
- connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+ connect(aboutQtAct, TQT_SIGNAL(triggered()), qApp, TQT_SLOT(aboutQt()));
cutAct->setEnabled(false);
copyAct->setEnabled(false);
- connect(textEdit, SIGNAL(copyAvailable(bool)),
- cutAct, SLOT(setEnabled(bool)));
- connect(textEdit, SIGNAL(copyAvailable(bool)),
- copyAct, SLOT(setEnabled(bool)));
+ connect(textEdit, TQT_SIGNAL(copyAvailable(bool)),
+ cutAct, TQT_SLOT(setEnabled(bool)));
+ connect(textEdit, TQT_SIGNAL(copyAvailable(bool)),
+ copyAct, TQT_SLOT(setEnabled(bool)));
}
void %{APPNAME}::createMenus()
@@ -186,16 +186,16 @@ void %{APPNAME}::createStatusBar()
void %{APPNAME}::readSettings()
{
- QSettings settings("Trolltech", "Application Example");
- QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
- QSize size = settings.value("size", QSize(400, 400)).toSize();
+ TQSettings settings("Trolltech", "Application Example");
+ TQPoint pos = settings.value("pos", TQPoint(200, 200)).toPoint();
+ TQSize size = settings.value("size", TQSize(400, 400)).toSize();
resize(size);
move(pos);
}
void %{APPNAME}::writeSettings()
{
- QSettings settings("Trolltech", "Application Example");
+ TQSettings settings("Trolltech", "Application Example");
settings.setValue("pos", pos());
settings.setValue("size", size());
}
@@ -203,68 +203,68 @@ void %{APPNAME}::writeSettings()
bool %{APPNAME}::maybeSave()
{
if (textEdit->document()->isModified()) {
- int ret = QMessageBox::warning(this, tr("Application"),
+ int ret = TQMessageBox::warning(this, tr("Application"),
tr("The document has been modified.\n"
"Do you want to save your changes?"),
- QMessageBox::Yes | QMessageBox::Default,
- QMessageBox::No,
- QMessageBox::Cancel | QMessageBox::Escape);
- if (ret == QMessageBox::Yes)
+ TQMessageBox::Yes | TQMessageBox::Default,
+ TQMessageBox::No,
+ TQMessageBox::Cancel | TQMessageBox::Escape);
+ if (ret == TQMessageBox::Yes)
return save();
- else if (ret == QMessageBox::Cancel)
+ else if (ret == TQMessageBox::Cancel)
return false;
}
return true;
}
-void %{APPNAME}::loadFile(const QString &fileName)
+void %{APPNAME}::loadFile(const TQString &fileName)
{
- QFile file(fileName);
- if (!file.open(QFile::ReadOnly | QFile::Text)) {
- QMessageBox::warning(this, tr("Application"),
+ TQFile file(fileName);
+ if (!file.open(TQFile::ReadOnly | TQFile::Text)) {
+ TQMessageBox::warning(this, tr("Application"),
tr("Cannot read file %1:\n%2.")
.arg(fileName)
.arg(file.errorString()));
return;
}
- QTextStream in(&file);
- QApplication::setOverrideCursor(Qt::WaitCursor);
+ TQTextStream in(&file);
+ TQApplication::setOverrideCursor(Qt::WaitCursor);
textEdit->setPlainText(in.readAll());
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
setCurrentFile(fileName);
statusBar()->showMessage(tr("File loaded"), 2000);
}
-bool %{APPNAME}::saveFile(const QString &fileName)
+bool %{APPNAME}::saveFile(const TQString &fileName)
{
- QFile file(fileName);
- if (!file.open(QFile::WriteOnly | QFile::Text)) {
- QMessageBox::warning(this, tr("Application"),
+ TQFile file(fileName);
+ if (!file.open(TQFile::WriteOnly | TQFile::Text)) {
+ TQMessageBox::warning(this, tr("Application"),
tr("Cannot write file %1:\n%2.")
.arg(fileName)
.arg(file.errorString()));
return false;
}
- QTextStream out(&file);
- QApplication::setOverrideCursor(Qt::WaitCursor);
+ TQTextStream out(&file);
+ TQApplication::setOverrideCursor(Qt::WaitCursor);
out << textEdit->toPlainText();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
setCurrentFile(fileName);
statusBar()->showMessage(tr("File saved"), 2000);
return true;
}
-void %{APPNAME}::setCurrentFile(const QString &fileName)
+void %{APPNAME}::setCurrentFile(const TQString &fileName)
{
curFile = fileName;
textEdit->document()->setModified(false);
setWindowModified(false);
- QString shownName;
+ TQString shownName;
if (curFile.isEmpty())
shownName = "untitled.txt";
else
@@ -273,9 +273,9 @@ void %{APPNAME}::setCurrentFile(const QString &fileName)
setWindowTitle(tr("%1[*] - %2").arg(shownName).arg(tr("Application")));
}
-QString %{APPNAME}::strippedName(const QString &fullFileName)
+TQString %{APPNAME}::strippedName(const TQString &fullFileName)
{
- return QFileInfo(fullFileName).fileName();
+ return TQFileInfo(fullFileName).fileName();
}
%{APPNAME}::~%{APPNAME}()
diff --git a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
index cd470d00..8140766b 100644
--- a/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
+++ b/languages/cpp/app_templates/qt4makeapp/qt4makeapp.h
@@ -3,8 +3,8 @@
#ifndef %{APPNAMEUC}_H
#define %{APPNAMEUC}_H
-#include <QMainWindow>
-#include <QCloseEvent>
+#include <TQMainWindow>
+#include <TQCloseEvent>
class QAction;
class QMenu;
@@ -19,7 +19,7 @@ public:
~%{APPNAME}();
protected:
- void closeEvent(QCloseEvent *event);
+ void closeEvent(TQCloseEvent *event);
private slots:
void newFile();
@@ -37,29 +37,29 @@ private:
void readSettings();
void writeSettings();
bool maybeSave();
- void loadFile(const QString &fileName);
- bool saveFile(const QString &fileName);
- void setCurrentFile(const QString &fileName);
- QString strippedName(const QString &fullFileName);
+ void loadFile(const TQString &fileName);
+ bool saveFile(const TQString &fileName);
+ void setCurrentFile(const TQString &fileName);
+ TQString strippedName(const TQString &fullFileName);
- QTextEdit *textEdit;
- QString curFile;
+ TQTextEdit *textEdit;
+ TQString curFile;
QMenu *fileMenu;
QMenu *editMenu;
QMenu *helpMenu;
- QToolBar *fileToolBar;
- QToolBar *editToolBar;
- QAction *newAct;
- QAction *openAct;
- QAction *saveAct;
- QAction *saveAsAct;
- QAction *exitAct;
- QAction *cutAct;
- QAction *copyAct;
- QAction *pasteAct;
- QAction *aboutAct;
- QAction *aboutQtAct;
+ TQToolBar *fileToolBar;
+ TQToolBar *editToolBar;
+ TQAction *newAct;
+ TQAction *openAct;
+ TQAction *saveAct;
+ TQAction *saveAsAct;
+ TQAction *exitAct;
+ TQAction *cutAct;
+ TQAction *copyAct;
+ TQAction *pasteAct;
+ TQAction *aboutAct;
+ TQAction *aboutQtAct;
};
#endif
diff --git a/languages/cpp/app_templates/qtopia4app/example.cpp b/languages/cpp/app_templates/qtopia4app/example.cpp
index a35d57cb..45331649 100644
--- a/languages/cpp/app_templates/qtopia4app/example.cpp
+++ b/languages/cpp/app_templates/qtopia4app/example.cpp
@@ -1,9 +1,9 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
-%{APPNAME}Base::%{APPNAME}Base( QWidget *parent, Qt::WFlags f )
- : QWidget( parent, f )
+%{APPNAME}Base::%{APPNAME}Base( TQWidget *parent, Qt::WFlags f )
+ : TQWidget( parent, f )
{
setupUi( this );
}
@@ -16,10 +16,10 @@
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget *parent, Qt::WFlags f )
+%{APPNAME}::%{APPNAME}( TQWidget *parent, Qt::WFlags f )
: %{APPNAME}Base( parent, f )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/qtopia4app/example.h b/languages/cpp/app_templates/qtopia4app/example.h
index 7d58c7d8..5bfc69ba 100644
--- a/languages/cpp/app_templates/qtopia4app/example.h
+++ b/languages/cpp/app_templates/qtopia4app/example.h
@@ -3,10 +3,10 @@
#define %{APPNAMEUC}_H
#include "ui_%{APPNAMELC}base.h"
-class %{APPNAME}Base : public QWidget, public Ui_%{APPNAME}Base
+class %{APPNAME}Base : public TQWidget, public Ui_%{APPNAME}Base
{
public:
- %{APPNAME}Base( QWidget *parent = 0, Qt::WFlags f = 0 );
+ %{APPNAME}Base( TQWidget *parent = 0, Qt::WFlags f = 0 );
virtual ~%{APPNAME}Base();
};
@@ -14,7 +14,7 @@ class %{APPNAME} : public %{APPNAME}Base
{
Q_OBJECT
public:
- %{APPNAME}( QWidget *parent = 0, Qt::WFlags f = 0 );
+ %{APPNAME}( TQWidget *parent = 0, Qt::WFlags f = 0 );
virtual ~%{APPNAME}();
private slots:
diff --git a/languages/cpp/app_templates/qtopiaapp/example.cpp b/languages/cpp/app_templates/qtopiaapp/example.cpp
index 939f708e..a849977d 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.cpp
+++ b/languages/cpp/app_templates/qtopiaapp/example.cpp
@@ -1,15 +1,15 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
/*
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl )
+%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
: %{APPNAME}Base( parent, name, fl )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/qtopiaapp/example.h b/languages/cpp/app_templates/qtopiaapp/example.h
index 883cb27d..42dfc2dd 100644
--- a/languages/cpp/app_templates/qtopiaapp/example.h
+++ b/languages/cpp/app_templates/qtopiaapp/example.h
@@ -8,7 +8,7 @@ class %{APPNAME} : public %{APPNAME}Base
Q_OBJECT
public:
- %{APPNAME}( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots: