summaryrefslogtreecommitdiffstats
path: root/kio/tests/ktradertest.cpp
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 /kio/tests/ktradertest.cpp
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 'kio/tests/ktradertest.cpp')
-rw-r--r--kio/tests/ktradertest.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kio/tests/ktradertest.cpp b/kio/tests/ktradertest.cpp
index 28d3730d6..34ce8e3bc 100644
--- a/kio/tests/ktradertest.cpp
+++ b/kio/tests/ktradertest.cpp
@@ -44,18 +44,18 @@ int main( int argc, char **argv )
if ( args->count() < 1 )
KCmdLineArgs::usage();
- QString query = QString::fromLocal8Bit( args->arg( 0 ) );
+ TQString query = TQString::fromLocal8Bit( args->arg( 0 ) );
- QString genericServiceType, constraint, preference;
+ TQString genericServiceType, constraint, preference;
if ( args->count() >= 2 )
- genericServiceType = QString::fromLocal8Bit( args->arg( 1 ) );
+ genericServiceType = TQString::fromLocal8Bit( args->arg( 1 ) );
if ( args->count() >= 3 )
- constraint = QString::fromLocal8Bit( args->arg( 2 ) );
+ constraint = TQString::fromLocal8Bit( args->arg( 2 ) );
if ( args->count() == 4 )
- preference = QString::fromLocal8Bit( args->arg( 3 ) );
+ preference = TQString::fromLocal8Bit( args->arg( 3 ) );
printf( "query is : %s\n", query.local8Bit().data() );
printf( "genericServiceType is : %s\n", genericServiceType.local8Bit().data() );
@@ -72,12 +72,12 @@ int main( int argc, char **argv )
for (; it != end; ++it, ++i )
{
printf("---- Offer %d ----\n", i);
- QStringList props = (*it)->propertyNames();
- QStringList::ConstIterator propIt = props.begin();
- QStringList::ConstIterator propEnd = props.end();
+ TQStringList props = (*it)->propertyNames();
+ TQStringList::ConstIterator propIt = props.begin();
+ TQStringList::ConstIterator propEnd = props.end();
for (; propIt != propEnd; ++propIt )
{
- QVariant prop = (*it)->property( *propIt );
+ TQVariant prop = (*it)->property( *propIt );
if ( !prop.isValid() )
{
@@ -85,15 +85,15 @@ int main( int argc, char **argv )
continue;
}
- QString outp = *propIt;
+ TQString outp = *propIt;
outp += " : '";
switch ( prop.type() )
{
- case QVariant::StringList:
+ case TQVariant::StringList:
outp += prop.toStringList().join(" - ");
break;
- case QVariant::Bool:
+ case TQVariant::Bool:
outp += prop.toBool() ? "TRUE" : "FALSE";
break;
default: