summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kbudgetview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:31:01 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:31:01 -0600
commit252fce5a2a5384702fbcc1c9987284d7bd2e6943 (patch)
treed5768ff1e9065f29bec60c94d31880b38b4e82f2 /kmymoney2/views/kbudgetview.cpp
parent69ef6c4beaa37474a2170d0bfe842de647f53102 (diff)
downloadkmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.tar.gz
kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmymoney2/views/kbudgetview.cpp')
-rw-r--r--kmymoney2/views/kbudgetview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/views/kbudgetview.cpp b/kmymoney2/views/kbudgetview.cpp
index 9002ceb..6cc6aa4 100644
--- a/kmymoney2/views/kbudgetview.cpp
+++ b/kmymoney2/views/kbudgetview.cpp
@@ -66,7 +66,7 @@ KBudgetListItem::KBudgetListItem(KListView *parent, const MyMoneyBudget& budget)
m_budget(budget)
{
setText(0, budget.name());
- setText(1, TQString("%1").tqarg(budget.budgetStart().year()));
+ setText(1, TQString("%1").arg(budget.budgetStart().year()));
// allow in column rename
setRenameEnabled(0, true);
@@ -230,7 +230,7 @@ void KBudgetView::loadBudgets(void)
m_budgetValue->clear();
// add the correct years to the drop down list
- TQDate date = TQDate::tqcurrentDate(Qt::LocalTime);
+ TQDate date = TQDate::currentDate(Qt::LocalTime);
int iStartYear = date.year() - m_iBudgetYearsBack;
m_yearList.clear();
@@ -485,8 +485,8 @@ void KBudgetView::askSave(void)
// check if the content of a currently selected budget was modified
// and ask to store the data
if (m_updateButton->isEnabled()) {
- if (KMessageBox::questionYesNo(this, TQString("<qt>%1</qt>").tqarg(
- i18n("Do you want to save the changes for <b>%1</b>").tqarg(m_budget.name())),
+ if (KMessageBox::questionYesNo(this, TQString("<qt>%1</qt>").arg(
+ i18n("Do you want to save the changes for <b>%1</b>").arg(m_budget.name())),
i18n("Save changes")) == KMessageBox::Yes) {
m_inSelection = true;
slotUpdateBudget();
@@ -609,7 +609,7 @@ void KBudgetView::slotRenameBudget(TQListViewItem* p , int /*col*/, const TQStri
if (KMessageBox::questionYesNo(this,
i18n("A budget with the name '%1' already exists. It is not advisable to have "
"multiple budgets with the same identification name. Are you sure you would like "
- "to rename the budget?").tqarg(new_name)) != KMessageBox::Yes)
+ "to rename the budget?").arg(new_name)) != KMessageBox::Yes)
{
p->setText(0,pBudget->budget().name());
return;
@@ -633,7 +633,7 @@ void KBudgetView::slotRenameBudget(TQListViewItem* p , int /*col*/, const TQStri
} catch(MyMoneyException *e) {
KMessageBox::detailedSorry(0, i18n("Unable to modify budget"),
- (e->what() + " " + i18n("thrown in") + " " + e->file()+ ":%1").tqarg(e->line()));
+ (e->what() + " " + i18n("thrown in") + " " + e->file()+ ":%1").arg(e->line()));
delete e;
}
}
@@ -734,7 +734,7 @@ void KBudgetView::slotResetBudget(void)
loadAccounts();
} catch(MyMoneyException *e) {
KMessageBox::detailedSorry(0, i18n("Unable to reset budget"),
- (e->what() + " " + i18n("thrown in") + " " + e->file()+ ":%1").tqarg(e->line()));
+ (e->what() + " " + i18n("thrown in") + " " + e->file()+ ":%1").arg(e->line()));
delete e;
}
}
@@ -748,7 +748,7 @@ void KBudgetView::slotUpdateBudget(void)
slotRefreshHideUnusedButton();
} catch(MyMoneyException *e) {
KMessageBox::detailedSorry(0, i18n("Unable to modify budget"),
- (e->what() + " " + i18n("thrown in") + " " + e->file()+ ":%1").tqarg(e->line()));
+ (e->what() + " " + i18n("thrown in") + " " + e->file()+ ":%1").arg(e->line()));
delete e;
}
}