summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/data/labelitem_p.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-07-03 15:12:34 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-07-04 13:08:51 +0300
commit0963cf7feda67225700f4291264e68c9060046f6 (patch)
tree7a3e03f116e5ff2466c6e1311c9d3de4ed4f8034 /src/datavis3d/data/labelitem_p.h
parent28ed69c2f6ba8520dc0202b94a4a3f8260ccda7e (diff)
Data proxy implementation for bars.
Old QDataSet can be used with custom QOldDataProxy. This will be removed entirely once we have a viable variant based proxy to use, as it provides no real additional value over just using default proxy directly. Change-Id: Iee492152eec5d33b7a488053447fae6027409d71 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'src/datavis3d/data/labelitem_p.h')
-rw-r--r--src/datavis3d/data/labelitem_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/datavis3d/data/labelitem_p.h b/src/datavis3d/data/labelitem_p.h
index 7a5f5f11..4d80642a 100644
--- a/src/datavis3d/data/labelitem_p.h
+++ b/src/datavis3d/data/labelitem_p.h
@@ -65,12 +65,16 @@ public:
~LabelItem();
void setSize(const QSize &size);
- QSize size();
+ QSize size() const;
void setTextureId(GLuint textureId);
- GLuint textureId();
+ GLuint textureId() const;
void clear();
private:
+ // LabelItem owns a global texture id resource, and deletes it at destructor,
+ // so we disable assignment operator as a safety measure. We don't use Q_DISABLE_COPY
+ // macro, because that also disables the default constructor, which we need.
+ LabelItem &operator=(const LabelItem &);
QSize m_size;
GLuint m_textureId;
};