diff options
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") } } } |