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.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kmymoney2/dialogs/knewaccountdlg.cpp b/kmymoney2/dialogs/knewaccountdlg.cpp
index 529fbf8..2f2748b 100644
--- a/kmymoney2/dialogs/knewaccountdlg.cpp
+++ b/kmymoney2/dialogs/knewaccountdlg.cpp
@@ -88,8 +88,8 @@
#define KMM_KDCHART_PROPSET_NORMAL_DATA KDCHART_PROPSET_NORMAL_DATA
#endif
-KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bool categoryEditor, TQWidget *tqparent, const char *name, const TQString& title)
- : KNewAccountDlgDecl(tqparent,name,true),
+KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bool categoryEditor, TQWidget *parent, const char *name, const TQString& title)
+ : KNewAccountDlgDecl(parent,name,true),
m_account(account),
m_bSelectedParentAccount(false),
m_categoryEditor(categoryEditor),
@@ -393,7 +393,7 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo
m_vatCategory->setChecked(false);
m_vatAssignment->setChecked(false);
- // make sure our account does not have an id and no tqparent assigned
+ // make sure our account does not have an id and no parent assigned
// and certainly no tqchildren in case we create a new account
if(!m_isEditing) {
m_account.clearId();
@@ -403,7 +403,7 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo
m_account.removeAccountId(*it);
if(m_parentItem == 0) {
- // force loading of initial tqparent
+ // force loading of initial parent
m_account.setAccountType(MyMoneyAccount::UnknownAccountType);
MyMoneyAccount::_accountTypeE type = account.accountType();
if(type == MyMoneyAccount::UnknownAccountType)
@@ -476,10 +476,10 @@ void KNewAccountDlg::okClicked()
return;
}
- MyMoneyAccount tqparent = parentAccount();
- if (tqparent.name().length() == 0)
+ MyMoneyAccount parent = parentAccount();
+ if (parent.name().length() == 0)
{
- KMessageBox::error(this, i18n("Please select a tqparent account."));
+ KMessageBox::error(this, i18n("Please select a parent account."));
return;
}
@@ -538,10 +538,10 @@ void KNewAccountDlg::okClicked()
if (!m_categoryEditor)
{
acctype = KMyMoneyUtils::stringToAccountType(typeCombo->currentText());
- // If it's a loan, check if the tqparent is asset or liability. In
+ // If it's a loan, check if the parent is asset or liability. In
// case of asset, we change the account type to be AssetLoan
if(acctype == MyMoneyAccount::Loan
- && tqparent.accountGroup() == MyMoneyAccount::Asset)
+ && parent.accountGroup() == MyMoneyAccount::Asset)
acctype = MyMoneyAccount::AssetLoan;
#if 0
@@ -556,10 +556,10 @@ void KNewAccountDlg::okClicked()
}
else
{
- acctype = tqparent.accountGroup();
+ acctype = parent.accountGroup();
TQString newName;
- if(!MyMoneyFile::instance()->isStandardAccount(tqparent.id())) {
- newName = MyMoneyFile::instance()->accountToCategory(tqparent.id()) + MyMoneyFile::AccountSeperator;
+ if(!MyMoneyFile::instance()->isStandardAccount(parent.id())) {
+ newName = MyMoneyFile::instance()->accountToCategory(parent.id()) + MyMoneyFile::AccountSeperator;
}
newName += accountNameText;
if(!file->categoryToAccount(newName, acctype).isEmpty()
@@ -723,7 +723,7 @@ void KNewAccountDlg::initParentWidget(TQString parentId, const TQString& account
m_parentItem = 0;
m_accountItem = 0;
- // Determine the tqparent account
+ // Determine the parent account
try
{
m_parentAccount = file->account(parentId);
@@ -748,7 +748,7 @@ void KNewAccountDlg::initParentWidget(TQString parentId, const TQString& account
m_qlistviewParentAccounts->clear();
- // Now scan all 4 account roots to load the list and mark the tqparent
+ // Now scan all 4 account roots to load the list and mark the parent
try
{
if (!m_categoryEditor)