diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-03 06:53:26 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-03 06:53:26 (GMT) |
commit | 14c57306bb0d9edd6c45cd142b49896f746fe9d1 (patch) | |
tree | b7a8eb759e553979634d2506274484cb1a13c7e1 /src/declarative/fx/qfxitem.h | |
parent | 018bc2baa05320c41d124785064064cd03fe8a43 (diff) | |
download | Qt-14c57306bb0d9edd6c45cd142b49896f746fe9d1.zip Qt-14c57306bb0d9edd6c45cd142b49896f746fe9d1.tar.gz Qt-14c57306bb0d9edd6c45cd142b49896f746fe9d1.tar.bz2 |
Move the 'smooth' property to QFxItem
Items currently using it are QFxImage, QFxText, QFxLineEdit, QFxTextEdit
and QFxPaintedItem.
Diffstat (limited to 'src/declarative/fx/qfxitem.h')
-rw-r--r-- | src/declarative/fx/qfxitem.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxitem.h b/src/declarative/fx/qfxitem.h index e832a67..b1676e4 100644 --- a/src/declarative/fx/qfxitem.h +++ b/src/declarative/fx/qfxitem.h @@ -147,6 +147,7 @@ class Q_DECLARATIVE_EXPORT QFxItem : public QGraphicsObject, public QmlParserSta Q_PROPERTY(bool activeFocus READ hasActiveFocus NOTIFY activeFocusChanged FINAL) Q_PROPERTY(QmlList<QGraphicsTransform *>* transform READ transform DESIGNABLE false FINAL) Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin) + Q_PROPERTY(bool smooth READ smoothTransform WRITE setSmoothTransform) Q_ENUMS(TransformOrigin) Q_CLASSINFO("DefaultProperty", "data") @@ -197,6 +198,9 @@ public: TransformOrigin transformOrigin() const; void setTransformOrigin(TransformOrigin); + bool smoothTransform() const; + void setSmoothTransform(bool); + QRectF boundingRect() const; virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); @@ -235,7 +239,7 @@ protected: virtual void activeFocusChanged(bool); virtual void keyPressEvent(QKeyEvent *event); virtual void keyReleaseEvent(QKeyEvent *event); - virtual void geometryChanged(const QRectF &newGeometry, + virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry); private Q_SLOTS: |