diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:33:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:33:40 -0600 |
commit | 4fb897b216c41c13f128c71bcc66f60e2dc601c4 (patch) | |
tree | 2891b54cd6ec39db133da0110028ec93fc006751 /tdecore/tests | |
parent | 8fc8811ef6079a15decd33f1ea5d95dd718e4557 (diff) | |
download | tdelibs-4fb897b216c41c13f128c71bcc66f60e2dc601c4.tar.gz tdelibs-4fb897b216c41c13f128c71bcc66f60e2dc601c4.zip |
Rename additional global TQt functions
Diffstat (limited to 'tdecore/tests')
-rw-r--r-- | tdecore/tests/KIDLTest.cpp | 8 | ||||
-rw-r--r-- | tdecore/tests/KIDLTestClient.cpp | 2 | ||||
-rw-r--r-- | tdecore/tests/cplusplustest.cpp | 10 | ||||
-rw-r--r-- | tdecore/tests/kapptest.cpp | 4 | ||||
-rw-r--r-- | tdecore/tests/kconfigtest.cpp | 4 | ||||
-rw-r--r-- | tdecore/tests/klocaletest.cpp | 2 | ||||
-rw-r--r-- | tdecore/tests/ksocktest.cpp | 4 | ||||
-rw-r--r-- | tdecore/tests/ksortablevaluelisttest.cpp | 12 | ||||
-rw-r--r-- | tdecore/tests/kuniqueapptest.cpp | 2 | ||||
-rw-r--r-- | tdecore/tests/testqtargs.cpp | 10 |
10 files changed, 29 insertions, 29 deletions
diff --git a/tdecore/tests/KIDLTest.cpp b/tdecore/tests/KIDLTest.cpp index a763f85c8..e714bc52f 100644 --- a/tdecore/tests/KIDLTest.cpp +++ b/tdecore/tests/KIDLTest.cpp @@ -10,8 +10,8 @@ KIDLTest::KIDLTest( const TQCString& id ) TQString KIDLTest::hello( const TQString& name ) { - qDebug("Du heter %s", name.latin1() ); - qDebug("Ha det %s", name.latin1() ); + tqDebug("Du heter %s", name.latin1() ); + tqDebug("Ha det %s", name.latin1() ); return TQString("Jeg heter KIDLTest"); } @@ -23,11 +23,11 @@ int main( int argc, char** argv ) app.dcopClient()->attach(); app.dcopClient()->registerAs( "kidlservertest" ); - qDebug("Server process started..."); + tqDebug("Server process started..."); (void) new KIDLTest( "Hello" ); - qDebug("Server listening ..."); + tqDebug("Server listening ..."); return app.exec(); } diff --git a/tdecore/tests/KIDLTestClient.cpp b/tdecore/tests/KIDLTestClient.cpp index 21125bff5..87884c05a 100644 --- a/tdecore/tests/KIDLTestClient.cpp +++ b/tdecore/tests/KIDLTestClient.cpp @@ -13,5 +13,5 @@ int main( int argc, char** argv ) KIDLTest_stub* t = new KIDLTest_stub( "kidlservertest", "Hello" ); TQString ret = t->hello("Torben"); - qDebug("Server says: %s", ret.latin1() ); + tqDebug("Server says: %s", ret.latin1() ); } diff --git a/tdecore/tests/cplusplustest.cpp b/tdecore/tests/cplusplustest.cpp index 1f789fea7..288263256 100644 --- a/tdecore/tests/cplusplustest.cpp +++ b/tdecore/tests/cplusplustest.cpp @@ -32,13 +32,13 @@ int main(int , char *[]) A *pA = &obj; B *pB = &obj; C *pC = &obj; -qWarning("pA = %p, pB = %p, pC = %p", pA, pB, pC); - if (pA == pC) qWarning("pA == pC"); - if (pB == pC) qWarning("pB == pC"); +tqWarning("pA = %p, pB = %p, pC = %p", pA, pB, pC); + if (pA == pC) tqWarning("pA == pC"); + if (pB == pC) tqWarning("pB == pC"); dictA.insert("hello", pC); dictB.insert("hello", pC); - if (dictA["hello"] == pC) qWarning("dictA['hello'] == pC"); - if (dictB["hello"] == pC) qWarning("dictB['hello'] == pC"); + if (dictA["hello"] == pC) tqWarning("dictA['hello'] == pC"); + if (dictB["hello"] == pC) tqWarning("dictB['hello'] == pC"); } diff --git a/tdecore/tests/kapptest.cpp b/tdecore/tests/kapptest.cpp index 4a6465099..7e3b47f43 100644 --- a/tdecore/tests/kapptest.cpp +++ b/tdecore/tests/kapptest.cpp @@ -35,6 +35,6 @@ main(int argc, char *argv[]) KSycoca *s = KSycoca::self(); - qWarning("s->language() %s", s->language().latin1()); - qWarning("Offset of aIconName: %ld", (long) &(static_cast<KApplication *>(0)->aIconName)); + tqWarning("s->language() %s", s->language().latin1()); + tqWarning("Offset of aIconName: %ld", (long) &(static_cast<KApplication *>(0)->aIconName)); } diff --git a/tdecore/tests/kconfigtest.cpp b/tdecore/tests/kconfigtest.cpp index 1842b5036..384a328cc 100644 --- a/tdecore/tests/kconfigtest.cpp +++ b/tdecore/tests/kconfigtest.cpp @@ -88,7 +88,7 @@ void KConfigTest::writeConfigFile() // ### TODO: call this, and test the state of things afterwards void KConfigTest::revertEntries() { - qWarning("Reverting entries"); + tqWarning("Reverting entries"); KConfig sc( "kconfigtest" ); sc.setGroup("Hello"); @@ -115,7 +115,7 @@ void KConfigTest::allTests() bool bImmutable = sc3.entryIsImmutable("stringEntry1"); CHECK( bImmutable, false ); - //qWarning("sc3.entryIsImmutable() 1: %s", bImmutable ? "true" : "false"); + //tqWarning("sc3.entryIsImmutable() 1: %s", bImmutable ? "true" : "false"); sc2.setGroup("AAA"); CHECK( sc2.hasKey( "stringEntry1" ), true ); diff --git a/tdecore/tests/klocaletest.cpp b/tdecore/tests/klocaletest.cpp index 7323df34c..f752467d6 100644 --- a/tdecore/tests/klocaletest.cpp +++ b/tdecore/tests/klocaletest.cpp @@ -139,7 +139,7 @@ int main( int argc, char ** argv ) num = KGlobal::locale()->readNumber( "12,0000000", &ok ); check("readNumber(12,0000000)",ok?"yes":"no","no"); num = KGlobal::locale()->readNumber( "12,146,131.12", &ok ); check("readNumber(12,146,131.12)",ok?"yes":"no","yes"); num = KGlobal::locale()->readNumber( "1.12345678912", &ok ); - qDebug( "%s", TQString::number( num, 'g', 12 ).latin1() ); // warning this is the only way to see all decimals + tqDebug( "%s", TQString::number( num, 'g', 12 ).latin1() ); // warning this is the only way to see all decimals check("readNumber(1.12345678912)",ok && num==1.12345678912?"yes":"no","yes"); // bug 95511 KLocale locale(*KGlobal::locale()); diff --git a/tdecore/tests/ksocktest.cpp b/tdecore/tests/ksocktest.cpp index 042701c93..fe33ec771 100644 --- a/tdecore/tests/ksocktest.cpp +++ b/tdecore/tests/ksocktest.cpp @@ -77,7 +77,7 @@ main(int argc, char *argv[]) list = KExtendedSocket::lookup("www.kde.org", "http", KExtendedSocket::inetSocket); for(KAddressInfo *info = list.first(); info; info = list.next()) { - qWarning("Lookup: %s %s %s", info->address()->pretty().latin1(), + tqWarning("Lookup: %s %s %s", info->address()->pretty().latin1(), info->address()->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "is equal to" : "is NOT equal to", "213.203.58.36 port 80"); @@ -91,7 +91,7 @@ main(int argc, char *argv[]) TQPtrList<KAddressInfo> cns = KExtendedSocket::lookup("www.kde.org", 0, KExtendedSocket::canonName, &err); for (KAddressInfo *x = cns.first(); x; x = cns.next()) { const char *canon = x->canonname(); - qWarning( "Lookup: %s", canon ? canon : "<Null>"); + tqWarning( "Lookup: %s", canon ? canon : "<Null>"); } check("KExtendedSocket::lookup() canonical", cns.first()->canonname(), "www.kde.org"); diff --git a/tdecore/tests/ksortablevaluelisttest.cpp b/tdecore/tests/ksortablevaluelisttest.cpp index 301054045..09f39b933 100644 --- a/tdecore/tests/ksortablevaluelisttest.cpp +++ b/tdecore/tests/ksortablevaluelisttest.cpp @@ -14,19 +14,19 @@ int main( int argc, char **argv ) TQValueListIterator<KSortableItem<TQString> > it = list.begin(); - qDebug("Insertion order:"); - qDebug("================"); + tqDebug("Insertion order:"); + tqDebug("================"); for ( ; it != list.end(); ++it ) - qDebug( "%i: %s", (*it).index(), (*it).value().latin1() ); + tqDebug( "%i: %s", (*it).index(), (*it).value().latin1() ); list.sort(); - qDebug("\nSorted:"); - qDebug("======="); + tqDebug("\nSorted:"); + tqDebug("======="); it = list.begin(); for ( ; it != list.end(); ++it ) - qDebug( "%i: %s", (*it).index(), (*it).value().latin1() ); + tqDebug( "%i: %s", (*it).index(), (*it).value().latin1() ); return 0; } diff --git a/tdecore/tests/kuniqueapptest.cpp b/tdecore/tests/kuniqueapptest.cpp index 699c99539..b1d700c8b 100644 --- a/tdecore/tests/kuniqueapptest.cpp +++ b/tdecore/tests/kuniqueapptest.cpp @@ -36,7 +36,7 @@ public: int TestApp::newInstance( ) { - qWarning("NewInstance"); + tqWarning("NewInstance"); return 0; } diff --git a/tdecore/tests/testqtargs.cpp b/tdecore/tests/testqtargs.cpp index 0bbb0436b..661af6ad5 100644 --- a/tdecore/tests/testqtargs.cpp +++ b/tdecore/tests/testqtargs.cpp @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) { for (int i = 0; i < argc; i++) { - qDebug("argv[%d] = %s", i, argv[i]); + tqDebug("argv[%d] = %s", i, argv[i]); } KAboutData aboutData( "testqtargs", I18N_NOOP("testqtargs"), "1.0", I18N_NOOP("testqtargs"), KAboutData::License_GPL, @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt"); for (int i = 0; i < qtargs->count(); i++) { - qDebug("qt arg[%d] = %s", i, qtargs->arg(i)); + tqDebug("qt arg[%d] = %s", i, qtargs->arg(i)); } KApplication app; @@ -81,17 +81,17 @@ int main(int argc, char *argv[]) // An arg set by Qt if(qtargs->isSet("background")) { - qDebug("arg bg = %s", (const char*)qtargs->getOption("background")); + tqDebug("arg bg = %s", (const char*)qtargs->getOption("background")); } // An arg set by KDE if(kdeargs->isSet("caption")) { - qDebug("arg caption = %s", (const char*)kdeargs->getOption("caption")); + tqDebug("arg caption = %s", (const char*)kdeargs->getOption("caption")); } // An arg set by us. if(args->isSet("hello")) { - qDebug("arg hello = %s", (const char*)args->getOption("hello")); + tqDebug("arg hello = %s", (const char*)args->getOption("hello")); } args->clear(); |