summaryrefslogtreecommitdiffstats
path: root/lib/pilotDateEntry.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:32:24 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:32:24 -0600
commit631a19d8c5c5f69dc0d941c1997806fb422c79a6 (patch)
tree48a1a5d40ca2aa276b04f95398d9fba3fd9d7d8a /lib/pilotDateEntry.cc
parent87cd441352f3f2f1b2279bb47ebbb54ced81194f (diff)
downloadkpilot-631a19d8c5c5f69dc0d941c1997806fb422c79a6.tar.gz
kpilot-631a19d8c5c5f69dc0d941c1997806fb422c79a6.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'lib/pilotDateEntry.cc')
-rw-r--r--lib/pilotDateEntry.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/pilotDateEntry.cc b/lib/pilotDateEntry.cc
index 4a5fd3d..b11c057 100644
--- a/lib/pilotDateEntry.cc
+++ b/lib/pilotDateEntry.cc
@@ -170,13 +170,13 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
// title + name
text += par;
tmp=richText?CSL1("<b><big>%1</big></b>"):CSL1("%1");
- text += tmp.tqarg(rtExpand(getDescription(), richText));
+ text += tmp.arg(rtExpand(getDescription(), richText));
text += ps;
TQDateTime dt(readTm(getEventStart()));
TQString startDate(dt.toString(Qt::LocalDate));
text+=par;
- text+=i18n("Start date: %1").tqarg(startDate);
+ text+=i18n("Start date: %1").arg(startDate);
text+=ps;
if (isEvent())
@@ -190,7 +190,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
dt=readTm(getEventEnd());
TQString endDate(dt.toString(Qt::LocalDate));
text+=par;
- text+=i18n("End date: %1").tqarg(endDate);
+ text+=i18n("End date: %1").arg(endDate);
text+=ps;
}
@@ -201,10 +201,10 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
arg(getAdvance());
switch (getAdvanceUnits())
{
- case advMinutes: tmp=tmp.tqarg(i18n("minutes")); break;
- case advHours: tmp=tmp.tqarg(i18n("hours")); break;
- case advDays: tmp=tmp.tqarg(i18n("days")); break;
- default: tmp=tmp.tqarg(TQString()); break;;
+ case advMinutes: tmp=tmp.arg(i18n("minutes")); break;
+ case advHours: tmp=tmp.arg(i18n("hours")); break;
+ case advDays: tmp=tmp.arg(i18n("days")); break;
+ default: tmp=tmp.arg(TQString()); break;;
}
text+=tmp;
text+=ps;
@@ -215,16 +215,16 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
text+=par;
tmp=i18n("Recurrence: every %1 %2");
int freq = getRepeatFrequency();
- tmp=tmp.tqarg(freq);
+ tmp=tmp.arg(freq);
switch(getRepeatType())
{
- case repeatDaily: tmp=tmp.tqarg(i18n("day(s)")); break;
- case repeatWeekly: tmp=tmp.tqarg(i18n("week(s)")); break;
+ case repeatDaily: tmp=tmp.arg(i18n("day(s)")); break;
+ case repeatWeekly: tmp=tmp.arg(i18n("week(s)")); break;
case repeatMonthlyByDay:
- case repeatMonthlyByDate: tmp=tmp.tqarg(i18n("month(s)")); break;
- case repeatYearly: tmp=tmp.tqarg(i18n("year(s)")); break;
- default: tmp=tmp.tqarg(TQString()); break;
+ case repeatMonthlyByDate: tmp=tmp.arg(i18n("month(s)")); break;
+ case repeatYearly: tmp=tmp.arg(i18n("year(s)")); break;
+ default: tmp=tmp.arg(TQString()); break;
}
text+=tmp;
text+=br;
@@ -237,7 +237,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
else
{
dt = readTm(getRepeatEnd()).date();
- text+=i18n("Until %1").tqarg(dt.toString(Qt::LocalDate));
+ text+=i18n("Until %1").arg(dt.toString(Qt::LocalDate));
}
text+=br;
@@ -245,7 +245,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
if (getRepeatType()==repeatMonthlyByDate) text+=i18n("Repeating on the n-th day of the month")+br;
// TODO: show the dayArray when repeating weekly
/*TQBitArray dayArray(7);
- if (getRepeatType()==repeatWeekly) text+=i18n("Repeat day flags: %1").tqarg(getRepeatDays
+ if (getRepeatType()==repeatWeekly) text+=i18n("Repeat day flags: %1").arg(getRepeatDays
const int *days = dateEntry->getRepeatDays();
// Rotate the days of the week, since day numbers on the Pilot and
// in vCal / Events are different.