diff options
Diffstat (limited to 'kexi/tests/newapi/main.cpp')
-rw-r--r-- | kexi/tests/newapi/main.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kexi/tests/newapi/main.cpp b/kexi/tests/newapi/main.cpp index 514538f3..ba232d5f 100644 --- a/kexi/tests/newapi/main.cpp +++ b/kexi/tests/newapi/main.cpp @@ -17,8 +17,8 @@ * Boston, MA 02110-1301, USA. */ -#include <qfileinfo.h> -#include <qguardedptr.h> +#include <tqfileinfo.h> +#include <tqguardedptr.h> #include <kdebug.h> #include <kcmdlineargs.h> @@ -41,16 +41,16 @@ using namespace std; -QCString prgname; -QCString db_name; -QCString drv_name; -QCString test_name; +TQCString prgname; +TQCString db_name; +TQCString drv_name; +TQCString test_name; int cursor_options = 0; bool db_name_required = true; KexiDB::ConnectionData conn_data; -QGuardedPtr<KexiDB::Connection> conn; -QGuardedPtr<KexiDB::Driver> driver; +TQGuardedPtr<KexiDB::Connection> conn; +TQGuardedPtr<KexiDB::Driver> driver; KApplication *app = 0; KInstance *instance = 0; @@ -75,7 +75,7 @@ static KCmdLineOptions options[] = " to be buffered", 0}, { "query-params <params>", "Query parameters separated\n" "by '|' character that will be passed to query\n" - "statement to replace [...] placeholders.", 0 }, + "statement to tqreplace [...] placeholders.", 0 }, { "", " Notes:\n" "1. 'dr_prop' requires <db_name> argument.\n" "2. 'parser' test requires <db_name>,\n" @@ -112,7 +112,7 @@ int main(int argc, char** argv) usage(); RETURN(0); }*/ - QFileInfo info=QFileInfo(argv[0]); + TQFileInfo info=TQFileInfo(argv[0]); prgname = info.baseName().latin1(); KCmdLineArgs::init(argc, argv, @@ -136,8 +136,8 @@ int main(int argc, char** argv) RETURN(1); } test_name = args->getOption("test"); - if (!tests.contains(test_name)) { - kdDebug() << QString("No such test \"%1\". Use --help.").arg(test_name) << endl; + if (!tests.tqcontains(test_name)) { + kdDebug() << TQString("No such test \"%1\". Use --help.").tqarg(test_name.data()) << endl; RETURN(1); } @@ -152,7 +152,7 @@ int main(int argc, char** argv) db_name_required = false; } if ((int)args->count()<minargs) { - kdDebug() << QString("Not enough args (%1 required). Use --help.").arg(minargs) << endl; + kdDebug() << TQString("Not enough args (%1 required). Use --help.").tqarg(minargs) << endl; RETURN(1); } @@ -168,9 +168,9 @@ int main(int argc, char** argv) drv_name = args->arg(0); KexiDB::DriverManager manager; - QStringList names = manager.driverNames(); + TQStringList names = manager.driverNames(); kdDebug() << "DRIVERS: " << endl; - for (QStringList::ConstIterator it = names.constBegin(); it != names.constEnd() ; ++it) + for (TQStringList::ConstIterator it = names.constBegin(); it != names.constEnd() ; ++it) kdDebug() << *it << endl; if (manager.error() || names.isEmpty()) { manager.debugError(); @@ -223,9 +223,9 @@ int main(int argc, char** argv) else if (test_name == "tableview") r=tableViewTest(); else if (test_name == "parser") { - QStringList params; + TQStringList params; if (args->isSet("query-params")) - params = QStringList::split("|", args->getOption("query-params")); + params = TQStringList::split("|", args->getOption("query-params")); r=parserTest(args->arg(2), params); } else if (test_name == "dr_prop") |