Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/wizards/newaccountwizard/kaccounttypepage.cpp
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Line(s) | 242 | if (acc.accountType() == Account::Type::AssetLoan) { | |||
---|---|---|---|---|---|
244 | } else { | 244 | } else { | ||
245 | d->ui->m_typeSelection->setCurrentItem((int)acc.accountType()); | 245 | d->ui->m_typeSelection->setCurrentItem((int)acc.accountType()); | ||
246 | } | 246 | } | ||
247 | } | 247 | } | ||
248 | d->ui->m_openingDate->setDate(acc.openingDate()); | 248 | d->ui->m_openingDate->setDate(acc.openingDate()); | ||
249 | d->ui->m_accountName->setText(acc.name()); | 249 | d->ui->m_accountName->setText(acc.name()); | ||
250 | } | 250 | } | ||
251 | 251 | | |||
252 | const MyMoneyAccount& AccountTypePage::parentAccount() | 252 | MyMoneyAccount AccountTypePage::parentAccount() | ||
253 | { | 253 | { | ||
254 | switch (accountType()) { | 254 | switch (accountType()) { | ||
255 | case Account::Type::CreditCard: | 255 | case Account::Type::CreditCard: | ||
256 | case Account::Type::Liability: | 256 | case Account::Type::Liability: | ||
257 | case Account::Type::Loan: // Can be either but we return liability here | 257 | case Account::Type::Loan: // Can be either but we return liability here | ||
258 | return MyMoneyFile::instance()->liability(); | 258 | return MyMoneyFile::instance()->liability(); | ||
259 | break; | 259 | break; | ||
260 | case Account::Type::Equity: | 260 | case Account::Type::Equity: | ||
Show All 12 Lines |