Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kaccountselectdlg.cpp
Context not available. | |||||
96 | { | 96 | { | ||
---|---|---|---|---|---|
97 | AccountSet set; | 97 | AccountSet set; | ||
98 | if (m_accountType & KMyMoneyUtils::asset) | 98 | if (m_accountType & KMyMoneyUtils::asset) | ||
99 | set.addAccountGroup(MyMoneyAccount::Asset); | 99 | set.addAccountGroup(eMyMoney::Account::Asset); | ||
100 | if (m_accountType & KMyMoneyUtils::liability) | 100 | if (m_accountType & KMyMoneyUtils::liability) | ||
101 | set.addAccountGroup(MyMoneyAccount::Liability); | 101 | set.addAccountGroup(eMyMoney::Account::Liability); | ||
102 | if (m_accountType & KMyMoneyUtils::income) | 102 | if (m_accountType & KMyMoneyUtils::income) | ||
103 | set.addAccountGroup(MyMoneyAccount::Income); | 103 | set.addAccountGroup(eMyMoney::Account::Income); | ||
104 | if (m_accountType & KMyMoneyUtils::expense) | 104 | if (m_accountType & KMyMoneyUtils::expense) | ||
105 | set.addAccountGroup(MyMoneyAccount::Expense); | 105 | set.addAccountGroup(eMyMoney::Account::Expense); | ||
106 | if (m_accountType & KMyMoneyUtils::equity) | 106 | if (m_accountType & KMyMoneyUtils::equity) | ||
107 | set.addAccountGroup(MyMoneyAccount::Equity); | 107 | set.addAccountGroup(eMyMoney::Account::Equity); | ||
108 | if (m_accountType & KMyMoneyUtils::checking) | 108 | if (m_accountType & KMyMoneyUtils::checking) | ||
109 | set.addAccountType(MyMoneyAccount::Checkings); | 109 | set.addAccountType(eMyMoney::Account::Checkings); | ||
110 | if (m_accountType & KMyMoneyUtils::savings) | 110 | if (m_accountType & KMyMoneyUtils::savings) | ||
111 | set.addAccountType(MyMoneyAccount::Savings); | 111 | set.addAccountType(eMyMoney::Account::Savings); | ||
112 | if (m_accountType & KMyMoneyUtils::investment) | 112 | if (m_accountType & KMyMoneyUtils::investment) | ||
113 | set.addAccountType(MyMoneyAccount::Investment); | 113 | set.addAccountType(eMyMoney::Account::Investment); | ||
114 | if (m_accountType & KMyMoneyUtils::creditCard) | 114 | if (m_accountType & KMyMoneyUtils::creditCard) | ||
115 | set.addAccountType(MyMoneyAccount::CreditCard); | 115 | set.addAccountType(eMyMoney::Account::CreditCard); | ||
116 | 116 | | |||
117 | set.load(m_accountSelector->selector()); | 117 | set.load(m_accountSelector->selector()); | ||
118 | } | 118 | } | ||
Context not available. | |||||
148 | accept(); | 148 | accept(); | ||
149 | } | 149 | } | ||
150 | } else { | 150 | } else { | ||
151 | if (m_account.accountType() == MyMoneyAccount::Expense) | 151 | if (m_account.accountType() == eMyMoney::Account::Expense) | ||
152 | kmymoney->createCategory(m_account, MyMoneyFile::instance()->expense()); | 152 | kmymoney->createCategory(m_account, MyMoneyFile::instance()->expense()); | ||
153 | else | 153 | else | ||
154 | kmymoney->createCategory(m_account, MyMoneyFile::instance()->income()); | 154 | kmymoney->createCategory(m_account, MyMoneyFile::instance()->income()); | ||
Context not available. |