diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 00:37:32 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 00:37:32 +0000 |
commit | f6f9c296c3f9d39a8c3d0ee64a542a47f450be28 (patch) | |
tree | d38fce8091ce66977004a5cb115768c7810aee30 /tests | |
parent | e340db64991a06761aa6395ffe760b53e4c1dfbc (diff) | |
download | kpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.tar.gz kpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.zip |
TQt4 port kpilot
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1238903 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tests')
-rw-r--r-- | tests/exportdatebook.cc | 2 | ||||
-rw-r--r-- | tests/mergecalendars.cc | 6 | ||||
-rw-r--r-- | tests/testaddress.cc | 2 | ||||
-rw-r--r-- | tests/testcategories.cc | 2 | ||||
-rw-r--r-- | tests/testdatebook.cc | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/exportdatebook.cc b/tests/exportdatebook.cc index d4cf8c5..18bbf34 100644 --- a/tests/exportdatebook.cc +++ b/tests/exportdatebook.cc @@ -123,7 +123,7 @@ int main(int argc, char **argv) KCalSync::setEvent(event, d,*fAppointmentAppInfo->categoryInfo()); - event->setSyncStatus( KCal::Incidence::SYNCNONE ); + event->setSynctqStatus( KCal::Incidence::SYNCNONE ); calendar->addEvent(event); diff --git a/tests/mergecalendars.cc b/tests/mergecalendars.cc index 5e31c33..0d390aa 100644 --- a/tests/mergecalendars.cc +++ b/tests/mergecalendars.cc @@ -84,8 +84,8 @@ int main(int argc, char **argv) return 1; } - TQString korgsave = TQString("%1.updated").arg(korgfile); - TQString newfilesave = TQString("%1.updated").arg(newfile); + TQString korgsave = TQString("%1.updated").tqarg(korgfile); + TQString newfilesave = TQString("%1.updated").tqarg(newfile); DEBUGKPILOT << "Using korgfile: [" << korgfile << "]" << endl; @@ -154,7 +154,7 @@ int main(int argc, char **argv) << pilotId << "]" << endl; ev->setPilotId(pilotId); - ev->setSyncStatus(KCal::Incidence::SYNCMOD); + ev->setSynctqStatus(KCal::Incidence::SYNCMOD); ++numkorgpilotids; } diff --git a/tests/testaddress.cc b/tests/testaddress.cc index 5da0c44..9f9f44e 100644 --- a/tests/testaddress.cc +++ b/tests/testaddress.cc @@ -81,7 +81,7 @@ int main(int argc, char **argv) { DEBUGKPILOT << "# Record @" << (void *)r << " ID=" << r->id() << endl; PilotAddress a( r ); - DEBUGKPILOT << "# Text Representation:" << endl << a.getTextRepresentation(&appinfo,Qt::PlainText) << endl; + DEBUGKPILOT << "# Text Representation:" << endl << a.getTextRepresentation(&appinfo,TQt::PlainText) << endl; DEBUGKPILOT << "# Category#" << a.category() << endl; DEBUGKPILOT << "# Category Label " << appinfo.categoryName(a.category()) << endl; DEBUGKPILOT << "# ID " << a.id() << endl; diff --git a/tests/testcategories.cc b/tests/testcategories.cc index 674fa5b..a29a307 100644 --- a/tests/testcategories.cc +++ b/tests/testcategories.cc @@ -53,7 +53,7 @@ TQStringList categories( const PilotAppInfoBase *appinfo ) TQString cat = appinfo->categoryName(i); if (!cat.isEmpty()) { - TQString s = CSL1("(%1:%2)").arg(i).arg(cat); + TQString s = CSL1("(%1:%2)").tqarg(i).tqarg(cat); cats.append(s); } } diff --git a/tests/testdatebook.cc b/tests/testdatebook.cc index 8e6cc55..5cc0b7d 100644 --- a/tests/testdatebook.cc +++ b/tests/testdatebook.cc @@ -79,7 +79,7 @@ int main(int argc, char **argv) { DEBUGKPILOT << "# Record @" << (void *)r << " ID=" << r->id() << endl; PilotDateEntry a( r ); - DEBUGKPILOT << "# Text Representation:" << endl << a.getTextRepresentation(Qt::PlainText) << endl; + DEBUGKPILOT << "# Text Representation:" << endl << a.getTextRepresentation(TQt::PlainText) << endl; DEBUGKPILOT << "# Category#" << a.category() << endl; DEBUGKPILOT << "# Category Label " << appinfo.categoryName(a.category()) << endl; DEBUGKPILOT << "# ID " << a.id() << endl; |