Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/views/forecast/kforecastview_p.h
Show First 20 Lines • Show All 647 Lines • ▼ Show 20 Line(s) | 89 | public: | |||
---|---|---|---|---|---|
648 | } | 648 | } | ||
649 | 649 | | |||
650 | void loadChartView() | 650 | void loadChartView() | ||
651 | { | 651 | { | ||
652 | if (m_forecastChart) | 652 | if (m_forecastChart) | ||
653 | delete m_forecastChart; | 653 | delete m_forecastChart; | ||
654 | 654 | | |||
655 | if (const auto reportsPlugin = pPlugins.data.value("reportsview", nullptr)) { | 655 | if (const auto reportsPlugin = pPlugins.data.value("reportsview", nullptr)) { | ||
656 | const auto args = | 656 | const QString args = | ||
657 | QString::number(ui->m_comboDetail->currentIndex()) + ';' + | 657 | QString::number(ui->m_comboDetail->currentIndex()) + ';' + | ||
658 | QString::number(ui->m_forecastDays->value()) + ';' + | 658 | QString::number(ui->m_forecastDays->value()) + ';' + | ||
659 | QString::number(ui->m_tab->width()) + ';' + | 659 | QString::number(ui->m_tab->width()) + ';' + | ||
660 | QString::number(ui->m_tab->height()); | 660 | QString::number(ui->m_tab->height()); | ||
661 | | ||||
662 | const auto variantReport = reportsPlugin->requestData(args, eWidgetPlugin::WidgetType::NetWorthForecastWithArgs); | 661 | const auto variantReport = reportsPlugin->requestData(args, eWidgetPlugin::WidgetType::NetWorthForecastWithArgs); | ||
663 | if (!variantReport.isNull()) | 662 | if (!variantReport.isNull()) | ||
664 | m_forecastChart = variantReport.value<QWidget *>(); | 663 | m_forecastChart = variantReport.value<QWidget *>(); | ||
665 | } else { | 664 | } else { | ||
666 | m_forecastChart = new QLabel(i18n("Enable reports plugin to see this chart.")); | 665 | m_forecastChart = new QLabel(i18n("Enable reports plugin to see this chart.")); | ||
667 | } | 666 | } | ||
668 | m_chartLayout->addWidget(m_forecastChart); | 667 | m_chartLayout->addWidget(m_forecastChart); | ||
669 | } | 668 | } | ||
▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines |