diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-18 11:26:40 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-18 11:26:40 +0100 |
commit | 2b8825a4f27b385ff7738393bacfe5852b1b0af0 (patch) | |
tree | b9ce466ce61ba7b14d5f88b7275473e91f045edf /barchart.h | |
parent | 40510edf813a6214bb61f77215f91322db6317ce (diff) |
BarChart: updated to scale properly when component is resized.
Diffstat (limited to 'barchart.h')
-rw-r--r-- | barchart.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |