summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxkeyactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxkeyactions.cpp')
-rw-r--r--src/declarative/fx/qfxkeyactions.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/fx/qfxkeyactions.cpp b/src/declarative/fx/qfxkeyactions.cpp
index d2739ea..52a013a 100644
--- a/src/declarative/fx/qfxkeyactions.cpp
+++ b/src/declarative/fx/qfxkeyactions.cpp
@@ -245,7 +245,7 @@ void QFxKeyActions::setEnabled(bool e)
The following example sets actions for the 'c' and 'x' keys.
\code
- <KeyActions keyC="print('c is for cookie')" keyX="print('I like cookies')" />
+ KeyActions { keyC: "print('c is for cookie')"; keyX: "print('I like cookies')" }
\endcode
*/
QString QFxKeyActions::key_A() const
@@ -519,7 +519,7 @@ void QFxKeyActions::setKey_Z(const QString &s)
The following example sets actions for the left and right arrow keys.
\code
- <KeyActions leftArrow="print('You pressed left')" rightArrow="print('You pressed right')" />
+ KeyActions { leftArrow: "print('You pressed left')"; rightArrow: "print('You pressed right')" }
\endcode
*/
@@ -570,7 +570,7 @@ void QFxKeyActions::setKey_Down(const QString &s)
The following example sets actions for the '5' and '6' keys.
\code
- <KeyActions digit5="print('5 is a prime number')" digit6="print('6 is a composite number')" />
+ KeyActions { digit5: "print('5 is a prime number')"; digit6: "print('6 is a composite number')"; focus: true }
\endcode
*/
@@ -745,7 +745,7 @@ void QFxKeyActions::setKey_Space(const QString &s)
The following example sets an action for the space key.
\code
- <KeyActions space="print('Space pressed')" />
+ KeyActions { space: "print('Space pressed')" }
\endcode
*/
@@ -766,7 +766,7 @@ void QFxKeyActions::setKey_Space(const QString &s)
The following example sets an action for the hangup key.
\code
- <KeyActions hangup="print('Go away now')" />
+ KeyActions { hangup: "print('Go away now')" }
\endcode
*/