Qt: Add a context menu to the toolbar's Settings button when the game is running

A new small context menu that allows to select between global settings
and game settings.
This commit is contained in:
Silent
2023-02-28 19:53:31 +01:00
parent f34b17446c
commit 6f0280afc2
3 changed files with 38 additions and 2 deletions

View File

@@ -277,7 +277,7 @@
<addaction name="actionSaveState"/>
<addaction name="separator"/>
<addaction name="actionFullscreen"/>
<addaction name="actionSettings"/>
<addaction name="actionSettings2"/>
<addaction name="actionControllerSettings"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
@@ -610,7 +610,22 @@
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>&amp;Settings...</string>
<string>&amp;Settings</string>
</property>
<property name="menuRole">
<enum>QAction::PreferencesRole</enum>
</property>
</action>
<action name="actionSettings2">
<property name="icon">
<iconset theme="settings-3-line">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>&amp;Settings</string>
</property>
<property name="menuRole">
<enum>QAction::PreferencesRole</enum>
</property>
</action>
<action name="actionChangeDiscFromFile">