diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-10-05 03:17:19 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-10-05 03:17:19 (GMT) |
commit | d480c23bf54a4dce59b4d29c6276b875307b11ce (patch) | |
tree | 36a3c929f0271205e719a8ca4941809e976aeefb /src/declarative/fx/qfxgraphicsobjectcontainer.h | |
parent | 9d3505cec4749c86ca2782726388c040941ed25c (diff) | |
download | Qt-d480c23bf54a4dce59b4d29c6276b875307b11ce.zip Qt-d480c23bf54a4dce59b4d29c6276b875307b11ce.tar.gz Qt-d480c23bf54a4dce59b4d29c6276b875307b11ce.tar.bz2 |
Experiment with syncing GraphicsObjectContainer and QGraphicsWidget sizes.
Diffstat (limited to 'src/declarative/fx/qfxgraphicsobjectcontainer.h')
-rw-r--r-- | src/declarative/fx/qfxgraphicsobjectcontainer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxgraphicsobjectcontainer.h b/src/declarative/fx/qfxgraphicsobjectcontainer.h index 165bc48..a8b7c8c 100644 --- a/src/declarative/fx/qfxgraphicsobjectcontainer.h +++ b/src/declarative/fx/qfxgraphicsobjectcontainer.h @@ -58,6 +58,7 @@ class Q_DECLARATIVE_EXPORT QFxGraphicsObjectContainer : public QFxItem Q_CLASSINFO("DefaultProperty", "graphicsObject") Q_PROPERTY(QGraphicsObject *graphicsObject READ graphicsObject WRITE setGraphicsObject) + Q_PROPERTY(bool synchronizedResizing READ synchronizedResizing WRITE setSynchronizedResizing) public: QFxGraphicsObjectContainer(QFxItem *parent = 0); @@ -66,11 +67,19 @@ public: QGraphicsObject *graphicsObject() const; void setGraphicsObject(QGraphicsObject *); + bool synchronizedResizing() const; + void setSynchronizedResizing(bool on); + protected: QVariant itemChange(GraphicsItemChange change, const QVariant &value); + bool eventFilter(QObject *watched, QEvent *e); + +private Q_SLOTS: + void _q_updateSize(); private: QGraphicsObject *_graphicsObject; + bool _syncedResize; }; QT_END_NAMESPACE |