summaryrefslogtreecommitdiffstats
path: root/kwallet/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kwallet/tests
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-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')
-rw-r--r--kwallet/tests/kwalletasync.cpp10
-rw-r--r--kwallet/tests/kwalletboth.cpp16
-rw-r--r--kwallet/tests/kwalletsync.cpp6
-rw-r--r--kwallet/tests/kwallettest.h2
4 files changed, 17 insertions, 17 deletions
diff --git a/kwallet/tests/kwalletasync.cpp b/kwallet/tests/kwalletasync.cpp
index 0992c6e7d..6e5c22998 100644
--- a/kwallet/tests/kwalletasync.cpp
+++ b/kwallet/tests/kwalletasync.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,11 +22,11 @@ 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 start 30 second event loop" << endl;
- QTimer::singleShot( 30000, qApp, SLOT( quit() ) );
+ TQTimer::singleShot( 30000, qApp, TQT_SLOT( quit() ) );
int ret = qApp->exec();
if ( ret == 0 )
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;
diff --git a/kwallet/tests/kwalletsync.cpp b/kwallet/tests/kwalletsync.cpp
index d5eae13a3..3625a5cb6 100644
--- a/kwallet/tests/kwalletsync.cpp
+++ b/kwallet/tests/kwalletsync.cpp
@@ -1,5 +1,5 @@
-#include <qtextstream.h>
-#include <qtimer.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
#include <kaboutdata.h>
#include <kapplication.h>
@@ -10,7 +10,7 @@
#include <dcopclient.h>
#include <kwallet.h>
-static QTextStream _out( stdout, IO_WriteOnly );
+static TQTextStream _out( stdout, IO_WriteOnly );
void openWallet()
{
diff --git a/kwallet/tests/kwallettest.h b/kwallet/tests/kwallettest.h
index e3fe834f2..448cdb785 100644
--- a/kwallet/tests/kwallettest.h
+++ b/kwallet/tests/kwallettest.h
@@ -1,7 +1,7 @@
#ifndef KWALLETASYNC_H
#define KWALLETASYNC_H
-#include <qobject.h>
+#include <tqobject.h>
namespace KWallet { class Wallet; }