summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxgraphicsobjectcontainer.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-05 03:17:19 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-05 03:17:19 (GMT)
commitd480c23bf54a4dce59b4d29c6276b875307b11ce (patch)
tree36a3c929f0271205e719a8ca4941809e976aeefb /src/declarative/fx/qfxgraphicsobjectcontainer.h
parent9d3505cec4749c86ca2782726388c040941ed25c (diff)
downloadQt-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.h9
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