summaryrefslogtreecommitdiffstats
path: root/kexi/tests/newapi/parser_test.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/tests/newapi/parser_test.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/tests/newapi/parser_test.h')
-rw-r--r--kexi/tests/newapi/parser_test.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/tests/newapi/parser_test.h b/kexi/tests/newapi/parser_test.h
index 14409961..90c25d7c 100644
--- a/kexi/tests/newapi/parser_test.h
+++ b/kexi/tests/newapi/parser_test.h
@@ -20,7 +20,7 @@
#ifndef PARSER_TEST_H
#define PARSER_TEST_H
-int parserTest(const char *st, const QStringList& params)
+int parserTest(const char *st, const TQStringList& params)
{
int r = 0;
@@ -31,10 +31,10 @@ int parserTest(const char *st, const QStringList& params)
KexiDB::Parser parser(conn);
- const bool ok = parser.parse(QString::fromLocal8Bit( st ));
+ const bool ok = parser.parse(TQString::fromLocal8Bit( st ));
KexiDB::QuerySchema *q = parser.query();
- QValueList<QVariant> variantParams;
- foreach( QStringList::ConstIterator, it, params )
+ TQValueList<TQVariant> variantParams;
+ foreach( TQStringList::ConstIterator, it, params )
variantParams.append(*it);
if (ok && q) {
cout << q->debugString().latin1() << '\n';
@@ -42,8 +42,8 @@ int parserTest(const char *st, const QStringList& params)
}
else {
KexiDB::ParserError err = parser.error();
- kdDebug() << QString("Error = %1\ntype = %2\nat = %3").arg(err.error())
- .arg(err.type()).arg(err.at()) << endl;
+ kdDebug() << TQString("Error = %1\ntype = %2\nat = %3").tqarg(err.error())
+ .tqarg(err.type()).tqarg(err.at()) << endl;
r = 1;
}
delete q;