on xenial help sign in
Add button to show or hide app menus to PanelTests
58d9a03Dalton Durst
tests/qmltests/Panel/PanelUI.qml+12
@@ -140,6 +140,18 @@ PanelTest {
140 }
140 }
141 }
141 }
142
142
143+ Button {
144+ Layout.fillWidth: true
145+ text: panel.applicationMenus.shown ? "Hide Menu" : "Show Menu"
146+ onClicked: {
147+ if (panel.applicationMenus.shown) {
148+ panel.applicationMenus.hide();
149+ } else {
150+ panel.applicationMenus.show();
151+ }
152+ }
153+ }
154+
143 Button {
155 Button {
144 Layout.fillWidth: true
156 Layout.fillWidth: true
145 text: callManager.hasCalls ? "Remove call" : "Add call"
157 text: callManager.hasCalls ? "Remove call" : "Add call"