aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/keyinteraction/ContextMenu.qml
diff options
context:
space:
mode:
authorBumjoon Park <bumjoon.park@qt.io>2023-03-23 17:11:12 +0900
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-27 10:34:58 +0000
commit3238e18d6b0dc45d2e765fb0b93da5cbf3f396ec (patch)
treee9ea5df2ce1bf5bfa6177a081bf6423069a70013 /examples/quick/keyinteraction/ContextMenu.qml
parent26e86ee9ea26c9031d51d17448b9035a27fa9208 (diff)
Keyinteraction example: Update by coding conventions from official docv6.5.06.5.0
- string are translated. - JS statements no longer end with semi-colon. - Fix qmllint warning. Change-Id: I83f2b702c9bb9f02f86728e2277297272cd75251 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 023849fce46d25edc41db7b7c9e275cb0de5c189) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/keyinteraction/ContextMenu.qml')
-rw-r--r--examples/quick/keyinteraction/ContextMenu.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/quick/keyinteraction/ContextMenu.qml b/examples/quick/keyinteraction/ContextMenu.qml
index 6364118602..22d149fd9d 100644
--- a/examples/quick/keyinteraction/ContextMenu.qml
+++ b/examples/quick/keyinteraction/ContextMenu.qml
@@ -5,6 +5,7 @@ import QtQuick
FocusScope {
id: container
+
required property Item keyRightTarget
property bool open: false
@@ -19,10 +20,14 @@ FocusScope {
Keys.onRightPressed: container.keyRightTarget.focus = true
Text {
- anchors { top: parent.top; horizontalCenter: parent.horizontalCenter; margins: 30 }
+ anchors {
+ top: parent.top
+ horizontalCenter: parent.horizontalCenter
+ margins: 30
+ }
color: "black"
font.pixelSize: 14
- text: "Context Menu"
+ text: qsTr("Context Menu")
}
}
}