Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/pivottable.h
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | 150 | /** | |||
---|---|---|---|---|---|
156 | * HTML font tag to modify the color to reflect the user settings for | 156 | * HTML font tag to modify the color to reflect the user settings for | ||
157 | * negtive numbers. | 157 | * negtive numbers. | ||
158 | * | 158 | * | ||
159 | * Example: 1.23 is returned as '1.23' whereas -1.23 is returned as | 159 | * Example: 1.23 is returned as '1.23' whereas -1.23 is returned as | ||
160 | * @verbatim <font color="rgb($red,$green,$blue)">-1.23</font>@endverbatim | 160 | * @verbatim <font color="rgb($red,$green,$blue)">-1.23</font>@endverbatim | ||
161 | * with $red, $green and $blue being the actual value for the | 161 | * with $red, $green and $blue being the actual value for the | ||
162 | * chosen color. | 162 | * chosen color. | ||
163 | */ | 163 | */ | ||
164 | QString coloredAmount(const MyMoneyMoney& amount, const QString& currencySymbol = QString()) const; | | |||
165 | QString coloredAmount(const MyMoneyMoney& amount, const QString& currencySymbol, int prec) const; | 164 | QString coloredAmount(const MyMoneyMoney& amount, const QString& currencySymbol, int prec) const; | ||
166 | 165 | | |||
167 | protected: | 166 | protected: | ||
168 | /** | 167 | /** | ||
169 | * Creates a row in the grid if it doesn't already exist | 168 | * Creates a row in the grid if it doesn't already exist | ||
170 | * | 169 | * | ||
171 | * Downsteam assignment functions will assume that this row already | 170 | * Downsteam assignment functions will assume that this row already | ||
172 | * exists, so this function creates a row of the needed length populated | 171 | * exists, so this function creates a row of the needed length populated | ||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |