summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxscalegrid_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-12 03:52:24 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-12 03:52:24 (GMT)
commita609f4c1e70eaba81da493d3409356bef3a26c93 (patch)
treef42bcfbffbd0275a4a29b08dd634264db9c46ffa /src/declarative/fx/qfxscalegrid_p.h
parenteae40ec9e65326bf268979afe1399d1fb8548105 (diff)
downloadQt-a609f4c1e70eaba81da493d3409356bef3a26c93.zip
Qt-a609f4c1e70eaba81da493d3409356bef3a26c93.tar.gz
Qt-a609f4c1e70eaba81da493d3409356bef3a26c93.tar.bz2
Add NOTIFY signals for QFxScaleGrid
This change allows things like "border.top" to be used to position items based on the values in a ".sci" file. Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/fx/qfxscalegrid_p.h')
-rw-r--r--src/declarative/fx/qfxscalegrid_p.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxscalegrid_p.h b/src/declarative/fx/qfxscalegrid_p.h
index 9d0a84c..4beec85 100644
--- a/src/declarative/fx/qfxscalegrid_p.h
+++ b/src/declarative/fx/qfxscalegrid_p.h
@@ -61,10 +61,10 @@ class Q_DECLARATIVE_EXPORT QFxScaleGrid : public QObject
Q_OBJECT
Q_ENUMS(TileRule)
- Q_PROPERTY(int left READ left WRITE setLeft)
- Q_PROPERTY(int top READ top WRITE setTop)
- Q_PROPERTY(int right READ right WRITE setRight)
- Q_PROPERTY(int bottom READ bottom WRITE setBottom)
+ Q_PROPERTY(int left READ left WRITE setLeft NOTIFY borderChanged)
+ Q_PROPERTY(int top READ top WRITE setTop NOTIFY borderChanged)
+ Q_PROPERTY(int right READ right WRITE setRight NOTIFY borderChanged)
+ Q_PROPERTY(int bottom READ bottom WRITE setBottom NOTIFY borderChanged)
public:
QFxScaleGrid();
@@ -84,6 +84,9 @@ public:
int bottom() const { return _bottom; }
void setBottom(int);
+Q_SIGNALS:
+ void borderChanged();
+
private:
int _left;
int _top;