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 /lib/pilotTodoEntry.cc | |
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 'lib/pilotTodoEntry.cc')
-rw-r--r-- | lib/pilotTodoEntry.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/pilotTodoEntry.cc b/lib/pilotTodoEntry.cc index 1ed9dfa..8aa17ec 100644 --- a/lib/pilotTodoEntry.cc +++ b/lib/pilotTodoEntry.cc @@ -115,17 +115,17 @@ PilotTodoEntry & PilotTodoEntry::operator = (const PilotTodoEntry & e) return *this; } -TQString PilotTodoEntry::getTextRepresentation(Qt::TextFormat richText) +TQString PilotTodoEntry::getTextRepresentation(TQt::TextFormat richText) { TQString text, tmp; - TQString par = (richText==Qt::RichText) ?CSL1("<p>"): TQString(); - TQString ps = (richText==Qt::RichText) ?CSL1("</p>"):CSL1("\n"); - TQString br = (richText==Qt::RichText) ?CSL1("<br/>"):CSL1("\n"); + TQString par = (richText==TQt::RichText) ?CSL1("<p>"): TQString(); + TQString ps = (richText==TQt::RichText) ?CSL1("</p>"):CSL1("\n"); + TQString br = (richText==TQt::RichText) ?CSL1("<br/>"):CSL1("\n"); // title + name text += par; - tmp= (richText==Qt::RichText) ?CSL1("<b><big>%1</big></b>"):CSL1("%1"); - text += tmp.arg(rtExpand(getDescription(), richText)); + tmp= (richText==TQt::RichText) ?CSL1("<b><big>%1</big></b>"):CSL1("%1"); + text += tmp.tqarg(rtExpand(getDescription(), richText)); text += ps; text += par; @@ -140,7 +140,7 @@ TQString PilotTodoEntry::getTextRepresentation(Qt::TextFormat richText) TQDate dt(readTm(getDueDate()).date()); TQString dueDate(dt.toString(Qt::LocalDate)); text+=par; - text+=i18n("Due date: %1").arg(dueDate); + text+=i18n("Due date: %1").tqarg(dueDate); text+=ps; } @@ -148,14 +148,14 @@ TQString PilotTodoEntry::getTextRepresentation(Qt::TextFormat richText) text+=ps; text+=par; - text+=i18n("Priority: %1").arg(getPriority()); + text+=i18n("Priority: %1").tqarg(getPriority()); text+=ps; if (!getNote().isEmpty()) { - text += (richText==Qt::RichText) ?CSL1("<hr/>"):CSL1("-------------------------\n"); + text += (richText==TQt::RichText) ?CSL1("<hr/>"):CSL1("-------------------------\n"); text+=par; - text+= (richText==Qt::RichText) ?i18n("<b><em>Note:</em></b><br>"):i18n("Note:\n"); + text+= (richText==TQt::RichText) ?i18n("<b><em>Note:</em></b><br>"):i18n("Note:\n"); text+=rtExpand(getNote(), richText); text+=ps; } |