diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-07-22 07:03:13 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2009-07-22 07:03:13 (GMT) |
commit | 7fd162fe2d38882ae81f6a7b7cf6a313764fdf0e (patch) | |
tree | b8e7e87664267f7bfda95743fed53ce8e83f42f0 | |
parent | d5f46ae26ee0cd4a3ccdde526f011b3bdd884abc (diff) | |
download | Qt-7fd162fe2d38882ae81f6a7b7cf6a313764fdf0e.zip Qt-7fd162fe2d38882ae81f6a7b7cf6a313764fdf0e.tar.gz Qt-7fd162fe2d38882ae81f6a7b7cf6a313764fdf0e.tar.bz2 |
remove the id property in QFxItem
id's are handled by QML directly; the id property here
is not actually used anymore.
-rw-r--r-- | src/declarative/fx/qfxitem.cpp | 28 | ||||
-rw-r--r-- | src/declarative/fx/qfxitem.h | 4 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index 42ff436..212496c 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -1068,34 +1068,6 @@ void QFxItem::keyReleaseEvent(QKeyEvent *event) */ /*! - \property QFxItem::id - This property holds the identifier for the item. - - The identifier can be used in bindings and other expressions to - refer to the item. For example: - - \qml - Text { id: myText; ... } - Text { text: myText.text } - \endqml - - The identifier is available throughout the \l {components}{component} - where it is declared. The identifier must be unique in thecomponent. -*/ -QString QFxItem::id() const -{ - Q_D(const QFxItem); - return d->_id; -} - -void QFxItem::setId(const QString &id) -{ - Q_D(QFxItem); - setObjectName(id); - d->_id = id; -} - -/*! \internal */ QFxAnchorLine QFxItem::left() const diff --git a/src/declarative/fx/qfxitem.h b/src/declarative/fx/qfxitem.h index 8e0916e..6e735b3 100644 --- a/src/declarative/fx/qfxitem.h +++ b/src/declarative/fx/qfxitem.h @@ -100,7 +100,6 @@ class Q_DECLARATIVE_EXPORT QFxItem : public QGraphicsObject, public QmlParserSta Q_INTERFACES(QmlParserStatus) Q_PROPERTY(QFxItem * parent READ itemParent WRITE setItemParent NOTIFY parentChanged DESIGNABLE false FINAL) - Q_PROPERTY(QString id READ id WRITE setId) // ### remove 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) @@ -159,9 +158,6 @@ public: QFxItem *parentItem() const; void setItemParent(QFxItem *parent); // ## setParentItem - QString id() const; // ### remove me - void setId(const QString &); - QmlList<QObject *> *data(); QmlList<QFxItem *> *children(); QmlList<QObject *> *resources(); |