diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-06-04 09:14:31 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-06-11 09:49:23 (GMT) |
commit | 27f602b3c6075f7f664a7d3fd71f03f795f490fb (patch) | |
tree | c2e7b89e8ba0c43478d8f5b3cb839b917646eba3 /src/gui/graphicsview/qgraphicsitem.h | |
parent | 05cb12eb18605aa32ff7a6761ff82d86aa339995 (diff) | |
download | Qt-27f602b3c6075f7f664a7d3fd71f03f795f490fb.zip Qt-27f602b3c6075f7f664a7d3fd71f03f795f490fb.tar.gz Qt-27f602b3c6075f7f664a7d3fd71f03f795f490fb.tar.bz2 |
move some properties from QGraphicsWidget to QGraphicsObject
These are properties of QGraphicsItem. QGraphicsObject should expose these.
Reviewed-by: Andreas
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.h b/src/gui/graphicsview/qgraphicsitem.h index a9b5d71..69aab20 100644 --- a/src/gui/graphicsview/qgraphicsitem.h +++ b/src/gui/graphicsview/qgraphicsitem.h @@ -836,6 +836,10 @@ class Q_GUI_EXPORT QGraphicsObject : public QObject, public QGraphicsItem { Q_OBJECT Q_INTERFACES(QGraphicsItem) + Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity) + Q_PROPERTY(QPointF pos READ pos WRITE setPos) + Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled) + Q_PROPERTY(bool visible READ isVisible WRITE setVisible) public: QGraphicsObject(QGraphicsItem *parent = 0); protected: |