Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kmymoneysplittable.cpp
Context not available. | |||||
49 | // Project Includes | 49 | // Project Includes | ||
---|---|---|---|---|---|
50 | 50 | | |||
51 | #include "mymoneyfile.h" | 51 | #include "mymoneyfile.h" | ||
52 | #include "mymoneyprice.h" | ||||
52 | #include "kmymoneyedit.h" | 53 | #include "kmymoneyedit.h" | ||
53 | #include "kmymoneycategory.h" | 54 | #include "kmymoneycategory.h" | ||
54 | #include "kmymoneyaccountselector.h" | 55 | #include "kmymoneyaccountselector.h" | ||
Context not available. | |||||
677 | 678 | | |||
678 | // determine the fraction required for this category | 679 | // determine the fraction required for this category | ||
679 | int fract = toCurrency.smallestAccountFraction(); | 680 | int fract = toCurrency.smallestAccountFraction(); | ||
680 | if (cat.accountType() == MyMoneyAccount::Cash) | 681 | if (cat.accountType() == eMyMoney::Account::Cash) | ||
681 | fract = toCurrency.smallestCashFraction(); | 682 | fract = toCurrency.smallestCashFraction(); | ||
682 | 683 | | |||
683 | // display only positive values to the user | 684 | // display only positive values to the user | ||
Context not available. | |||||
900 | QString categoryId = m_editCategory->selectedItem(); | 901 | QString categoryId = m_editCategory->selectedItem(); | ||
901 | 902 | | |||
902 | AccountSet aSet; | 903 | AccountSet aSet; | ||
903 | aSet.addAccountGroup(MyMoneyAccount::Asset); | 904 | aSet.addAccountGroup(eMyMoney::Account::Asset); | ||
904 | aSet.addAccountGroup(MyMoneyAccount::Liability); | 905 | aSet.addAccountGroup(eMyMoney::Account::Liability); | ||
905 | aSet.addAccountGroup(MyMoneyAccount::Income); | 906 | aSet.addAccountGroup(eMyMoney::Account::Income); | ||
906 | aSet.addAccountGroup(MyMoneyAccount::Expense); | 907 | aSet.addAccountGroup(eMyMoney::Account::Expense); | ||
907 | if (KMyMoneyGlobalSettings::expertMode()) | 908 | if (KMyMoneyGlobalSettings::expertMode()) | ||
908 | aSet.addAccountGroup(MyMoneyAccount::Equity); | 909 | aSet.addAccountGroup(eMyMoney::Account::Equity); | ||
909 | 910 | | |||
910 | // remove the accounts with invalid types at this point | 911 | // remove the accounts with invalid types at this point | ||
911 | aSet.removeAccountType(MyMoneyAccount::CertificateDep); | 912 | aSet.removeAccountType(eMyMoney::Account::CertificateDep); | ||
912 | aSet.removeAccountType(MyMoneyAccount::Investment); | 913 | aSet.removeAccountType(eMyMoney::Account::Investment); | ||
913 | aSet.removeAccountType(MyMoneyAccount::Stock); | 914 | aSet.removeAccountType(eMyMoney::Account::Stock); | ||
914 | aSet.removeAccountType(MyMoneyAccount::MoneyMarket); | 915 | aSet.removeAccountType(eMyMoney::Account::MoneyMarket); | ||
915 | 916 | | |||
916 | aSet.load(m_editCategory->selector()); | 917 | aSet.load(m_editCategory->selector()); | ||
917 | 918 | | |||
Context not available. |