diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 17:34:53 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 17:51:33 +0900 |
commit | 1329ec6abbcb7b79cd960e0ca138f16598d5f11f (patch) | |
tree | 8b64fab3a352aada6a046f69f1f7e8a6ad819594 /kopete/libkopete/tests | |
parent | 69c2eb8d5f2ed64c876b2a1081cc83ed9f4652d3 (diff) | |
download | tdenetwork-1329ec6abbcb7b79cd960e0ca138f16598d5f11f.tar.gz tdenetwork-1329ec6abbcb7b79cd960e0ca138f16598d5f11f.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kopete/libkopete/tests')
-rw-r--r-- | kopete/libkopete/tests/kopetepasswordtest_program.cpp | 6 | ||||
-rw-r--r-- | kopete/libkopete/tests/kopetewallettest_program.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/kopete/libkopete/tests/kopetepasswordtest_program.cpp b/kopete/libkopete/tests/kopetepasswordtest_program.cpp index 42649d74..b53394b3 100644 --- a/kopete/libkopete/tests/kopetepasswordtest_program.cpp +++ b/kopete/libkopete/tests/kopetepasswordtest_program.cpp @@ -45,9 +45,9 @@ using namespace Kopete; TQString retrieve( Password &pwd, const TQPixmap &image, const TQString &prompt ) { PasswordRetriever r; - pwd.request( &r, TQT_SLOT( gotPassword( const TQString & ) ), image, prompt ); + pwd.request( &r, TQ_SLOT( gotPassword( const TQString & ) ), image, prompt ); TQTimer tmr; - r.connect( &tmr, TQT_SIGNAL( timeout() ), TQT_SLOT( timer() ) ); + r.connect( &tmr, TQ_SIGNAL( timeout() ), TQ_SLOT( timer() ) ); tmr.start( 1000 ); tqApp->exec(); return r.password; @@ -112,7 +112,7 @@ int main( int argc, char *argv[] ) // without this, setting passwords will fail since they're // set asynchronously. - TQTimer::singleShot( 0, &app, TQT_SLOT( deref() ) ); + TQTimer::singleShot( 0, &app, TQ_SLOT( deref() ) ); app.exec(); if ( setPassword ) diff --git a/kopete/libkopete/tests/kopetewallettest_program.cpp b/kopete/libkopete/tests/kopetewallettest_program.cpp index a8ea1fd8..f127ba26 100644 --- a/kopete/libkopete/tests/kopetewallettest_program.cpp +++ b/kopete/libkopete/tests/kopetewallettest_program.cpp @@ -38,7 +38,7 @@ void closeWallet() void delay() { - TQTimer::singleShot( 3000, tqApp, TQT_SLOT( quit() ) ); + TQTimer::singleShot( 3000, tqApp, TQ_SLOT( quit() ) ); tqApp->exec(); } @@ -46,7 +46,7 @@ void openWalletAsync() { WalletReciever *r = new WalletReciever; _out << "[ASYNC] About to open wallet, receiver: " << r << endl; - Kopete::WalletManager::self()->openWallet( r, TQT_SLOT( gotWallet( TDEWallet::Wallet* ) ) ); + Kopete::WalletManager::self()->openWallet( r, TQ_SLOT( gotWallet( TDEWallet::Wallet* ) ) ); } void WalletReciever::gotWallet( TDEWallet::Wallet *w ) @@ -85,11 +85,11 @@ int main( int argc, char *argv[] ) WalletReciever *r = new WalletReciever; TQTimer timer; - r->connect( &timer, TQT_SIGNAL( timeout() ), TQT_SLOT( timer() ) ); + r->connect( &timer, TQ_SIGNAL( timeout() ), TQ_SLOT( timer() ) ); timer.start( 1000 ); _out << "About to start 30 second event loop" << endl; - TQTimer::singleShot( 30000, tqApp, TQT_SLOT( quit() ) ); + TQTimer::singleShot( 30000, tqApp, TQ_SLOT( quit() ) ); return tqApp->exec(); } |