Doc: Update change from "+" to "Create New State" label
States view layout was also changed, so update screenshots. Change-Id: I0e4535add8720375e40fcf0e65b20061d94c5150 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 20 KiB |
@@ -214,8 +214,8 @@
|
|||||||
\c y properties of \e icon to those of the rectangles.
|
\c y properties of \e icon to those of the rectangles.
|
||||||
|
|
||||||
\list 1
|
\list 1
|
||||||
\li In the \uicontrol States view, click the \inlineimage plus.png
|
\li In the \uicontrol States view, select \uicontrol {Create New State}
|
||||||
button three times to create \e State1, \e State2, and \e State3.
|
three times to create \e State1, \e State2, and \e State3.
|
||||||
\li Select \e State1 in \uicontrol States.
|
\li Select \e State1 in \uicontrol States.
|
||||||
\li Select \inlineimage icons/action-icon.png
|
\li Select \inlineimage icons/action-icon.png
|
||||||
to open the \uicontrol Actions menu, and then select
|
to open the \uicontrol Actions menu, and then select
|
||||||
|
@@ -229,7 +229,7 @@
|
|||||||
\section1 Using States to Change Component Property Values
|
\section1 Using States to Change Component Property Values
|
||||||
|
|
||||||
\list 1
|
\list 1
|
||||||
\li In the \uicontrol States view, select \inlineimage plus.png
|
\li In the \uicontrol States view, select \uicontrol {Create New State}
|
||||||
twice to create two new states.
|
twice to create two new states.
|
||||||
\image qmldesigner-borderimage-states.png "Active and inactive states"
|
\image qmldesigner-borderimage-states.png "Active and inactive states"
|
||||||
\li Select \uicontrol State1.
|
\li Select \uicontrol State1.
|
||||||
|
@@ -68,9 +68,9 @@
|
|||||||
|
|
||||||
\image qmldesigner-transitions.png "States view"
|
\image qmldesigner-transitions.png "States view"
|
||||||
|
|
||||||
To add states, click the \inlineimage plus.png
|
To add states, select \uicontrol {Create New State}. Click the new state to
|
||||||
button. Click the new state to switch to it in \uicontrol {Form Editor},
|
switch to it in \uicontrol {Form Editor}, and then modify the properties of
|
||||||
and then modify the properties of components in \uicontrol Properties.
|
components in \uicontrol Properties.
|
||||||
|
|
||||||
For example, to change the appearance of a button, you can hide the button
|
For example, to change the appearance of a button, you can hide the button
|
||||||
image and show another image in its place. Or, to add movement to the view,
|
image and show another image in its place. Or, to add movement to the view,
|
||||||
|
@@ -101,7 +101,7 @@
|
|||||||
|
|
||||||
We create the states for displaying the Trip, Standard, and Navigation
|
We create the states for displaying the Trip, Standard, and Navigation
|
||||||
screens by moving from viewport to viewport in \e Screen01.ui.qml and
|
screens by moving from viewport to viewport in \e Screen01.ui.qml and
|
||||||
clicking \inlineimage plus.png "Add button" in the \uicontrol States view
|
selecting \uicontrol {Create New State} in the \uicontrol States view
|
||||||
when the appropriate screen is displayed in the viewport.
|
when the appropriate screen is displayed in the viewport.
|
||||||
|
|
||||||
We then create states for animations that are run when moving between the
|
We then create states for animations that are run when moving between the
|
||||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 10 KiB |
@@ -114,8 +114,7 @@
|
|||||||
components in the \uicontrol {Form Editor}:
|
components in the \uicontrol {Form Editor}:
|
||||||
|
|
||||||
\list 1
|
\list 1
|
||||||
\li In the \uicontrol States view, select the \inlineimage plus.png
|
\li In the \uicontrol States view, select \uicontrol {Create New State}.
|
||||||
button.
|
|
||||||
\image loginui3-login-state.png "States view"
|
\image loginui3-login-state.png "States view"
|
||||||
\li Enter \e loginState as the state name.
|
\li Enter \e loginState as the state name.
|
||||||
\li Select \e verifyPasswordField in the \uicontrol Navigator,
|
\li Select \e verifyPasswordField in the \uicontrol Navigator,
|
||||||
|
@@ -257,10 +257,10 @@
|
|||||||
in \uicontrol Timeline:
|
in \uicontrol Timeline:
|
||||||
|
|
||||||
\list 1
|
\list 1
|
||||||
\li In \uicontrol States, select the \inlineimage plus.png
|
\li In \uicontrol States, select \uicontrol {Create New State} twice to
|
||||||
button twice to add two states called \e loginState and
|
add two states called \e loginState and \e registerState. You don't
|
||||||
\e registerState. You don't need to make any property changes this
|
need to make any property changes this time, because you'll bind the
|
||||||
time, because you'll bind the states to property animations.
|
states to property animations.
|
||||||
\li In \uicontrol Timeline, select the \inlineimage animation.png
|
\li In \uicontrol Timeline, select the \inlineimage animation.png
|
||||||
(\uicontrol {Timeline Settings (S)}) button on the toolbar (or press
|
(\uicontrol {Timeline Settings (S)}) button on the toolbar (or press
|
||||||
\key S to open the \uicontrol {Timeline Settings} dialog.
|
\key S to open the \uicontrol {Timeline Settings} dialog.
|
||||||
|
@@ -142,8 +142,8 @@
|
|||||||
another animation is run that closes the side menu. When the animation
|
another animation is run that closes the side menu. When the animation
|
||||||
finishes, the side menu returns to the \e closed state.
|
finishes, the side menu returns to the \e closed state.
|
||||||
|
|
||||||
We select the \inlineimage plus.png
|
We select \uicontrol {Create New State} in the \uicontrol States view to add
|
||||||
(\uicontrol Add) button in the \uicontrol States view to add the states:
|
the states:
|
||||||
|
|
||||||
\image sidemenu-states.png "Side menu states"
|
\image sidemenu-states.png "Side menu states"
|
||||||
|
|
||||||
|