summaryrefslogtreecommitdiffstats
path: root/kpilot/tests/testdatabase.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kpilot/tests/testdatabase.cc
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpilot/tests/testdatabase.cc')
-rw-r--r--kpilot/tests/testdatabase.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpilot/tests/testdatabase.cc b/kpilot/tests/testdatabase.cc
index b1a4ddbe0..02b43c6be 100644
--- a/kpilot/tests/testdatabase.cc
+++ b/kpilot/tests/testdatabase.cc
@@ -105,7 +105,7 @@ int checkDatabase(const char *path, recordInfo *info)
{
FUNCTIONSETUP;
- PilotLocalDatabase db(QString::fromLatin1(path));
+ PilotLocalDatabase db(TQString::fromLatin1(path));
if (!db.isOpen())
{
kdDebug() << "No database " << path << endl;
@@ -166,9 +166,9 @@ const char *categoryNames[4] =
"impersonal"
} ;
-QStringList listCategories()
+TQStringList listCategories()
{
- QStringList cats;
+ TQStringList cats;
PilotLocalDatabase *l = new PilotLocalDatabase("./data/MemoDB");
PilotMemoInfo *m = new PilotMemoInfo(l);
@@ -186,12 +186,12 @@ QStringList listCategories()
for (int i=0; i<4; i++)
{
- QString s = m->category(i);
+ TQString s = m->category(i);
kdDebug() << "Category " << i << ": " << (s.isEmpty() ? CSL1("<empty>") : s) << endl;
cats.append(s);
/*
if (i<((sizeof(categoryNames) / sizeof(categoryNames[0]))))
- m->setCategoryName(i,QString::fromLatin1(categoryNames[i]));
+ m->setCategoryName(i,TQString::fromLatin1(categoryNames[i]));
*/
}
@@ -205,8 +205,8 @@ QStringList listCategories()
int checkCategories()
{
- QStringList l = listCategories();
- QStringList m = listCategories();
+ TQStringList l = listCategories();
+ TQStringList m = listCategories();
if (l.isEmpty() || m.isEmpty()) return ERR;
if (l!=m) return ERR;
@@ -221,7 +221,7 @@ int checkMemo()
PilotMemoInfo *m = new PilotMemoInfo(l);
m->dump();
- QString c = m->category(1);
+ TQString c = m->category(1);
if (c != CSL1("Business"))
{
kdDebug() << "* Category 1 is not 'Business' but " << c << endl;