Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/settings/ksettingsgeneral.cpp
Context not available. | |||||
32 | #include "kmymoneydateinput.h" | 32 | #include "kmymoneydateinput.h" | ||
---|---|---|---|---|---|
33 | #include "models.h" | 33 | #include "models.h" | ||
34 | #include "accountsmodel.h" | 34 | #include "accountsmodel.h" | ||
35 | #include "mymoneyfile.h" | ||||
36 | #include "mymoneyaccount.h" | ||||
35 | 37 | | |||
36 | KSettingsGeneral::KSettingsGeneral(QWidget* parent) : | 38 | KSettingsGeneral::KSettingsGeneral(QWidget* parent) : | ||
37 | KSettingsGeneralDecl(parent) | 39 | KSettingsGeneralDecl(parent) | ||
Context not available. | |||||
99 | foreach (const auto account, accountsList) { | 101 | foreach (const auto account, accountsList) { | ||
100 | if (account.isInvest() && account.balance().isZero()) { // search only for zero balance stocks | 102 | if (account.isInvest() && account.balance().isZero()) { // search only for zero balance stocks | ||
101 | if (initialHideZeroBalanceEquities) { | 103 | if (initialHideZeroBalanceEquities) { | ||
102 | accountsModel->slotObjectRemoved(MyMoneyFile::notifyAccount, account.id()); // remove item from accounts' page | 104 | accountsModel->slotObjectRemoved(eMyMoney::File::Object::Account, account.id()); // remove item from accounts' page | ||
103 | institutionsModel->slotObjectRemoved(MyMoneyFile::notifyAccount, account.id()); // remove item from institutions' page | 105 | institutionsModel->slotObjectRemoved(eMyMoney::File::Object::Account, account.id()); // remove item from institutions' page | ||
104 | } else { | 106 | } else { | ||
105 | accountsModel->slotObjectAdded(MyMoneyFile::notifyAccount, dynamic_cast<const MyMoneyObject* const>(&account)); // add item to accounts' page | 107 | accountsModel->slotObjectAdded(eMyMoney::File::Object::Account, dynamic_cast<const MyMoneyObject* const>(&account)); // add item to accounts' page | ||
106 | institutionsModel->slotObjectAdded(MyMoneyFile::notifyAccount, dynamic_cast<const MyMoneyObject* const>(&account)); // add item to institutions' page | 108 | institutionsModel->slotObjectAdded(eMyMoney::File::Object::Account, dynamic_cast<const MyMoneyObject* const>(&account)); // add item to institutions' page | ||
107 | } | 109 | } | ||
108 | } | 110 | } | ||
109 | } | 111 | } | ||
Context not available. |