aboutsummaryrefslogtreecommitdiff
path: root/barchart.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-18 11:26:40 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-18 11:26:40 +0100
commit2b8825a4f27b385ff7738393bacfe5852b1b0af0 (patch)
treeb9ce466ce61ba7b14d5f88b7275473e91f045edf /barchart.h
parent40510edf813a6214bb61f77215f91322db6317ce (diff)
BarChart: updated to scale properly when component is resized.
Diffstat (limited to 'barchart.h')
-rw-r--r--barchart.h3
1 files changed, 3 insertions, 0 deletions
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);