Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kfindtransactiondlg.cpp
Context not available. | |||||
48 | 48 | | |||
---|---|---|---|---|---|
49 | #include "kmymoneyedit.h" | 49 | #include "kmymoneyedit.h" | ||
50 | #include "mymoneyfile.h" | 50 | #include "mymoneyfile.h" | ||
51 | #include "mymoneypayee.h" | ||||
52 | #include "mymoneytag.h" | ||||
51 | #include "kmymoneyglobalsettings.h" | 53 | #include "kmymoneyglobalsettings.h" | ||
52 | #include "register.h" | 54 | #include "register.h" | ||
53 | #include "transaction.h" | 55 | #include "transaction.h" | ||
Context not available. | |||||
211 | selectAllItems(m_ui->m_tagsView, true); | 213 | selectAllItems(m_ui->m_tagsView, true); | ||
212 | 214 | | |||
213 | m_ui->m_typeBox->setCurrentIndex(MyMoneyTransactionFilter::allTypes); | 215 | m_ui->m_typeBox->setCurrentIndex(MyMoneyTransactionFilter::allTypes); | ||
214 | m_ui->m_stateBox->setCurrentIndex(MyMoneyTransactionFilter::allStates); | 216 | m_ui->m_stateBox->setCurrentIndex((int)eMyMoney::TransactionFilter::State::All); | ||
215 | m_ui->m_validityBox->setCurrentIndex(MyMoneyTransactionFilter::anyValidity); | 217 | m_ui->m_validityBox->setCurrentIndex(MyMoneyTransactionFilter::anyValidity); | ||
216 | 218 | | |||
217 | m_ui->m_nrEdit->setEnabled(true); | 219 | m_ui->m_nrEdit->setEnabled(true); | ||
Context not available. | |||||
358 | { | 360 | { | ||
359 | m_ui->m_accountsView->setSelectionMode(QTreeWidget::MultiSelection); | 361 | m_ui->m_accountsView->setSelectionMode(QTreeWidget::MultiSelection); | ||
360 | AccountSet accountSet; | 362 | AccountSet accountSet; | ||
361 | accountSet.addAccountGroup(MyMoneyAccount::Asset); | 363 | accountSet.addAccountGroup(eMyMoney::Account::Asset); | ||
362 | accountSet.addAccountGroup(MyMoneyAccount::Liability); | 364 | accountSet.addAccountGroup(eMyMoney::Account::Liability); | ||
363 | 365 | | |||
364 | if (withEquityAccounts) | 366 | if (withEquityAccounts) | ||
365 | accountSet.addAccountGroup(MyMoneyAccount::Equity); | 367 | accountSet.addAccountGroup(eMyMoney::Account::Equity); | ||
366 | 368 | | |||
367 | //set the accountset to show closed account if the settings say so | 369 | //set the accountset to show closed account if the settings say so | ||
368 | accountSet.setHideClosedAccounts(KMyMoneyGlobalSettings::hideClosedAccounts()); | 370 | accountSet.setHideClosedAccounts(KMyMoneyGlobalSettings::hideClosedAccounts()); | ||
Context not available. | |||||
404 | { | 406 | { | ||
405 | m_ui->m_categoriesView->setSelectionMode(QTreeWidget::MultiSelection); | 407 | m_ui->m_categoriesView->setSelectionMode(QTreeWidget::MultiSelection); | ||
406 | AccountSet categorySet; | 408 | AccountSet categorySet; | ||
407 | categorySet.addAccountGroup(MyMoneyAccount::Income); | 409 | categorySet.addAccountGroup(eMyMoney::Account::Income); | ||
408 | categorySet.addAccountGroup(MyMoneyAccount::Expense); | 410 | categorySet.addAccountGroup(eMyMoney::Account::Expense); | ||
409 | categorySet.load(m_ui->m_categoriesView); | 411 | categorySet.load(m_ui->m_categoriesView); | ||
410 | connect(m_ui->m_categoriesView, SIGNAL(stateChanged()), this, SLOT(slotUpdateSelections())); | 412 | connect(m_ui->m_categoriesView, SIGNAL(stateChanged()), this, SLOT(slotUpdateSelections())); | ||
411 | } | 413 | } | ||
Context not available. | |||||
652 | QStringList::const_iterator it_a, it_b; | 654 | QStringList::const_iterator it_a, it_b; | ||
653 | for (it_a = list.constBegin(); it_a != list.constEnd(); ++it_a) { | 655 | for (it_a = list.constBegin(); it_a != list.constEnd(); ++it_a) { | ||
654 | MyMoneyAccount acc = MyMoneyFile::instance()->account(*it_a); | 656 | MyMoneyAccount acc = MyMoneyFile::instance()->account(*it_a); | ||
655 | if (acc.accountType() == MyMoneyAccount::Investment) { | 657 | if (acc.accountType() == eMyMoney::Account::Investment) { | ||
656 | for (it_b = acc.accountList().constBegin(); it_b != acc.accountList().constEnd(); ++it_b) { | 658 | for (it_b = acc.accountList().constBegin(); it_b != acc.accountList().constEnd(); ++it_b) { | ||
657 | if (!list.contains(*it_b)) { | 659 | if (!list.contains(*it_b)) { | ||
658 | missing.append(*it_b); | 660 | missing.append(*it_b); | ||
Context not available. |