aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <[email protected]>2024-05-27 16:35:23 +0200
committerRichard Moe Gustavsen <[email protected]>2024-05-29 18:48:25 +0200
commit67fcd9f035c21e613ff52d8ffb019ccbfa93964b (patch)
treee508ebb2ab9da6d251c584d65c85a0f6a39b66a1 /tests/manual/quickcontrols
parenta5b306650bdaf4d5dc05b2b014e86bfb85bab4e1 (diff)
Menus test: inform when a restart is needed
Changing whether or not to use a native menu bar requires setting AA_DontUseNativeMenuBar. But this will only take effect the next time the app is started. So inform about this, since it can otherwise be quite confusing for the "tester". Change-Id: Ie37b9ec0cc66660548ea13cb383440536e6fd707 Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'tests/manual/quickcontrols')
-rw-r--r--tests/manual/quickcontrols/menus/Main.qml12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/manual/quickcontrols/menus/Main.qml b/tests/manual/quickcontrols/menus/Main.qml
index db9275b955..9f3d7b9895 100644
--- a/tests/manual/quickcontrols/menus/Main.qml
+++ b/tests/manual/quickcontrols/menus/Main.qml
@@ -5,6 +5,7 @@ import QtCore
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
+import QtQuick.Dialogs
ApplicationWindow {
id: window
@@ -213,6 +214,12 @@ ApplicationWindow {
}
}
+ MessageDialog {
+ id: restartNeededDialog
+ buttons: MessageDialog.Ok
+ text: "Your current changes requires a restart to take effect!"
+ }
+
GroupBox {
title: qsTr("MenuBar")
@@ -226,7 +233,10 @@ ApplicationWindow {
text: qsTr("Don't use native menu bar")
checked: CppSettings.dontUseNativeMenuBar
- onClicked: CppSettings.dontUseNativeMenuBar = checked
+ onClicked: {
+ CppSettings.dontUseNativeMenuBar = checked
+ restartNeededDialog.open()
+ }
}
Switch {
id: menuBarVisibleSwitch