diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-30 00:52:09 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-30 00:52:09 (GMT) |
commit | f38b9107f95fc71ae53d43678dd1163719f64631 (patch) | |
tree | 49b86b941fad58774a03fe4c99a8e40e8604bcca /src/declarative/fx/qfxitem.h | |
parent | 56805f1f4d001f83f888b01076b495798378a92c (diff) | |
download | Qt-f38b9107f95fc71ae53d43678dd1163719f64631.zip Qt-f38b9107f95fc71ae53d43678dd1163719f64631.tar.gz Qt-f38b9107f95fc71ae53d43678dd1163719f64631.tar.bz2 |
More QFxItem cleanup.
Diffstat (limited to 'src/declarative/fx/qfxitem.h')
-rw-r--r-- | src/declarative/fx/qfxitem.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/declarative/fx/qfxitem.h b/src/declarative/fx/qfxitem.h index cd346a7..0ce2a11 100644 --- a/src/declarative/fx/qfxitem.h +++ b/src/declarative/fx/qfxitem.h @@ -124,10 +124,10 @@ class Q_DECLARATIVE_EXPORT QFxItem : public QGraphicsObject, public QmlParserSta Q_INTERFACES(QmlParserStatus) Q_PROPERTY(QFxItem * parent READ parentItem WRITE setParentItem NOTIFY parentChanged DESIGNABLE false FINAL) + Q_PROPERTY(QmlList<QObject *> *data READ data DESIGNABLE false) Q_PROPERTY(QmlList<QFxItem *>* children READ children DESIGNABLE false) Q_PROPERTY(QmlList<QObject *>* resources READ resources DESIGNABLE false) Q_PROPERTY(QFxAnchors * anchors READ anchors DESIGNABLE false CONSTANT FINAL) - Q_PROPERTY(QmlList<QObject *> *data READ data DESIGNABLE false) Q_PROPERTY(QFxContents * contents READ contents DESIGNABLE false CONSTANT FINAL) Q_PROPERTY(QmlList<QmlState *>* states READ states DESIGNABLE false) Q_PROPERTY(QmlList<QmlTransition *>* transitions READ transitions DESIGNABLE false) @@ -147,13 +147,11 @@ class Q_DECLARATIVE_EXPORT QFxItem : public QGraphicsObject, public QmlParserSta Q_PROPERTY(bool clip READ clip WRITE setClip) // ### move to QGI/QGO, NOTIFY Q_PROPERTY(bool focus READ hasFocus WRITE setFocus NOTIFY focusChanged FINAL) Q_PROPERTY(bool activeFocus READ hasActiveFocus NOTIFY activeFocusChanged FINAL) - Q_PROPERTY(QmlList<QGraphicsTransform *>* transform READ transform DESIGNABLE false FINAL) // ## QGI/QGO - Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin) // ### move to QGI + Q_PROPERTY(QmlList<QGraphicsTransform *>* transform READ transform DESIGNABLE false FINAL) + Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin) Q_ENUMS(TransformOrigin) Q_CLASSINFO("DefaultProperty", "data") - typedef QHash<QString, QFxItem *> QmlChildren; // ### - public: enum Option { NoOption = 0x00000000, MouseFilter = 0x00000001, @@ -162,15 +160,14 @@ public: MouseEvents = 0x00000008, HasContents = 0x00000010, SimpleItem = 0x00000020, - IsFocusPanel = 0x00000040, IsFocusRealm = 0x00000080, AcceptsInputMethods = 0x00000100 }; Q_DECLARE_FLAGS(Options, Option) enum TransformOrigin { - TopLeft, TopCenter, TopRight, - MiddleLeft, Center, MiddleRight, - BottomLeft, BottomCenter, BottomRight + TopLeft, Top, TopRight, + Left, Center, Right, + BottomLeft, Bottom, BottomRight }; QFxItem(QFxItem *parent = 0); @@ -185,7 +182,6 @@ public: QmlList<QObject *> *resources(); QFxAnchors *anchors(); - QFxContents *contents(); bool clip() const; @@ -234,9 +230,6 @@ public: virtual bool hasFocus() const; void setFocus(bool); - bool activeFocusPanel() const; - void setActiveFocusPanel(bool); - bool hasActiveFocus() const; QVariant inputMethodQuery(Qt::InputMethodQuery query) const; //### for KeyProxy |