aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpropertychanges.cpp
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2012-04-17 15:24:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-23 12:35:19 +0200
commitbb1f411455ec0e3a446b87c24d44577e17251aef (patch)
tree034ed1497f4b7444eed24d508f91feea56f12339 /src/quick/util/qquickpropertychanges.cpp
parent6fe0263b25475199808fc5633fbcacc06162af2a (diff)
Doc: Changed the title for QtQuick articles
- Removed "QML" from the title - Fixed the links to the articles - Removed extra references to QML Change-Id: I47e0871d9362be9625ada61d27123b1605d55a94 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/util/qquickpropertychanges.cpp')
-rw-r--r--src/quick/util/qquickpropertychanges.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/quick/util/qquickpropertychanges.cpp b/src/quick/util/qquickpropertychanges.cpp
index 4bff006d9b..49df009af2 100644
--- a/src/quick/util/qquickpropertychanges.cpp
+++ b/src/quick/util/qquickpropertychanges.cpp
@@ -69,28 +69,28 @@ QT_BEGIN_NAMESPACE
\ingroup qml-state-elements
\brief The PropertyChanges element describes new property bindings or values for a state.
- PropertyChanges is used to define the property values or bindings in a
+ PropertyChanges is used to define the property values or bindings in a
\l State. This enables an item's property values to be changed when it
- \l {QML States}{changes between states}.
+ \l {States}{changes between states}.
- To create a PropertyChanges object, specify the \l target item whose
+ To create a PropertyChanges object, specify the \l target item whose
properties are to be modified, and define the new property values or
bindings. For example:
-
- \snippet doc/src/snippets/qml/propertychanges.qml import
+
+ \snippet doc/src/snippets/qml/propertychanges.qml import
\codeline
\snippet doc/src/snippets/qml/propertychanges.qml 0
When the mouse is pressed, the \l Rectangle changes to the \e resized
- state. In this state, the PropertyChanges object sets the rectangle's
+ state. In this state, the PropertyChanges object sets the rectangle's
color to blue and the \c height value to that of \c container.height.
- Note this automatically binds \c rect.height to \c container.height
+ Note this automatically binds \c rect.height to \c container.height
in the \e resized state. If a property binding should not be
established, and the height should just be set to the value of
\c container.height at the time of the state change, set the \l explicit
property to \c true.
-
+
A PropertyChanges object can also override the default signal handler
for an object to implement a signal handler specific to the new state:
@@ -205,7 +205,7 @@ public:
if (ownedExpression == rewindExpression)
ownedExpression = 0;
}
- virtual void saveCurrentValues() {
+ virtual void saveCurrentValues() {
rewindExpression = QQmlPropertyPrivate::signalExpression(property);
}
@@ -432,7 +432,7 @@ void QQuickPropertyChanges::setObject(QObject *o)
\qmlproperty bool QtQuick2::PropertyChanges::restoreEntryValues
This property holds whether the previous values should be restored when
- leaving the state.
+ leaving the state.
The default value is \c true. Setting this value to \c false creates a
temporary state that has permanent effects on property values.