From 252fce5a2a5384702fbcc1c9987284d7bd2e6943 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:31:01 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- .../newaccountwizard/kaccounttypepagedecl.ui | 10 ++++----- .../wizards/newaccountwizard/kbrokeragepagedecl.ui | 6 ++--- .../newaccountwizard/kgeneralloaninfopagedecl.ui | 10 ++++----- .../wizards/newaccountwizard/khierarchypagedecl.ui | 2 +- .../newaccountwizard/kinstitutionpagedecl.ui | 8 +++---- .../newaccountwizard/kloandetailspagedecl.ui | 18 +++++++-------- .../newaccountwizard/kloanpaymentpagedecl.ui | 16 ++++++------- .../newaccountwizard/kloanpayoutpagedecl.ui | 4 ++-- .../newaccountwizard/kloanschedulepagedecl.ui | 12 +++++----- .../wizards/newaccountwizard/knewaccountwizard.cpp | 26 +++++++++++----------- .../wizards/newaccountwizard/kschedulepagedecl.ui | 6 ++--- 11 files changed, 59 insertions(+), 59 deletions(-) (limited to 'kmymoney2/wizards/newaccountwizard') diff --git a/kmymoney2/wizards/newaccountwizard/kaccounttypepagedecl.ui b/kmymoney2/wizards/newaccountwizard/kaccounttypepagedecl.ui index c6c7469..e21d8fd 100644 --- a/kmymoney2/wizards/newaccountwizard/kaccounttypepagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kaccounttypepagedecl.ui @@ -31,7 +31,7 @@ Enter the date the account was opened and its currency. - tqlayout9 + layout9 @@ -73,7 +73,7 @@ Enter the date the account was opened and its currency. m_openingBalance - + 150 0 @@ -216,7 +216,7 @@ Use the liability account type to manage any type of liability except amortizati Expanding - + 231 20 @@ -257,7 +257,7 @@ Use the liability account type to manage any type of liability except amortizati Expanding - + 61 21 @@ -276,7 +276,7 @@ Use the liability account type to manage any type of liability except amortizati Expanding - + 20 16 diff --git a/kmymoney2/wizards/newaccountwizard/kbrokeragepagedecl.ui b/kmymoney2/wizards/newaccountwizard/kbrokeragepagedecl.ui index a2dd327..551e79d 100644 --- a/kmymoney2/wizards/newaccountwizard/kbrokeragepagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kbrokeragepagedecl.ui @@ -61,7 +61,7 @@ - tqlayout8 + layout8 @@ -126,7 +126,7 @@ Expanding - + 30 20 @@ -145,7 +145,7 @@ Expanding - + 21 30 diff --git a/kmymoney2/wizards/newaccountwizard/kgeneralloaninfopagedecl.ui b/kmymoney2/wizards/newaccountwizard/kgeneralloaninfopagedecl.ui index 9025c77..e9b1c7e 100644 --- a/kmymoney2/wizards/newaccountwizard/kgeneralloaninfopagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kgeneralloaninfopagedecl.ui @@ -29,7 +29,7 @@ - tqlayout14 + layout14 @@ -37,7 +37,7 @@ - tqlayout13 + layout13 @@ -252,7 +252,7 @@ Enter the due date of the first payment in the current year - tqlayout48 + layout48 @@ -324,7 +324,7 @@ Enter the due date of the first payment in the current year Expanding - + 29 20 @@ -343,7 +343,7 @@ Enter the due date of the first payment in the current year Expanding - + 20 16 diff --git a/kmymoney2/wizards/newaccountwizard/khierarchypagedecl.ui b/kmymoney2/wizards/newaccountwizard/khierarchypagedecl.ui index 1380be1..be3c91c 100644 --- a/kmymoney2/wizards/newaccountwizard/khierarchypagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/khierarchypagedecl.ui @@ -67,7 +67,7 @@ Preferred - + 20 30 diff --git a/kmymoney2/wizards/newaccountwizard/kinstitutionpagedecl.ui b/kmymoney2/wizards/newaccountwizard/kinstitutionpagedecl.ui index 9beae8a..2b7b089 100644 --- a/kmymoney2/wizards/newaccountwizard/kinstitutionpagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kinstitutionpagedecl.ui @@ -33,7 +33,7 @@ Enter the account number used by the institution to identify the account. - tqlayout19 + layout19 @@ -41,7 +41,7 @@ Enter the account number used by the institution to identify the account. - tqlayout18 + layout18 @@ -124,7 +124,7 @@ KMyMoney keeps this field only for documentation purposes and does not use it ot Expanding - + 132 20 @@ -143,7 +143,7 @@ KMyMoney keeps this field only for documentation purposes and does not use it ot Expanding - + 20 40 diff --git a/kmymoney2/wizards/newaccountwizard/kloandetailspagedecl.ui b/kmymoney2/wizards/newaccountwizard/kloandetailspagedecl.ui index 2f5fb63..03fbaee 100644 --- a/kmymoney2/wizards/newaccountwizard/kloandetailspagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kloandetailspagedecl.ui @@ -37,7 +37,7 @@ Expanding - + 20 70 @@ -46,7 +46,7 @@ - tqlayout10 + layout10 @@ -54,7 +54,7 @@ - tqlayout9 + layout9 @@ -128,7 +128,7 @@ - tqlayout8 + layout8 @@ -186,7 +186,7 @@ - tqlayout53 + layout53 @@ -202,7 +202,7 @@ Expanding - + 71 20 @@ -235,7 +235,7 @@ Expanding - + 20 16 @@ -254,7 +254,7 @@ Expanding - + 27 21 @@ -273,7 +273,7 @@ Expanding - + 20 16 diff --git a/kmymoney2/wizards/newaccountwizard/kloanpaymentpagedecl.ui b/kmymoney2/wizards/newaccountwizard/kloanpaymentpagedecl.ui index 8d2deaf..328696e 100644 --- a/kmymoney2/wizards/newaccountwizard/kloanpaymentpagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kloanpaymentpagedecl.ui @@ -29,7 +29,7 @@ - tqlayout4 + layout4 @@ -45,7 +45,7 @@ Expanding - + 63 21 @@ -54,7 +54,7 @@ - tqlayout3 + layout3 @@ -80,7 +80,7 @@ xxx - + AlignVCenter|AlignRight @@ -112,7 +112,7 @@ xxx - + AlignVCenter|AlignRight @@ -136,7 +136,7 @@ xxx - + AlignVCenter|AlignRight @@ -152,7 +152,7 @@ Expanding - + 62 21 @@ -171,7 +171,7 @@ Expanding - + 20 20 diff --git a/kmymoney2/wizards/newaccountwizard/kloanpayoutpagedecl.ui b/kmymoney2/wizards/newaccountwizard/kloanpayoutpagedecl.ui index a955845..3385f6e 100644 --- a/kmymoney2/wizards/newaccountwizard/kloanpayoutpagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kloanpayoutpagedecl.ui @@ -135,7 +135,7 @@ If this loan is a 'consumer loan' (money to use however you want), you can use a Expanding - + 40 20 @@ -159,7 +159,7 @@ If this loan is a 'consumer loan' (money to use however you want), you can use a Expanding - + 20 20 diff --git a/kmymoney2/wizards/newaccountwizard/kloanschedulepagedecl.ui b/kmymoney2/wizards/newaccountwizard/kloanschedulepagedecl.ui index f99fe17..1ce9f1e 100644 --- a/kmymoney2/wizards/newaccountwizard/kloanschedulepagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kloanschedulepagedecl.ui @@ -30,7 +30,7 @@ If you selected to record all payments this date has already been supplied. If y - tqlayout54 + layout54 @@ -38,7 +38,7 @@ If you selected to record all payments this date has already been supplied. If y - tqlayout53 + layout53 @@ -86,7 +86,7 @@ If you selected to record all payments this date has already been supplied. If y - tqlayout52 + layout52 @@ -102,7 +102,7 @@ If you selected to record all payments this date has already been supplied. If y Expanding - + 61 20 @@ -128,7 +128,7 @@ If you selected to record all payments this date has already been supplied. If y Preferred - + 41 20 @@ -147,7 +147,7 @@ If you selected to record all payments this date has already been supplied. If y Expanding - + 20 21 diff --git a/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp b/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp index b4c481b..9d9b109 100644 --- a/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp +++ b/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp @@ -261,7 +261,7 @@ const MyMoneySchedule& NewAccountWizard::Wizard::schedule(void) m_schedule.setTransaction(t); } else if(m_account.isLoan()) { - m_schedule.setName(i18n("Loan payment for %1").tqarg(m_accountTypePage->m_accountName->text())); + m_schedule.setName(i18n("Loan payment for %1").arg(m_accountTypePage->m_accountName->text())); m_schedule.setType(MyMoneySchedule::TYPE_LOANPAYMENT); if(moneyBorrowed()) m_schedule.setPaymentType(MyMoneySchedule::STYPE_DIRECTDEBIT); @@ -694,7 +694,7 @@ CreditCardSchedulePage::CreditCardSchedulePage(Wizard* wizard, const char* name) void CreditCardSchedulePage::enterPage(void) { if(m_name->text().isEmpty()) - m_name->setText(i18n("CreditCard %1 monthly payment").tqarg(m_wizard->m_accountTypePage->m_accountName->text())); + m_name->setText(i18n("CreditCard %1 monthly payment").arg(m_wizard->m_accountTypePage->m_accountName->text())); } bool CreditCardSchedulePage::isComplete(void) const @@ -790,7 +790,7 @@ void GeneralLoanInfoPage::enterPage(void) { if(m_firstTime) { // setup default dates to last of this month and one year on top - TQDate firstDay(TQDate::tqcurrentDate().year(), TQDate::tqcurrentDate().month(), 1); + TQDate firstDay(TQDate::currentDate().year(), TQDate::currentDate().month(), 1); m_firstPaymentDate->setDate(firstDay.addMonths(1).addDays(-1)); m_interestChangeDateEdit->setDate(m_firstPaymentDate->date().addYears(1));; m_firstTime = false; @@ -959,14 +959,14 @@ void LoanDetailsPage::slotCalculate(void) val = calc.presentValue(); m_loanAmount->loadText(MyMoneyMoney(static_cast(val)).abs().formatMoney("", m_wizard->precision())); result = i18n("KMyMoney has calculated the amount of the loan as %1.") - .tqarg(m_loanAmount->lineedit()->text()); + .arg(m_loanAmount->lineedit()->text()); } else if(m_interestRate->lineedit()->text().isEmpty()) { // calculate the interest rate out of the other information val = calc.interestRate(); m_interestRate->loadText(MyMoneyMoney(static_cast(val)).abs().formatMoney("", 3)); result = i18n("KMyMoney has calculated the interest rate to %1%.") - .tqarg(m_interestRate->lineedit()->text()); + .arg(m_interestRate->lineedit()->text()); } else if(m_paymentAmount->lineedit()->text().isEmpty()) { // calculate the periodical amount of the payment out of the other information @@ -979,7 +979,7 @@ void LoanDetailsPage::slotCalculate(void) calc.setPmt(val); result = i18n("KMyMoney has calculated a periodic payment of %1 to cover principal and interest.") - .tqarg(m_paymentAmount->lineedit()->text()); + .arg(m_paymentAmount->lineedit()->text()); val = calc.futureValue(); if((moneyBorrowed && val < 0 && fabsl(val) >= fabsl(calc.payment())) @@ -991,7 +991,7 @@ void LoanDetailsPage::slotCalculate(void) m_balloonAmount->loadText(refVal.abs().formatMoney("", m_wizard->precision())); result += TQString(" "); result += i18n("The number of payments has been decremented and the balloon payment has been modified to %1.") - .tqarg(m_balloonAmount->lineedit()->text()); + .arg(m_balloonAmount->lineedit()->text()); } else if((moneyBorrowed && val < 0 && fabsl(val) < fabsl(calc.payment())) || (moneyLend && val > 0 && fabs(val) < fabs(calc.payment()))) { m_balloonAmount->loadText(MyMoneyMoney(0,1).formatMoney("", m_wizard->precision())); @@ -999,7 +999,7 @@ void LoanDetailsPage::slotCalculate(void) MyMoneyMoney refVal(static_cast(val)); m_balloonAmount->loadText(refVal.abs().formatMoney("", m_wizard->precision())); result += i18n("The balloon payment has been modified to %1.") - .tqarg(m_balloonAmount->lineedit()->text()); + .arg(m_balloonAmount->lineedit()->text()); } } else if(m_termAmount->value() == 0) { @@ -1011,7 +1011,7 @@ void LoanDetailsPage::slotCalculate(void) // if the number of payments has a fractional part, then we // round it to the smallest integer and calculate the balloon payment result = i18n("KMyMoney has calculated the term of your loan as %1. ") - .tqarg(updateTermWidgets(floorl(val))); + .arg(updateTermWidgets(floorl(val))); if(val != floorl(val)) { calc.setNpp(floorl(val)); @@ -1019,7 +1019,7 @@ void LoanDetailsPage::slotCalculate(void) MyMoneyMoney refVal(static_cast(val)); m_balloonAmount->loadText(refVal.abs().formatMoney("", m_wizard->precision())); result += i18n("The balloon payment has been modified to %1.") - .tqarg(m_balloonAmount->lineedit()->text()); + .arg(m_balloonAmount->lineedit()->text()); } } else { @@ -1050,7 +1050,7 @@ void LoanDetailsPage::slotCalculate(void) MyMoneyMoney refVal(static_cast(val)); result = i18n("KMyMoney has calculated a balloon payment of %1 for this loan.") - .tqarg(refVal.abs().formatMoney("", m_wizard->precision())); + .arg(refVal.abs().formatMoney("", m_wizard->precision())); if(!m_balloonAmount->lineedit()->text().isEmpty()) { if((m_balloonAmount->value().abs() - refVal.abs()).abs().toDouble() > 1) { @@ -1626,7 +1626,7 @@ void AccountSummaryPage::enterPage(void) if(m_wizard->m_brokeragepage->m_createBrokerageButton->isChecked()) { group = new KMyMoneyCheckListItem(m_dataList, group, i18n("Brokerage Account"), TQString(), TQString(), TQCheckListItem::RadioButtonController); group->setOpen(true); - p = new KListViewItem(group, p, i18n("Name"), TQString("%1 (Brokerage)").tqarg(acc.name())); + p = new KListViewItem(group, p, i18n("Name"), TQString("%1 (Brokerage)").arg(acc.name())); p = new KListViewItem(group, p, i18n("Currency"), m_wizard->m_brokeragepage->m_brokerageCurrency->security().name()); if(m_wizard->m_brokeragepage->m_accountNumber->isEnabled() && !m_wizard->m_brokeragepage->m_accountNumber->text().isEmpty()) p = new KListViewItem(group, p, i18n("Number"), m_wizard->m_brokeragepage->m_accountNumber->text()); @@ -1644,7 +1644,7 @@ void AccountSummaryPage::enterPage(void) } else { p = new KListViewItem(group, p, i18n("Amount lent"), m_wizard->m_loanDetailsPage->m_loanAmount->value().formatMoney(m_wizard->currency().tradingSymbol(), m_wizard->precision())); } - p = new KListViewItem(group, p, i18n("Interest rate"), TQString("%1 %").tqarg(m_wizard->m_loanDetailsPage->m_interestRate->value().formatMoney("", -1))); + p = new KListViewItem(group, p, i18n("Interest rate"), TQString("%1 %").arg(m_wizard->m_loanDetailsPage->m_interestRate->value().formatMoney("", -1))); p = new KListViewItem(group, p, i18n("Interest rate is"), m_wizard->m_generalLoanInfoPage->m_interestType->currentText()); p = new KListViewItem(group, p, i18n("Principal and interest"), m_wizard->m_loanDetailsPage->m_paymentAmount->value().formatMoney(acc, sec)); p = new KListViewItem(group, p, i18n("Additional fees"), m_wizard->m_loanPaymentPage->additionalFees().formatMoney(acc, sec)); diff --git a/kmymoney2/wizards/newaccountwizard/kschedulepagedecl.ui b/kmymoney2/wizards/newaccountwizard/kschedulepagedecl.ui index 8cd1194..aca76e6 100644 --- a/kmymoney2/wizards/newaccountwizard/kschedulepagedecl.ui +++ b/kmymoney2/wizards/newaccountwizard/kschedulepagedecl.ui @@ -64,7 +64,7 @@ 0 - + 180 0 @@ -132,7 +132,7 @@ Payment should be made from account - + AlignTop @@ -166,7 +166,7 @@ from account Expanding - + 20 31 -- cgit v1.2.1