Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/pivottable.cpp
Show First 20 Lines • Show All 1887 Lines • ▼ Show 20 Line(s) | 1884 | { | |||
---|---|---|---|---|---|
1888 | g.close(); | 1888 | g.close(); | ||
1889 | } | 1889 | } | ||
1890 | 1890 | | |||
1891 | void PivotTable::drawChart(KReportChartView& chartView) const | 1891 | void PivotTable::drawChart(KReportChartView& chartView) const | ||
1892 | { | 1892 | { | ||
1893 | chartView.drawPivotChart(m_grid, m_config_f, m_numColumns, m_columnHeadings, m_rowTypeList, m_columnTypeHeaderList); | 1893 | chartView.drawPivotChart(m_grid, m_config_f, m_numColumns, m_columnHeadings, m_rowTypeList, m_columnTypeHeaderList); | ||
1894 | } | 1894 | } | ||
1895 | 1895 | | |||
1896 | QString PivotTable::coloredAmount(const MyMoneyMoney& amount, const QString& currencySymbol) const | ||||
1897 | { | ||||
1898 | return coloredAmount(amount, currencySymbol, KMyMoneyGlobalSettings::pricePrecision()); | ||||
1899 | } | ||||
1900 | | ||||
1896 | QString PivotTable::coloredAmount(const MyMoneyMoney& amount, const QString& currencySymbol, int prec) const | 1901 | QString PivotTable::coloredAmount(const MyMoneyMoney& amount, const QString& currencySymbol, int prec) const | ||
1897 | { | 1902 | { | ||
1898 | QString result; | 1903 | QString result; | ||
1899 | if (amount.isNegative()) | 1904 | if (amount.isNegative()) | ||
1900 | result += QString("<font color=\"rgb(%1,%2,%3)\">") | 1905 | result += QString("<font color=\"rgb(%1,%2,%3)\">") | ||
1901 | .arg(KMyMoneyGlobalSettings::listNegativeValueColor().red()) | 1906 | .arg(KMyMoneyGlobalSettings::listNegativeValueColor().red()) | ||
1902 | .arg(KMyMoneyGlobalSettings::listNegativeValueColor().green()) | 1907 | .arg(KMyMoneyGlobalSettings::listNegativeValueColor().green()) | ||
1903 | .arg(KMyMoneyGlobalSettings::listNegativeValueColor().blue()); | 1908 | .arg(KMyMoneyGlobalSettings::listNegativeValueColor().blue()); | ||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |