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 /kwallet/tests/kwalletboth.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 'kwallet/tests/kwalletboth.cpp')
-rw-r--r-- | kwallet/tests/kwalletboth.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kwallet/tests/kwalletboth.cpp b/kwallet/tests/kwalletboth.cpp index 736be72cb..f79f38567 100644 --- a/kwallet/tests/kwalletboth.cpp +++ b/kwallet/tests/kwalletboth.cpp @@ -1,5 +1,5 @@ -#include <qtextstream.h> -#include <qtimer.h> +#include <tqtextstream.h> +#include <tqtimer.h> #include <kaboutdata.h> #include <kapplication.h> @@ -12,7 +12,7 @@ #include "kwallettest.h" -static QTextStream _out( stdout, IO_WriteOnly ); +static TQTextStream _out( stdout, IO_WriteOnly ); void openWallet() { @@ -22,7 +22,7 @@ void openWallet() KWallet::Wallet *wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet(), 0, KWallet::Wallet::Asynchronous ); WalletReceiver r; - r.connect( wallet, SIGNAL( walletOpened(bool) ), SLOT( walletOpened(bool) ) ); + r.connect( wallet, TQT_SIGNAL( walletOpened(bool) ), TQT_SLOT( walletOpened(bool) ) ); _out << "About to ask for wallet sync" << endl; @@ -31,7 +31,7 @@ void openWallet() _out << "Got sync wallet: " << (wallet != 0) << endl; _out << "About to start 30 second event loop" << endl; - QTimer::singleShot( 30000, qApp, SLOT( quit() ) ); + TQTimer::singleShot( 30000, qApp, TQT_SLOT( quit() ) ); int ret = qApp->exec(); @@ -40,16 +40,16 @@ void openWallet() else _out << "Success!" << endl; - QMap<QString,QString> p; + TQMap<TQString,TQString> p; ret = wallet->readPasswordList("*", p); _out << "readPasswordList returned: " << ret << endl; _out << "readPasswordList returned " << p.keys().count() << " entries" << endl; - QMap<QString, QMap<QString, QString> > q; + TQMap<TQString, TQMap<TQString, TQString> > q; ret = wallet->readMapList("*", q); _out << "readMapList returned: " << ret << endl; _out << "readMapList returned " << q.keys().count() << " entries" << endl; - QMap<QString, QByteArray> s; + TQMap<TQString, TQByteArray> s; ret = wallet->readEntryList("*", s); _out << "readEntryList returned: " << ret << endl; _out << "readEntryList returned " << s.keys().count() << " entries" << endl; |