diff options
Diffstat (limited to 'stats/barseries.h')
-rw-r--r-- | stats/barseries.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stats/barseries.h b/stats/barseries.h index 50ef1e72d..9f9586fe8 100644 --- a/stats/barseries.h +++ b/stats/barseries.h @@ -11,6 +11,7 @@ #include <memory> #include <vector> +#include <QColor> #include <QRectF> class ChartBarItem; @@ -86,8 +87,8 @@ private: bool isOutside; // Is shown outside of bar BarLabel(StatsView &view, const std::vector<QString> &labels, int bin_nr, int binCount); void setVisible(bool visible); - void updatePosition(bool horizontal, bool center, const QRectF &rect, int bin_nr, int binCount); - void highlight(bool highlight, int bin_nr, int binCount); + void updatePosition(bool horizontal, bool center, const QRectF &rect, int bin_nr, int binCount, const QColor &background); + void highlight(bool highlight, int bin_nr, int binCount, const QColor &background); }; struct SubItem { @@ -96,6 +97,7 @@ private: double value_from; double value_to; int bin_nr; + QColor fill; void updatePosition(BarSeries *series, bool horizontal, bool stacked, double from, double to, int binCount); void highlight(bool highlight, int binCount); |