summaryrefslogtreecommitdiffstats
path: root/kpilot/tests/testcategories.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/tests/testcategories.cc')
-rw-r--r--kpilot/tests/testcategories.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/kpilot/tests/testcategories.cc b/kpilot/tests/testcategories.cc
index 1ecfebf66..aefb8b944 100644
--- a/kpilot/tests/testcategories.cc
+++ b/kpilot/tests/testcategories.cc
@@ -44,16 +44,16 @@
// Name of an actual DB
#define MEMO_NAME "MemoDB"
-QStringList categories( const PilotAppInfoBase *appinfo )
+TQStringList categories( const PilotAppInfoBase *appinfo )
{
- QStringList cats;
+ TQStringList cats;
for (unsigned int i=0; i<Pilot::CATEGORY_COUNT; i++)
{
- QString cat = appinfo->categoryName(i);
+ TQString cat = appinfo->categoryName(i);
if (!cat.isEmpty())
{
- QString s = CSL1("(%1:%2)").arg(i).arg(cat);
+ TQString s = CSL1("(%1:%2)").arg(i).arg(cat);
cats.append(s);
}
}
@@ -61,9 +61,9 @@ QStringList categories( const PilotAppInfoBase *appinfo )
return cats;
}
-QStringList listCategories( const QString &dir, const char *dbname )
+TQStringList listCategories( const TQString &dir, const char *dbname )
{
- QStringList cats;
+ TQStringList cats;
PilotLocalDatabase *database = new PilotLocalDatabase( dir, dbname );
if (!database->isOpen()) return cats;
@@ -90,7 +90,7 @@ void badAppInfoCreation()
KPILOT_DELETE( appinfo );
}
-void categoryNames( const QString &dir )
+void categoryNames( const TQString &dir )
{
PilotLocalDatabase *database = new PilotLocalDatabase( dir, MEMO_NAME );
if (!database->isOpen())
@@ -123,14 +123,14 @@ void categoryNames( const QString &dir )
DEBUGKPILOT << "# Expect three truncation errors and two bad category numbers." << endl;
for (unsigned int i=0; i<Pilot::CATEGORY_COUNT+2; i++)
{
- QString name = QString::fromLatin1(funnyname+funnyname_length-i-3);
+ TQString name = TQString::fromLatin1(funnyname+funnyname_length-i-3);
if (!appinfo->setCategoryName(i,name))
{
WARNINGKPILOT << "Failed to set category " << i << " name to <" << name << ">" << endl;
}
else
{
- QString categoryname = appinfo->categoryName(i);
+ TQString categoryname = appinfo->categoryName(i);
if (categoryname != name)
{
WARNINGKPILOT << "Category name " << i
@@ -179,7 +179,7 @@ int main(int argc, char **argv)
0L
};
- QString datadir = args->getOption("data-dir");
+ TQString datadir = args->getOption("data-dir");
DEBUGKPILOT << "### testcategories\n#\n#" << endl;
DEBUGKPILOT << "# Listing categories from database files.\n#" << endl;