2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
2024-02-22 14:51:16 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2017-09-26 19:14:23 +00:00
|
|
|
|
2020-03-26 16:01:51 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
2017-09-26 19:14:23 +00:00
|
|
|
|
|
|
|
// TODO
|
|
|
|
QtObject {
|
|
|
|
property string customControlName: qsTr("MenuBar & MenuBarItem")
|
|
|
|
|
|
|
|
property var supportedStates: [
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
|
|
|
|
property Component component: MenuBar {
|
|
|
|
MenuBarItem {
|
|
|
|
text: qsTr("Normal")
|
2024-07-04 10:33:13 +00:00
|
|
|
menu: Menu { Action { text: "action" } }
|
2017-09-26 19:14:23 +00:00
|
|
|
}
|
|
|
|
MenuBarItem {
|
|
|
|
text: qsTr("Pressed")
|
|
|
|
down: true
|
2024-07-04 10:33:13 +00:00
|
|
|
menu: Menu { Action { text: "action" } }
|
2017-09-26 19:14:23 +00:00
|
|
|
}
|
|
|
|
MenuBarItem {
|
|
|
|
text: qsTr("Highlighted")
|
|
|
|
highlighted: true
|
2024-07-04 10:33:13 +00:00
|
|
|
menu: Menu { Action { text: "action" } }
|
2017-09-26 19:14:23 +00:00
|
|
|
}
|
|
|
|
MenuBarItem {
|
|
|
|
text: qsTr("Disabled")
|
|
|
|
enabled: false
|
2024-07-04 10:33:13 +00:00
|
|
|
menu: Menu { Action { text: "action" } }
|
2017-09-26 19:14:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|