Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kforecastview.cpp
Show First 20 Lines • Show All 1011 Lines • ▼ Show 20 Line(s) | 1010 | MyMoneyReport reportCfg = MyMoneyReport( | |||
---|---|---|---|---|---|
1012 | MyMoneyReport::Column::Months, | 1012 | MyMoneyReport::Column::Months, | ||
1013 | MyMoneyTransactionFilter::userDefined, // overridden by the setDateFilter() call below | 1013 | MyMoneyTransactionFilter::userDefined, // overridden by the setDateFilter() call below | ||
1014 | detailLevel[m_comboDetail->currentIndex()], | 1014 | detailLevel[m_comboDetail->currentIndex()], | ||
1015 | i18n("Net Worth Forecast"), | 1015 | i18n("Net Worth Forecast"), | ||
1016 | i18n("Generated Report")); | 1016 | i18n("Generated Report")); | ||
1017 | 1017 | | |||
1018 | reportCfg.setChartByDefault(true); | 1018 | reportCfg.setChartByDefault(true); | ||
1019 | reportCfg.setChartGridLines(false); | 1019 | reportCfg.setChartGridLines(false); | ||
1020 | reportCfg.setChartType(MyMoneyReport::eChartLine); | 1020 | reportCfg.setChartType(MyMoneyReport::Chart::Line); | ||
1021 | reportCfg.setIncludingSchedules(false); | 1021 | reportCfg.setIncludingSchedules(false); | ||
1022 | // FIXME: this causes a crash | 1022 | // FIXME: this causes a crash | ||
1023 | //reportCfg.setColumnsAreDays( true ); | 1023 | //reportCfg.setColumnsAreDays( true ); | ||
1024 | reportCfg.setChartDataLabels(false); | 1024 | reportCfg.setChartDataLabels(false); | ||
1025 | reportCfg.setConvertCurrency(true); | 1025 | reportCfg.setConvertCurrency(true); | ||
1026 | reportCfg.setIncludingForecast(true); | 1026 | reportCfg.setIncludingForecast(true); | ||
1027 | reportCfg.setDateFilter(QDate::currentDate(), QDate::currentDate().addDays(m_forecastDays->value())); | 1027 | reportCfg.setDateFilter(QDate::currentDate(), QDate::currentDate().addDays(m_forecastDays->value())); | ||
1028 | reports::PivotTable table(reportCfg); | 1028 | reports::PivotTable table(reportCfg); | ||
Show All 9 Lines |