summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/axisrendercache_p.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-10-14 14:35:03 +0300
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-10-15 09:37:17 +0300
commit91a9698b80bcb072a5ec3af69515249bac96aff5 (patch)
treedc2ffcce10e20c499addd739314ae1bda661eaba /src/datavisualization/engine/axisrendercache_p.h
parentd0244a84f150fe59327afa9bd59d0f9cdde72406 (diff)
Simplify context handling at cleanup.
If the context exists at renderer deletion, it is possible that it no longer has valid surface, which means it won't be possible to set it back to current if we change context for deletion cleanup. Since the current context will be one of our shared contexts anyway, there is no need to do a dummy context for cleanup unless the current context is null. Change-Id: Ibabe081742beb975ee848ccb3690703ef5b027a9 Reviewed-by: Mika Salmela <mika.salmela@digia.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/axisrendercache_p.h')
-rw-r--r--src/datavisualization/engine/axisrendercache_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datavisualization/engine/axisrendercache_p.h b/src/datavisualization/engine/axisrendercache_p.h
index 9fb04837..e32c590e 100644
--- a/src/datavisualization/engine/axisrendercache_p.h
+++ b/src/datavisualization/engine/axisrendercache_p.h
@@ -108,6 +108,7 @@ public:
inline void setTitleFixed(bool fixed) { m_titleFixed = fixed; }
void updateTextures();
+ void clearLabels();
private:
int maxLabelWidth(const QStringList &labels) const;