summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/knewaccountdlg.cpp
diff options
context:
space:
mode:
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 2f2748b..e67fb49 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 <tqtextedit.h>
-#include <tqlayout.h>
+#include <textedit.h>
+#include <layout.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::tqcurrentDate());
+ m_account.setOpeningDate(TQDate::currentDate());
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 tqchildren in case we create a new account
+ // and certainly no children 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.").tqarg(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.").arg(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.").tqarg(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.").arg(newName)+TQString("</qt>"));
return;
}
}
@@ -669,7 +669,7 @@ const MyMoneyAccount& KNewAccountDlg::account(void)
break;
case 1:
case 2:
- m_account.setValue("priceMode", TQString("%1").tqarg(m_priceMode->currentItem()));
+ m_account.setValue("priceMode", TQString("%1").arg(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").tqarg(m_parentAccount.name()));
+ m_subAccountLabel->setText(i18n("Is a sub account of %1").arg(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").tqarg(m_parentAccount.name()));
+ m_subAccountLabel->setText(i18n("Is a sub account of %1").arg(m_parentAccount.name()));
if(m_qlistviewParentAccounts->isEnabled()) {
m_bSelectedParentAccount = true;
}