aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgitem.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2011-09-09 14:03:31 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-12 01:41:58 +0200
commitc08f82a5c847255dcbc49efd66972bf4d79cb636 (patch)
treebdcfe12d64bd6077a0ef9e8db3f5c0f35f431ec0 /src/declarative/items/qsgitem.h
parent6fd87ae64b5aa7fe513bb0805bfcbc191c0463de (diff)
Make state a public property of QSGItem.
The property type is QString, so doesn't need to be private. Change-Id: If1d1a740be451331e8142fbe1d89fda2eeff4509 Reviewed-on: http://codereview.qt-project.org/4499 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgitem.h')
-rw-r--r--src/declarative/items/qsgitem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/items/qsgitem.h b/src/declarative/items/qsgitem.h
index 9a540d7d2f..3cbb7c2091 100644
--- a/src/declarative/items/qsgitem.h
+++ b/src/declarative/items/qsgitem.h
@@ -118,7 +118,7 @@ class Q_DECLARATIVE_EXPORT QSGItem : public QObject, public QDeclarativeParserSt
Q_PRIVATE_PROPERTY(QSGItem::d_func(), QDeclarativeListProperty<QDeclarativeState> states READ states DESIGNABLE false)
Q_PRIVATE_PROPERTY(QSGItem::d_func(), QDeclarativeListProperty<QDeclarativeTransition> transitions READ transitions DESIGNABLE false)
- Q_PRIVATE_PROPERTY(QSGItem::d_func(), QString state READ state WRITE setState NOTIFY stateChanged)
+ Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged)
Q_PROPERTY(QRectF childrenRect READ childrenRect NOTIFY childrenRectChanged DESIGNABLE false FINAL)
Q_PRIVATE_PROPERTY(QSGItem::d_func(), QSGAnchors * anchors READ anchors DESIGNABLE false CONSTANT FINAL)
Q_PRIVATE_PROPERTY(QSGItem::d_func(), QSGAnchorLine left READ left CONSTANT FINAL)
@@ -204,6 +204,9 @@ public:
bool clip() const;
void setClip(bool);
+ QString state() const;
+ void setState(const QString &);
+
qreal baselineOffset() const;
void setBaselineOffset(qreal);