summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/knewaccountdlg.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:56:17 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:56:17 -0600
commit1f9d00360b9018301630ce062d7dda0c6583edfb (patch)
tree1013b917f9a8ad41ed928d62250e9bfe1ed91414 /kmymoney2/dialogs/knewaccountdlg.cpp
parent252fce5a2a5384702fbcc1c9987284d7bd2e6943 (diff)
downloadkmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.tar.gz
kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 252fce5a2a5384702fbcc1c9987284d7bd2e6943.
Diffstat (limited to 'kmymoney2/dialogs/knewaccountdlg.cpp')
-rw-r--r--kmymoney2/dialogs/knewaccountdlg.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/dialogs/knewaccountdlg.cpp b/kmymoney2/dialogs/knewaccountdlg.cpp
index e67fb49..2f2748b 100644
--- a/kmymoney2/dialogs/knewaccountdlg.cpp
+++ b/kmymoney2/dialogs/knewaccountdlg.cpp
@@ -33,8 +33,8 @@
#include <tqtabwidget.h>
#include <tqbuttongroup.h>
#include <tqradiobutton.h>
-#include <textedit.h>
-#include <layout.h>
+#include <tqtextedit.h>
+#include <tqlayout.h>
#include <tqtabwidget.h>
// ----------------------------------------------------------------------------
@@ -289,7 +289,7 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo
}
if(!m_account.openingDate().isValid())
- m_account.setOpeningDate(TQDate::currentDate());
+ m_account.setOpeningDate(TQDate::tqcurrentDate());
startDateEdit->setDate(m_account.openingDate());
accountNoEdit->setText(account.number());
@@ -394,7 +394,7 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo
m_vatAssignment->setChecked(false);
// make sure our account does not have an id and no parent assigned
- // and certainly no children in case we create a new account
+ // and certainly no tqchildren in case we create a new account
if(!m_isEditing) {
m_account.clearId();
m_account.setParentAccountId(TQString());
@@ -549,7 +549,7 @@ void KNewAccountDlg::okClicked()
// we don't need this check anymore.
if(!file->nameToAccount(accountNameText).isEmpty()
&& (file->nameToAccount(accountNameText) != m_account.id())) {
- KMessageBox::error(this, TQString("<qt>")+i18n("An account named <b>%1</b> already exists. You cannot create a second account with the same name.").arg(accountNameText)+TQString("</qt>"));
+ KMessageBox::error(this, TQString("<qt>")+i18n("An account named <b>%1</b> already exists. You cannot create a second account with the same name.").tqarg(accountNameText)+TQString("</qt>"));
return;
}
#endif
@@ -564,7 +564,7 @@ void KNewAccountDlg::okClicked()
newName += accountNameText;
if(!file->categoryToAccount(newName, acctype).isEmpty()
&& (file->categoryToAccount(newName, acctype) != m_account.id())) {
- KMessageBox::error(this, TQString("<qt>")+i18n("A category named <b>%1</b> already exists. You cannot create a second category with the same name.").arg(newName)+TQString("</qt>"));
+ KMessageBox::error(this, TQString("<qt>")+i18n("A category named <b>%1</b> already exists. You cannot create a second category with the same name.").tqarg(newName)+TQString("</qt>"));
return;
}
}
@@ -669,7 +669,7 @@ const MyMoneyAccount& KNewAccountDlg::account(void)
break;
case 1:
case 2:
- m_account.setValue("priceMode", TQString("%1").arg(m_priceMode->currentItem()));
+ m_account.setValue("priceMode", TQString("%1").tqarg(m_priceMode->currentItem()));
break;
}
@@ -924,7 +924,7 @@ void KNewAccountDlg::initParentWidget(TQString parentId, const TQString& account
if (m_parentItem)
{
- m_subAccountLabel->setText(i18n("Is a sub account of %1").arg(m_parentAccount.name()));
+ m_subAccountLabel->setText(i18n("Is a sub account of %1").tqarg(m_parentAccount.name()));
m_parentItem->setOpen(true);
m_qlistviewParentAccounts->setSelected(m_parentItem, true);
}
@@ -976,7 +976,7 @@ void KNewAccountDlg::slotSelectionChanged(TQListViewItem *item)
//qDebug("Selected account id: %s", accountItem->accountID().data());
m_parentAccount = file->account(accountItem->id());
- m_subAccountLabel->setText(i18n("Is a sub account of %1").arg(m_parentAccount.name()));
+ m_subAccountLabel->setText(i18n("Is a sub account of %1").tqarg(m_parentAccount.name()));
if(m_qlistviewParentAccounts->isEnabled()) {
m_bSelectedParentAccount = true;
}