summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-24 00:07:31 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-24 00:07:31 (GMT)
commit3170c89da80feb841b115db28a4dcf5ddadbbded (patch)
treeb1d6554646ef530d561e7b825e53136ea288a4bd /src/declarative
parenta28f9a0204fcf7ab4ecf7546fc455f5db3aa7387 (diff)
downloadQt-3170c89da80feb841b115db28a4dcf5ddadbbded.zip
Qt-3170c89da80feb841b115db28a4dcf5ddadbbded.tar.gz
Qt-3170c89da80feb841b115db28a4dcf5ddadbbded.tar.bz2
fromState -> from, toState -> to for Transition.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/util/qmltransition.cpp12
-rw-r--r--src/declarative/util/qmltransition.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/declarative/util/qmltransition.cpp b/src/declarative/util/qmltransition.cpp
index e70661d..66275d9 100644
--- a/src/declarative/util/qmltransition.cpp
+++ b/src/declarative/util/qmltransition.cpp
@@ -183,17 +183,17 @@ void QmlTransition::prepare(QmlStateOperation::ActionList &actions,
}
/*!
- \qmlproperty string Transition::fromState
- \qmlproperty string Transition::toState
+ \qmlproperty string Transition::from
+ \qmlproperty string Transition::to
These properties are selectors indicating which state changes should trigger the transition.
- fromState is used in conjunction with toState to determine when a transition should
- be applied. By default fromState and toState are both "*" (any state). In the following example,
+ from is used in conjunction with to to determine when a transition should
+ be applied. By default from and to are both "*" (any state). In the following example,
the transition is applied when changing from state1 to state2.
\code
Transition {
- fromState: "state1"
- toState: "state2"
+ from: "state1"
+ to: "state2"
...
}
\endcode
diff --git a/src/declarative/util/qmltransition.h b/src/declarative/util/qmltransition.h
index 39b35ba..b09341d 100644
--- a/src/declarative/util/qmltransition.h
+++ b/src/declarative/util/qmltransition.h
@@ -61,8 +61,8 @@ class Q_DECLARATIVE_EXPORT QmlTransition : public QObject
Q_OBJECT
Q_DECLARE_PRIVATE(QmlTransition)
- Q_PROPERTY(QString fromState READ fromState WRITE setFromState)
- Q_PROPERTY(QString toState READ toState WRITE setToState)
+ Q_PROPERTY(QString from READ fromState WRITE setFromState)
+ Q_PROPERTY(QString to READ toState WRITE setToState)
Q_PROPERTY(bool reversible READ reversible WRITE setReversible)
Q_PROPERTY(QmlList<QmlAbstractAnimation *>* animations READ animations)
Q_CLASSINFO("DefaultProperty", "animations")