summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/data/qheightmapsurfacedataproxy.h
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-12-05 06:28:02 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-12-05 06:28:56 +0200
commite57ed8602ac02ff86e3c08362ca4fbe23fe05bfb (patch)
tree8182e15307cf5853255b6d6d9d0c0b017875cc1d /src/datavisualization/data/qheightmapsurfacedataproxy.h
parent78d4deb0be21f22d74e3e01315686857ef8edf2e (diff)
Notifys added to properties
Task-number: QTRD-2671 Change-Id: If95696b01eab836c2b4d5c6a3c19d7da9b255ab3 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/data/qheightmapsurfacedataproxy.h')
-rw-r--r--src/datavisualization/data/qheightmapsurfacedataproxy.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/datavisualization/data/qheightmapsurfacedataproxy.h b/src/datavisualization/data/qheightmapsurfacedataproxy.h
index 3306059f..16132b0d 100644
--- a/src/datavisualization/data/qheightmapsurfacedataproxy.h
+++ b/src/datavisualization/data/qheightmapsurfacedataproxy.h
@@ -31,12 +31,12 @@ class QT_DATAVISUALIZATION_EXPORT QHeightMapSurfaceDataProxy : public QSurfaceDa
{
Q_OBJECT
- Q_PROPERTY(QImage heightMap READ heightMap WRITE setHeightMap)
- Q_PROPERTY(QString heightMapFile READ heightMapFile WRITE setHeightMapFile)
- Q_PROPERTY(float minXValue READ minXValue WRITE setMinXValue)
- Q_PROPERTY(float maxXValue READ maxXValue WRITE setMaxXValue)
- Q_PROPERTY(float minZValue READ minZValue WRITE setMinZValue)
- Q_PROPERTY(float maxZValue READ maxZValue WRITE setMaxZValue)
+ Q_PROPERTY(QImage heightMap READ heightMap WRITE setHeightMap NOTIFY heightMapChanged)
+ Q_PROPERTY(QString heightMapFile READ heightMapFile WRITE setHeightMapFile NOTIFY heightMapFileChanged)
+ Q_PROPERTY(float minXValue READ minXValue WRITE setMinXValue NOTIFY minXValueChanged)
+ Q_PROPERTY(float maxXValue READ maxXValue WRITE setMaxXValue NOTIFY maxXValueChanged)
+ Q_PROPERTY(float minZValue READ minZValue WRITE setMinZValue NOTIFY minZValueChanged)
+ Q_PROPERTY(float maxZValue READ maxZValue WRITE setMaxZValue NOTIFY maxZValueChanged)
public:
explicit QHeightMapSurfaceDataProxy(QObject *parent = 0);
@@ -45,7 +45,6 @@ public:
void setHeightMap(const QImage &image);
QImage heightMap() const;
-
void setHeightMapFile(const QString &filename);
QString heightMapFile() const;
@@ -59,6 +58,14 @@ public:
void setMaxZValue(float max);
float maxZValue() const;
+signals:
+ void heightMapChanged(QImage image);
+ void heightMapFileChanged(QString filename);
+ void minXValueChanged(float value);
+ void maxXValueChanged(float value);
+ void minZValueChanged(float value);
+ void maxZValueChanged(float value);
+
protected:
explicit QHeightMapSurfaceDataProxy(QHeightMapSurfaceDataProxyPrivate *d, QObject *parent = 0);
QHeightMapSurfaceDataProxyPrivate *dptr();