diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/main.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/main.cpp')
-rw-r--r-- | kregexpeditor/main.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kregexpeditor/main.cpp b/kregexpeditor/main.cpp index bde19e9..04fd3a3 100644 --- a/kregexpeditor/main.cpp +++ b/kregexpeditor/main.cpp @@ -18,7 +18,7 @@ #ifdef QT_ONLY #include "compat.h" - #include <qapplication.h> + #include <tqapplication.h> #else #include <kaboutdata.h> #include <kapplication.h> @@ -28,12 +28,12 @@ #endif #include "kregexpeditorgui.h" -#include <qlayout.h> +#include <tqlayout.h> int main( int argc, char* argv[] ) { #ifdef QT_ONLY - QApplication myapp( argc, argv ); + TQApplication myapp( argc, argv ); #else KAboutData aboutData( "kregexpeditor", I18N_NOOP("RegExp Editor"), "1.0", I18N_NOOP("Editor for Regular Expressions"), @@ -43,14 +43,14 @@ int main( int argc, char* argv[] ) KApplication myapp; #endif - QDialog* top = new QDialog( 0 ); - QVBoxLayout* lay = new QVBoxLayout( top, 6 ); + TQDialog* top = new TQDialog( 0 ); + TQVBoxLayout* lay = new TQVBoxLayout( top, 6 ); - KRegExpEditorGUI* iface = new KRegExpEditorGUI( top, "_editor", QStringList() ); - iface->doSomething( QString::fromLatin1("setAllowNonQtSyntax"), (bool*) true ); + KRegExpEditorGUI* iface = new KRegExpEditorGUI( top, "_editor", TQStringList() ); + iface->doSomething( TQString::fromLatin1("setAllowNonQtSyntax"), (bool*) true ); lay->addWidget( iface ); - QHBoxLayout* lay2 = new QHBoxLayout( lay, 6 ); + TQHBoxLayout* lay2 = new TQHBoxLayout( lay, 6 ); KPushButton* help = new KPushButton( KStdGuiItem::help(), top ); KPushButton* quit = new KPushButton( KStdGuiItem::quit(), top ); @@ -58,11 +58,11 @@ int main( int argc, char* argv[] ) lay2->addStretch(1); lay2->addWidget( quit ); - QObject::connect( help, SIGNAL( clicked() ), iface, SLOT( showHelp() ) ); - QObject::connect( quit, SIGNAL( clicked() ), qApp, SLOT( quit() ) ); + TQObject::connect( help, TQT_SIGNAL( clicked() ), iface, TQT_SLOT( showHelp() ) ); + TQObject::connect( quit, TQT_SIGNAL( clicked() ), qApp, TQT_SLOT( quit() ) ); top->show(); - QObject::connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) ); + TQObject::connect( qApp, TQT_SIGNAL( lastWindowClosed() ), qApp, TQT_SLOT( quit() ) ); myapp.exec(); } |