Keep "About NUSGet" and "About Qt" under the application menu on macOS

Defined menu roles for those items so that Qt knows they belong under "NUSGet" when on macOS. This worked automatically somehow in English, but when loading a localization they'd be relocated to "Help" like they are on Windows and Linux. They'll now stay in the correct place for all languages.
This commit is contained in:
2025-05-09 12:56:26 -04:00
parent 4b0a03cc97
commit 0eb003d599
10 changed files with 60 additions and 44 deletions

View File

@@ -461,7 +461,10 @@ li.checked::marker { content: "\2612"; }
<iconset theme="QIcon::ThemeIcon::HelpAbout"/>
</property>
<property name="text">
<string>About</string>
<string>About NUSGet</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::ApplicationSpecificRole</enum>
</property>
</action>
<action name="actionAbout_Qt">
@@ -471,6 +474,9 @@ li.checked::marker { content: &quot;\2612&quot;; }
<property name="text">
<string>About Qt</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::ApplicationSpecificRole</enum>
</property>
</action>
</widget>
<customwidgets>