/****************************************************************************
**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
**
**
**
+**
** $QT_END_LICENSE$
**
****************************************************************************/
/*!
\qmlclass State QDeclarative1State
+ \inqmlmodule QtQuick 1
\ingroup qml-state-elements
- \since 4.7
+ \since QtQuick 1.0
\brief The State element defines configurations of objects and properties.
A \e state is a set of batched changes from the default configuration.
between the default state and the "clicked" state, thus toggling the color of the
rectangle between black and red.
- \snippet doc/src/snippets/declarative/state.qml 0
+ \snippet doc/src/snippets/qtquick1/state.qml 0
Notice the default state is referred to using an empty string ("").
}
/*!
- \qmlproperty string State::name
+ \qmlproperty string QtQuick1::State::name
This property holds the name of the state.
Each state should have a unique name within its item.
}
/*!
- \qmlproperty bool State::when
+ \qmlproperty bool QtQuick1::State::when
This property holds when the state should be applied.
This should be set to an expression that evaluates to \c true when you want the state to
be applied. For example, the following \l Rectangle changes in and out of the "hidden"
state when the \l MouseArea is pressed:
- \snippet doc/src/snippets/declarative/state-when.qml 0
+ \snippet doc/src/snippets/qtquick1/state-when.qml 0
If multiple states in a group have \c when clauses that evaluate to \c true
at the same time, the first matching state will be applied. For example, in
}
/*!
- \qmlproperty string State::extend
+ \qmlproperty string QtQuick1::State::extend
This property holds the state that this state extends.
When a state extends another state, it inherits all the changes of that state.
}
/*!
- \qmlproperty list<Change> State::changes
+ \qmlproperty list<Change> QtQuick1::State::changes
This property holds the changes to apply for this state
\default