diff options
author | Bumjoon Park <bumjoon.park@qt.io> | 2023-03-23 17:11:12 +0900 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-03-27 10:34:58 +0000 |
commit | 3238e18d6b0dc45d2e765fb0b93da5cbf3f396ec (patch) | |
tree | e9ea5df2ce1bf5bfa6177a081bf6423069a70013 /examples/quick/keyinteraction/ContextMenu.qml | |
parent | 26e86ee9ea26c9031d51d17448b9035a27fa9208 (diff) |
- 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.qml | 9 |
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") } } } |