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 /dcop/tests | |
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 'dcop/tests')
-rw-r--r-- | dcop/tests/driver.cpp | 10 | ||||
-rw-r--r-- | dcop/tests/driver.h | 4 | ||||
-rw-r--r-- | dcop/tests/test.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/dcop/tests/driver.cpp b/dcop/tests/driver.cpp index ac06d2873..147d2a748 100644 --- a/dcop/tests/driver.cpp +++ b/dcop/tests/driver.cpp @@ -3,8 +3,8 @@ #include <iostream> #include <dcopclient.h> #include <kcmdlineargs.h> -#include <qtimer.h> -#include <qtimer.h> +#include <tqtimer.h> +#include <tqtimer.h> using namespace std; @@ -20,7 +20,7 @@ Driver::Driver(const char* app) } -QTextStream output( fopen( "driver.returns", "w" ) , IO_WriteOnly ); +TQTextStream output( fopen( "driver.returns", "w" ) , IO_WriteOnly ); #include <iostream> void Driver::test() { @@ -39,7 +39,7 @@ void Driver::test() } ++count; - QTimer::singleShot( 100, this, SLOT( test() ) ); + TQTimer::singleShot( 100, this, TQT_SLOT( test() ) ); } #include "driver.moc" @@ -58,7 +58,7 @@ int main(int argc, char** argv) app.dcopClient()->attach( ); app.dcopClient()->registerAs( "TestAppDriver" ); Driver * object = new Driver( appname ); - QTimer::singleShot( 10, object, SLOT( test() ) ); + TQTimer::singleShot( 10, object, TQT_SLOT( test() ) ); return app.exec(); } diff --git a/dcop/tests/driver.h b/dcop/tests/driver.h index ee4d5df57..3565d88ab 100644 --- a/dcop/tests/driver.h +++ b/dcop/tests/driver.h @@ -1,11 +1,11 @@ #ifndef _OPT_KDECVS_SRC_KDELIBS_DCOP_TEST_TESTER_H #define _OPT_KDECVS_SRC_KDELIBS_DCOP_TEST_TESTER_H #include "test_stub.h" -#include <qobject.h> +#include <tqobject.h> -class Driver : public QObject, public Test_stub +class Driver : public TQObject, public Test_stub { Q_OBJECT diff --git a/dcop/tests/test.cpp b/dcop/tests/test.cpp index 025230547..7f5114071 100644 --- a/dcop/tests/test.cpp +++ b/dcop/tests/test.cpp @@ -16,7 +16,7 @@ using namespace std; void batch() { - QTextStream output( fopen( "batch.returns", "w" ) , IO_WriteOnly ); + TQTextStream output( fopen( "batch.returns", "w" ) , IO_WriteOnly ); Test* object = new Test; #include "batch.generated" } |