summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@nokia.com>2010-02-01 15:54:22 (GMT)
committerMarco Bubke <marco.bubke@nokia.com>2010-02-01 15:56:47 (GMT)
commitd28d9c1d6e2c54cf41a9cc52f41b0542cb9717aa (patch)
treed07ff7b06cdae4c6c48eddfc69a374f4acea875e /src/declarative/graphicsitems
parent944e9946f9541dead8319dcc9e4e49f41c8c40b1 (diff)
downloadQt-d28d9c1d6e2c54cf41a9cc52f41b0542cb9717aa.zip
Qt-d28d9c1d6e2c54cf41a9cc52f41b0542cb9717aa.tar.gz
Qt-d28d9c1d6e2c54cf41a9cc52f41b0542cb9717aa.tar.bz2
Add transformOriginChanged signal to QmlGraphicsItem
This is needed that Bauhaus is reflecting the changes in QmlGraphicsItem. Task-number: BAUHAUS-125 Reviewed-by: Kai Koehne
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsitem.cpp1
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsitem.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsitem.cpp b/src/declarative/graphicsitems/qmlgraphicsitem.cpp
index bd3c1ea..2f0c555 100644
--- a/src/declarative/graphicsitems/qmlgraphicsitem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsitem.cpp
@@ -2790,6 +2790,7 @@ void QmlGraphicsItem::setTransformOrigin(TransformOrigin origin)
if (origin != d->origin) {
d->origin = origin;
QGraphicsItem::setTransformOriginPoint(d->computeTransformOrigin());
+ emit transformOriginChanged(d->origin);
}
}
diff --git a/src/declarative/graphicsitems/qmlgraphicsitem.h b/src/declarative/graphicsitems/qmlgraphicsitem.h
index df8c634..8ae2d5c 100644
--- a/src/declarative/graphicsitems/qmlgraphicsitem.h
+++ b/src/declarative/graphicsitems/qmlgraphicsitem.h
@@ -91,7 +91,7 @@ class Q_DECLARATIVE_EXPORT QmlGraphicsItem : public QGraphicsObject, public QmlP
Q_PROPERTY(bool focus READ hasFocus WRITE setFocus NOTIFY focusChanged FINAL)
Q_PROPERTY(bool wantsFocus READ wantsFocus NOTIFY wantsFocusChanged)
Q_PROPERTY(QmlList<QGraphicsTransform *>* transform READ transform DESIGNABLE false FINAL)
- Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin)
+ Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin NOTIFY transformOriginChanged)
Q_PROPERTY(bool smooth READ smooth WRITE setSmooth)
Q_PROPERTY(QGraphicsEffect *effect READ graphicsEffect WRITE setGraphicsEffect)
Q_ENUMS(TransformOrigin)
@@ -176,6 +176,7 @@ Q_SIGNALS:
void focusChanged();
void wantsFocusChanged();
void parentChanged();
+ void transformOriginChanged(TransformOrigin);
protected:
bool isComponentComplete() const;