summaryrefslogtreecommitdiffstats
path: root/src/charts/xychart/xychart.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2016-08-02 13:45:44 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2016-08-02 12:57:19 +0000
commita549d714c6e8214cda11079f1d3277772fb290cf (patch)
treed10d77df0421824c30a675af82128f17d92abcf8 /src/charts/xychart/xychart.cpp
parenta0e9e3bcf9d33372728a06292cc9f138a9662572 (diff)
Make OpenGL accelerated series obey series visibility
Task-number: QTBUG-54914 Change-Id: Ia55274aee13e3d700f75a1521be26ed78bddba8d Reviewed-by: Janne Koskinen <janne.p.koskinen@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/charts/xychart/xychart.cpp')
-rw-r--r--src/charts/xychart/xychart.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/charts/xychart/xychart.cpp b/src/charts/xychart/xychart.cpp
index 718bc35b..b7ede9de 100644
--- a/src/charts/xychart/xychart.cpp
+++ b/src/charts/xychart/xychart.cpp
@@ -118,6 +118,12 @@ void XYChart::updateGlChart()
updateGeometry();
}
+// Doesn't update gl geometry, but refreshes the chart
+void XYChart::refreshGlChart()
+{
+ presenter()->updateGLWidget();
+}
+
//handlers
void XYChart::handlePointAdded(int index)