diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-31 03:18:44 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-31 03:18:44 (GMT) |
commit | 6e111b951930c892d86ae914706d16a11231a546 (patch) | |
tree | 4b0f2ccb5995ce40430414c5549d07ff60f060bb /src | |
parent | cb9ce64d9a233f6c53b5961cfe637ccc2ac6fa69 (diff) | |
download | Qt-6e111b951930c892d86ae914706d16a11231a546.zip Qt-6e111b951930c892d86ae914706d16a11231a546.tar.gz Qt-6e111b951930c892d86ae914706d16a11231a546.tar.bz2 |
AnchorChanges doc
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qmlstateoperations.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp index b17b80b..85ad1b5 100644 --- a/src/declarative/util/qmlstateoperations.cpp +++ b/src/declarative/util/qmlstateoperations.cpp @@ -285,7 +285,11 @@ QmlStateChangeScript::ActionList QmlStateChangeScript::actions() /*! \qmlclass AnchorChanges - \brief The AnchorChanges element allows you to change anchors in a state. + \brief The AnchorChanges element allows you to change the anchors of an item in a state. + + \snippet examples/declarative/anchors/anchor-changes.qml 0 + + For more information on anchors see \l {anchor-layout}{Anchor Layouts}. */ QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,AnchorChanges,QmlAnchorChanges) @@ -313,6 +317,11 @@ public: qreal origHeight; }; +/*! + \qmlproperty Object AnchorChanges::target + This property holds the object that the anchors to change belong to +*/ + QmlAnchorChanges::QmlAnchorChanges(QObject *parent) : QmlStateOperation(*(new QmlAnchorChangesPrivate), parent) { @@ -354,6 +363,14 @@ void QmlAnchorChanges::setReset(const QString &reset) d->resetList = d->resetString.split(QLatin1Char(',')); } +/*! + \qmlproperty AnchorLine AnchorChanges::top + \qmlproperty AnchorLine AnchorChanges::bottom + \qmlproperty AnchorLine AnchorChanges::left + \qmlproperty AnchorLine AnchorChanges::right + These properties change the \e left, \e top, \e right and \e bottom anchors of the item +*/ + QFxAnchorLine QmlAnchorChanges::left() const { Q_D(const QmlAnchorChanges); |