From 2b8825a4f27b385ff7738393bacfe5852b1b0af0 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 18 Jan 2016 11:26:40 +0100 Subject: BarChart: updated to scale properly when component is resized. --- barchart.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'barchart.h') diff --git a/barchart.h b/barchart.h index 2d37419..e0edc0a 100644 --- a/barchart.h +++ b/barchart.h @@ -32,7 +32,10 @@ protected: void mousePressEvent(QMouseEvent *event); private: + QSGNode *newSceneGraph() const; QSGNode *newBarNode() const; + + void updateViewport(QSGNode *root) const; void updateBarNodeGeom(QSGNode *barNode, float x, float width, float height); void updateBarNodeColor(QSGNode *barNode, const QColor &color); void updateBars(QSGNode *root); -- cgit v1.2.3