summaryrefslogtreecommitdiffstats
path: root/kio/tests
diff options
context:
space:
mode:
Diffstat (limited to 'kio/tests')
-rw-r--r--kio/tests/dummymeta.cpp4
-rw-r--r--kio/tests/jobtest.cpp2
-rw-r--r--kio/tests/kdcopcheck.cpp12
-rw-r--r--kio/tests/kmfitest.cpp4
-rw-r--r--kio/tests/kmimetypetest.cpp8
-rw-r--r--kio/tests/kscantest.cpp2
-rw-r--r--kio/tests/ksycocatest.cpp12
-rw-r--r--kio/tests/kurlcompletiontest.cpp2
8 files changed, 23 insertions, 23 deletions
diff --git a/kio/tests/dummymeta.cpp b/kio/tests/dummymeta.cpp
index f0d1584c9..938b4d00b 100644
--- a/kio/tests/dummymeta.cpp
+++ b/kio/tests/dummymeta.cpp
@@ -8,12 +8,12 @@ DummyMeta::DummyMeta( TQObject *parent, const char *name,
const TQStringList &preferredItems )
: KFilePlugin( parent, name, preferredItems )
{
- qDebug("---- DummyMeta::DummyMeta: got %i preferred items.", preferredItems.count());
+ tqDebug("---- DummyMeta::DummyMeta: got %i preferred items.", preferredItems.count());
}
bool DummyMeta::readInfo( KFileMetaInfo::Internal & info )
{
- qDebug("#### DummyMeta:: readInfo: %s", info.path().latin1() );
+ tqDebug("#### DummyMeta:: readInfo: %s", info.path().latin1() );
return 0L;
}
diff --git a/kio/tests/jobtest.cpp b/kio/tests/jobtest.cpp
index c5dfba9d2..3ed748d90 100644
--- a/kio/tests/jobtest.cpp
+++ b/kio/tests/jobtest.cpp
@@ -151,7 +151,7 @@ static void setTimeStamp( const TQString& path )
utbuf.actime = tp.tv_sec - 30; // 30 seconds ago
utbuf.modtime = tp.tv_sec - 60; // 60 second ago
utime( TQFile::encodeName( path ), &utbuf );
- qDebug( "Time changed for %s", path.latin1() );
+ tqDebug( "Time changed for %s", path.latin1() );
#endif
}
diff --git a/kio/tests/kdcopcheck.cpp b/kio/tests/kdcopcheck.cpp
index b61dfd03d..7d373824e 100644
--- a/kio/tests/kdcopcheck.cpp
+++ b/kio/tests/kdcopcheck.cpp
@@ -64,17 +64,17 @@ void TestService::newApp(const TQCString &appId)
result = KService::DCOP_Multi;
stop();
}
- qWarning("Register %s", appId.data());
+ tqWarning("Register %s", appId.data());
}
void TestService::endApp(const TQCString &appId)
{
- qWarning("Unegister %s", appId.data());
+ tqWarning("Unegister %s", appId.data());
}
void TestService::appExit()
{
- qWarning("Exit");
+ tqWarning("Exit");
}
void TestService::stop()
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
KService::List list = KService::allServices();
- qWarning("I found %d services.", list.count());
+ tqWarning("I found %d services.", list.count());
int i = 0;
for(KService::List::ConstIterator it = list.begin(); it != list.end(); ++it)
{
@@ -121,12 +121,12 @@ int main(int argc, char *argv[])
else if (n == KService::DCOP_Multi)
result = "Multi";
- qWarning("%s %s", (*it)->desktopEntryPath().latin1(),
+ tqWarning("%s %s", (*it)->desktopEntryPath().latin1(),
result.latin1());
}
}
}
- qWarning("%d left after filtering.", i);
+ tqWarning("%d left after filtering.", i);
}
#include "kdcopcheck.moc"
diff --git a/kio/tests/kmfitest.cpp b/kio/tests/kmfitest.cpp
index 25e96759f..df37df997 100644
--- a/kio/tests/kmfitest.cpp
+++ b/kio/tests/kmfitest.cpp
@@ -17,10 +17,10 @@ int main (int argc, char **argv)
for (int i = 1; i < argc; i++) {
TQString file = TQFile::decodeName(argv[i]);
- qWarning("File: %s", file.local8Bit().data());
+ tqWarning("File: %s", file.local8Bit().data());
KMimeType::Ptr p;
p = KMimeType::findByPath(file);
- qWarning("Mime type (findByPath): %s", p->name().latin1());
+ tqWarning("Mime type (findByPath): %s", p->name().latin1());
KFileMetaInfo meta(file, TQString::null, KFileMetaInfo::TechnicalInfo | KFileMetaInfo::ContentInfo);
}
diff --git a/kio/tests/kmimetypetest.cpp b/kio/tests/kmimetypetest.cpp
index 1856e6036..5802a4084 100644
--- a/kio/tests/kmimetypetest.cpp
+++ b/kio/tests/kmimetypetest.cpp
@@ -29,9 +29,9 @@ static void checkIcon( const KURL& url, const TQString& expectedIcon )
{
TQString icon = KMimeType::iconForURL( url );
if ( icon == expectedIcon )
- qDebug( "icon for %s is %s, OK", url.prettyURL().latin1(), icon.latin1() );
+ tqDebug( "icon for %s is %s, OK", url.prettyURL().latin1(), icon.latin1() );
else {
- qDebug( "ERROR: icon for %s is %s, expected %s!", url.prettyURL().latin1(), icon.latin1(), expectedIcon.latin1() );
+ tqDebug( "ERROR: icon for %s is %s, expected %s!", url.prettyURL().latin1(), icon.latin1(), expectedIcon.latin1() );
exit(1);
}
}
@@ -65,11 +65,11 @@ int main( int argc, char** argv )
TQString pdf;
KMimeType::diagnoseFileName("foo.pdf", pdf);
- qDebug("extension: '%s'", pdf.latin1());
+ tqDebug("extension: '%s'", pdf.latin1());
assert(pdf == TQString("*.pdf"));
TQString ps;
KMimeType::diagnoseFileName("foo.ps", ps);
- qDebug("extension: '%s'", ps.latin1());
+ tqDebug("extension: '%s'", ps.latin1());
assert(ps == TQString("*.ps"));
return 0;
diff --git a/kio/tests/kscantest.cpp b/kio/tests/kscantest.cpp
index 9bc9d2ebc..347993af8 100644
--- a/kio/tests/kscantest.cpp
+++ b/kio/tests/kscantest.cpp
@@ -6,7 +6,7 @@ int main( int argc, char **argv )
KApplication app( argc, argv, "kscantest" );
KScanDialog *dlg = KScanDialog::getScanDialog();
if ( !dlg ) {
- qDebug("*** EEK, no Scan-service available, aborting!");
+ tqDebug("*** EEK, no Scan-service available, aborting!");
return 0;
}
diff --git a/kio/tests/ksycocatest.cpp b/kio/tests/ksycocatest.cpp
index 436ae7639..086836f37 100644
--- a/kio/tests/ksycocatest.cpp
+++ b/kio/tests/ksycocatest.cpp
@@ -71,19 +71,19 @@ int main(int argc, char *argv[])
TQCString instname = "kword";
TQString desktopPath = TQString::fromLatin1( "Office/%1.desktop" ).arg( instname );
- qDebug( "Looking for %s", desktopPath.latin1() );
+ tqDebug( "Looking for %s", desktopPath.latin1() );
KService::Ptr service = KService::serviceByDesktopPath( desktopPath );
if ( service )
- qDebug( "found: %s", service->desktopEntryPath().latin1() );
+ tqDebug( "found: %s", service->desktopEntryPath().latin1() );
else
- qDebug( "not found" );
+ tqDebug( "not found" );
- qDebug( "Looking for desktop name = %s", instname.data() );
+ tqDebug( "Looking for desktop name = %s", instname.data() );
service = KService::serviceByDesktopName( instname );
if ( service )
- qDebug( "found: %s", service->desktopEntryPath().latin1() );
+ tqDebug( "found: %s", service->desktopEntryPath().latin1() );
else
- qDebug( "not found" );
+ tqDebug( "not found" );
debug("Trying to look for text/plain");
KMimeType::Ptr s1 = KMimeType::mimeType("text/plain");
diff --git a/kio/tests/kurlcompletiontest.cpp b/kio/tests/kurlcompletiontest.cpp
index 612dab558..cd1919def 100644
--- a/kio/tests/kurlcompletiontest.cpp
+++ b/kio/tests/kurlcompletiontest.cpp
@@ -183,7 +183,7 @@ int main( int argc, char **argv )
test.testLocalURL();
test.teardown();
}
- qDebug( "All tests OK." );
+ tqDebug( "All tests OK." );
return 0;
}