From 37493fac3422ce5cbe34748ca25757ca6302a583 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Mon, 24 Feb 2014 14:03:14 +0200 Subject: Move selection labels to renderer from render items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creating a new label on demand is fast enough, so we don't need to store old labels. Storing labels unnecessarily leads to unchecked use of graphics memory. Optimized bar slices a bit by having separate class of render items for slice items. Change-Id: I5afdecfb3949393341b6c3eaefbc667c65da32e3 Reviewed-by: Tomi Korpipää --- src/datavisualization/data/abstractrenderitem_p.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/datavisualization/data/abstractrenderitem_p.h') diff --git a/src/datavisualization/data/abstractrenderitem_p.h b/src/datavisualization/data/abstractrenderitem_p.h index a53b8e41..912a09f3 100644 --- a/src/datavisualization/data/abstractrenderitem_p.h +++ b/src/datavisualization/data/abstractrenderitem_p.h @@ -50,13 +50,6 @@ public: inline void setTranslation(const QVector3D &translation) { m_translation = translation; } inline const QVector3D &translation() const {return m_translation; } - // Selection label item (containing special selection texture, if mode is activated) - LabelItem &selectionLabelItem(); - - // Formatted selection label for item. - void setSelectionLabel(const QString &label); - QString &selectionLabel(); // Formats selection label if not previously formatted - inline QQuaternion rotation() const { return m_rotation; } inline void setRotation(const QQuaternion &rotation) { @@ -65,9 +58,7 @@ public: } protected: - QString m_selectionLabel; QVector3D m_translation; - LabelItem *m_selectionLabelItem; QQuaternion m_rotation; friend class QAbstractDataItem; -- cgit v1.2.3