diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:31:01 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:31:01 -0600 |
commit | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (patch) | |
tree | d5768ff1e9065f29bec60c94d31880b38b4e82f2 /kmymoney2/mymoney/mymoneyscheduled.cpp | |
parent | 69ef6c4beaa37474a2170d0bfe842de647f53102 (diff) | |
download | kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.tar.gz kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmymoney2/mymoney/mymoneyscheduled.cpp')
-rw-r--r-- | kmymoney2/mymoney/mymoneyscheduled.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/mymoney/mymoneyscheduled.cpp b/kmymoney2/mymoney/mymoneyscheduled.cpp index 594bc69..a2eb6dd 100644 --- a/kmymoney2/mymoney/mymoneyscheduled.cpp +++ b/kmymoney2/mymoney/mymoneyscheduled.cpp @@ -680,7 +680,7 @@ bool MyMoneySchedule::isOverdue() const if (isFinished()) return false; - if(adjustedNextDueDate() >= TQDate::tqcurrentDate()) + if(adjustedNextDueDate() >= TQDate::currentDate()) return false; return true; @@ -843,14 +843,14 @@ TQString MyMoneySchedule::occurenceToString(int mult, occurenceE type) switch (mult) { case 1: occurenceString = I18N_NOOP("Once"); break; - default: occurenceString = I18N_NOOP(static_cast<TQString>("%1 times").tqarg(mult)); + default: occurenceString = I18N_NOOP(static_cast<TQString>("%1 times").arg(mult)); } else if(type == MyMoneySchedule::OCCUR_DAILY) switch (mult) { case 1: occurenceString = I18N_NOOP("Daily"); break; case 30: occurenceString = I18N_NOOP("Every thirty days"); break; - default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 days").tqarg(mult)); + default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 days").arg(mult)); } else if(type == MyMoneySchedule::OCCUR_WEEKLY) switch (mult) @@ -860,13 +860,13 @@ TQString MyMoneySchedule::occurenceToString(int mult, occurenceE type) case 3: occurenceString = I18N_NOOP("Every three weeks"); break; case 4: occurenceString = I18N_NOOP("Every four weeks"); break; case 8: occurenceString = I18N_NOOP("Every eight weeks"); break; - default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 weeks").tqarg(mult)); + default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 weeks").arg(mult)); } else if(type == MyMoneySchedule::OCCUR_EVERYHALFMONTH) switch (mult) { case 1: occurenceString = I18N_NOOP("Every half month"); break; - default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 half months").tqarg(mult)); + default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 half months").arg(mult)); } else if(type == MyMoneySchedule::OCCUR_MONTHLY) switch (mult) @@ -876,14 +876,14 @@ TQString MyMoneySchedule::occurenceToString(int mult, occurenceE type) case 3: occurenceString = I18N_NOOP("Every three months"); break; case 4: occurenceString = I18N_NOOP("Every four months"); break; case 6: occurenceString = I18N_NOOP("Twice yearly"); break; - default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 months").tqarg(mult)); + default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 months").arg(mult)); } else if(type == MyMoneySchedule::OCCUR_YEARLY) switch (mult) { case 1: occurenceString = I18N_NOOP("Yearly"); break; case 2: occurenceString = I18N_NOOP("Every other year"); break; - default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 years").tqarg(mult)); + default: occurenceString = I18N_NOOP(static_cast<TQString>("Every %1 years").arg(mult)); } return occurenceString; } @@ -1008,7 +1008,7 @@ void MyMoneySchedule::setVariation(int var) #if 0 deletePair("kmm-variation"); if(var != 0) - setValue("kmm-variation", TQString("%1").tqarg(var)); + setValue("kmm-variation", TQString("%1").arg(var)); #endif } |