diff options
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/testbench/main.qml | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml index 76008497..6ace3620 100644 --- a/tests/manual/testbench/main.qml +++ b/tests/manual/testbench/main.qml @@ -53,7 +53,6 @@ ApplicationWindow { Material.theme: themeSwitch.checked ? Material.Dark : Material.Light Universal.theme: themeSwitch.checked ? Universal.Dark : Universal.Light - Material.accent: Material.LightGreen property int controlSpacing: 10 @@ -71,6 +70,25 @@ ApplicationWindow { ToolButton { text: "Normal" onClicked: menu.visible ? menu.close() : menu.open() + + Menu { + id: menu + x: 1 + y: 1 + parent.height + + MenuItem { + text: "Option 1" + checkable: true + } + MenuItem { + text: "Option 2" + checkable: true + } + MenuItem { + text: "Option 3" + checkable: true + } + } } ToolButton { text: "Pressed" @@ -115,25 +133,6 @@ ApplicationWindow { } } - Menu { - id: menu - contentItem.x: 1 - contentItem.y: header.height - - MenuItem { - text: "Option 1" - checkable: true - } - MenuItem { - text: "Option 2" - checkable: true - } - MenuItem { - text: "Option 3" - checkable: true - } - } - Pane { anchors.fill: parent |