From 26c4d3e5974f89fe4c140292d4a9b6c33e42450b Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 13 Jan 2016 15:09:20 +0100 Subject: BarChart: values are now sorted in descreasing order. --- barchart.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'barchart.h') diff --git a/barchart.h b/barchart.h index 164e0eb..ba96470 100644 --- a/barchart.h +++ b/barchart.h @@ -1,9 +1,13 @@ #ifndef BARCHART_H #define BARCHART_H +#include + #include #include +#include "scale.h" + class BarChart : public QQuickItem { Q_OBJECT @@ -26,9 +30,11 @@ private: QSGNode *newBarNode() const; void updateBarNodeGeom(QSGNode *barNode, float x, float width, float height); void updateBars(QSGNode *root); + bool m_shouldUpdateBars; arma::vec m_values; - bool m_shouldUpdateBars; + std::vector m_originalIndices; + LinearScale m_scale; }; #endif // BARCHART_H -- cgit v1.2.3