diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/tests/kxmlguitest.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/tests/kxmlguitest.cpp')
-rw-r--r-- | kdeui/tests/kxmlguitest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kdeui/tests/kxmlguitest.cpp b/kdeui/tests/kxmlguitest.cpp index 949eb03c4..a903aeb3f 100644 --- a/kdeui/tests/kxmlguitest.cpp +++ b/kdeui/tests/kxmlguitest.cpp @@ -8,8 +8,8 @@ #include <kdebug.h> #include <kstdaction.h> #include <kstandarddirs.h> -#include <qlineedit.h> -#include <qdir.h> +#include <tqlineedit.h> +#include <tqdir.h> void Client::slotSec() { @@ -22,11 +22,11 @@ int main( int argc, char **argv ) // KXMLGUIClient looks in the "data" resource for the .rc files // Let's add $PWD (ideally $srcdir instead...) to it - KGlobal::dirs()->addResourceDir( "data", QDir::currentDirPath() ); + KGlobal::dirs()->addResourceDir( "data", TQDir::currentDirPath() ); KMainWindow *mainwindow = new KMainWindow; - QLineEdit* line = new QLineEdit( mainwindow ); + TQLineEdit* line = new TQLineEdit( mainwindow ); mainwindow->setCentralWidget( line ); mainwindow->show(); @@ -37,7 +37,7 @@ int main( int argc, char **argv ) Client *shell = new Client; shell->setInstance( new KInstance( "konqueror" ) ); - shell->instance()->dirs()->addResourceDir( "data", QDir::currentDirPath() ); + shell->instance()->dirs()->addResourceDir( "data", TQDir::currentDirPath() ); (void)new KAction( "Split", "view_left_right", 0, 0, 0, shell->actionCollection(), "splitviewh" ); @@ -48,7 +48,7 @@ int main( int argc, char **argv ) Client *part = new Client; (void)new KAction( "decfont", "viewmag-", 0, 0, 0, part->actionCollection(), "decFontSizes" ); - (void)new KAction( "sec", "unlock", Qt::ALT + Qt::Key_1, part, SLOT( slotSec() ), part->actionCollection(), "security" ); + (void)new KAction( "sec", "unlock", Qt::ALT + Qt::Key_1, part, TQT_SLOT( slotSec() ), part->actionCollection(), "security" ); part->setXMLFile( "./kxmlguitest_part.rc" ); |