From a998e49b3455c9e28d2ed85f024f28c69921cfd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Mon, 19 May 2014 08:39:47 +0300 Subject: Optimized custom item addition/removal Task-number: QTRD-3056 Change-Id: I653d8aeec797b76c19d9b542391b79e9370e7501 Reviewed-by: Miikka Heikkinen --- examples/datavisualization/customitems/customitemgraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/datavisualization/customitems/customitemgraph.cpp') diff --git a/examples/datavisualization/customitems/customitemgraph.cpp b/examples/datavisualization/customitems/customitemgraph.cpp index 56187d14..aeae61e9 100644 --- a/examples/datavisualization/customitems/customitemgraph.cpp +++ b/examples/datavisualization/customitems/customitemgraph.cpp @@ -26,7 +26,8 @@ using namespace QtDataVisualization; CustomItemGraph::CustomItemGraph(Q3DSurface *surface, QLabel *label) : m_graph(surface), - m_textField(label) + m_textField(label), + m_previouslyAnimatedItem(0) { QImage layerOneHMap(":/maps/layer_1.png"); QHeightMapSurfaceDataProxy *layerOneProxy = new QHeightMapSurfaceDataProxy(layerOneHMap); -- cgit v1.2.3