Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kaccountsview.cpp
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Line(s) | 226 | switch (d->m_currentAccount.accountGroup()) { | |||
---|---|---|---|---|---|
233 | default: | 233 | default: | ||
234 | break; | 234 | break; | ||
235 | } | 235 | } | ||
236 | } | 236 | } | ||
237 | } | 237 | } | ||
238 | 238 | | |||
239 | } | 239 | } | ||
240 | 240 | | |||
241 | void KAccountsView::setOnlinePlugins(QMap<QString, KMyMoneyPlugin::OnlinePlugin*>& plugins) | | |||
242 | { | | |||
243 | Q_D(KAccountsView); | | |||
244 | d->m_onlinePlugins = &plugins; | | |||
245 | } | | |||
246 | | ||||
247 | /** | 241 | /** | ||
248 | * The view is notified that an unused income expense account has been hidden. | 242 | * The view is notified that an unused income expense account has been hidden. | ||
249 | */ | 243 | */ | ||
250 | void KAccountsView::slotUnusedIncomeExpenseAccountHidden() | 244 | void KAccountsView::slotUnusedIncomeExpenseAccountHidden() | ||
251 | { | 245 | { | ||
252 | Q_D(KAccountsView); | 246 | Q_D(KAccountsView); | ||
253 | d->m_haveUnusedCategories = true; | 247 | d->m_haveUnusedCategories = true; | ||
254 | d->ui->m_hiddenCategories->setVisible(d->m_haveUnusedCategories); | 248 | d->ui->m_hiddenCategories->setVisible(d->m_haveUnusedCategories); | ||
Show All 30 Lines | |||||
285 | void KAccountsView::slotSelectByVariant(const QVariantList& variant, eView::Intent intent) | 279 | void KAccountsView::slotSelectByVariant(const QVariantList& variant, eView::Intent intent) | ||
286 | { | 280 | { | ||
287 | Q_D(KAccountsView); | 281 | Q_D(KAccountsView); | ||
288 | switch (intent) { | 282 | switch (intent) { | ||
289 | case eView::Intent::UpdateNetWorth: | 283 | case eView::Intent::UpdateNetWorth: | ||
290 | if (variant.count() == 1 && d->m_proxyModel) | 284 | if (variant.count() == 1 && d->m_proxyModel) | ||
291 | slotNetWorthChanged(variant.first().value<MyMoneyMoney>()); | 285 | slotNetWorthChanged(variant.first().value<MyMoneyMoney>()); | ||
292 | break; | 286 | break; | ||
287 | | ||||
288 | case eView::Intent::SetOnlinePlugins: | ||||
289 | if (variant.count() == 1) | ||||
290 | d->m_onlinePlugins = static_cast<QMap<QString, KMyMoneyPlugin::OnlinePlugin*>*>(variant.first().value<void*>()); | ||||
291 | break; | ||||
292 | | ||||
293 | default: | 293 | default: | ||
294 | break; | 294 | break; | ||
295 | } | 295 | } | ||
296 | } | 296 | } | ||
297 | 297 | | |||
298 | void KAccountsView::slotNewAccount() | 298 | void KAccountsView::slotNewAccount() | ||
299 | { | 299 | { | ||
300 | MyMoneyAccount account; | 300 | MyMoneyAccount account; | ||
▲ Show 20 Lines • Show All 283 Lines • Show Last 20 Lines |