diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-02-24 14:03:14 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-02-24 14:23:34 +0200 |
commit | 37493fac3422ce5cbe34748ca25757ca6302a583 (patch) | |
tree | 4bbffa04287106049fca1857225e0711fafe4730 /src/datavisualization/data/abstractrenderitem_p.h | |
parent | e07e480d744c6f091844350704b916a71811c6b9 (diff) |
Move selection labels to renderer from render items
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ää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/data/abstractrenderitem_p.h')
-rw-r--r-- | src/datavisualization/data/abstractrenderitem_p.h | 9 |
1 files changed, 0 insertions, 9 deletions
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; |