2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2021-11-08 13:59:43 +00:00
|
|
|
import QtQuick
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
FocusScope {
|
|
|
|
id: container
|
2023-03-23 08:11:12 +00:00
|
|
|
|
2019-09-17 16:10:59 +00:00
|
|
|
required property Item keyRightTarget
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
property bool open: false
|
|
|
|
|
|
|
|
Item {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
anchors.fill: parent
|
|
|
|
color: "#D1DBBD"
|
|
|
|
focus: true
|
2019-09-17 16:10:59 +00:00
|
|
|
Keys.onRightPressed: container.keyRightTarget.focus = true
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2014-01-15 21:01:15 +00:00
|
|
|
Text {
|
2023-03-23 08:11:12 +00:00
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
horizontalCenter: parent.horizontalCenter
|
|
|
|
margins: 30
|
|
|
|
}
|
2011-04-27 10:05:43 +00:00
|
|
|
color: "black"
|
|
|
|
font.pixelSize: 14
|
2023-03-23 08:11:12 +00:00
|
|
|
text: qsTr("Context Menu")
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|