forked from NinjaCheetah/NUSGet
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:
parent
4b0a03cc97
commit
0eb003d599
@ -35,9 +35,11 @@ class Ui_MainWindow(object):
|
|||||||
self.actionAbout.setObjectName(u"actionAbout")
|
self.actionAbout.setObjectName(u"actionAbout")
|
||||||
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.HelpAbout))
|
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.HelpAbout))
|
||||||
self.actionAbout.setIcon(icon)
|
self.actionAbout.setIcon(icon)
|
||||||
|
self.actionAbout.setMenuRole(QAction.MenuRole.ApplicationSpecificRole)
|
||||||
self.actionAbout_Qt = QAction(MainWindow)
|
self.actionAbout_Qt = QAction(MainWindow)
|
||||||
self.actionAbout_Qt.setObjectName(u"actionAbout_Qt")
|
self.actionAbout_Qt.setObjectName(u"actionAbout_Qt")
|
||||||
self.actionAbout_Qt.setIcon(icon)
|
self.actionAbout_Qt.setIcon(icon)
|
||||||
|
self.actionAbout_Qt.setMenuRole(QAction.MenuRole.ApplicationSpecificRole)
|
||||||
self.centralwidget = QWidget(MainWindow)
|
self.centralwidget = QWidget(MainWindow)
|
||||||
self.centralwidget.setObjectName(u"centralwidget")
|
self.centralwidget.setObjectName(u"centralwidget")
|
||||||
self.horizontalLayout_3 = QHBoxLayout(self.centralwidget)
|
self.horizontalLayout_3 = QHBoxLayout(self.centralwidget)
|
||||||
@ -332,7 +334,7 @@ class Ui_MainWindow(object):
|
|||||||
|
|
||||||
def retranslateUi(self, MainWindow):
|
def retranslateUi(self, MainWindow):
|
||||||
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
|
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
|
||||||
self.actionAbout.setText(QCoreApplication.translate("MainWindow", u"About", None))
|
self.actionAbout.setText(QCoreApplication.translate("MainWindow", u"About NUSGet", None))
|
||||||
self.actionAbout_Qt.setText(QCoreApplication.translate("MainWindow", u"About Qt", None))
|
self.actionAbout_Qt.setText(QCoreApplication.translate("MainWindow", u"About Qt", None))
|
||||||
self.tree_filter_input.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Search", None))
|
self.tree_filter_input.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Search", None))
|
||||||
self.tree_filter_reset_btn.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
|
self.tree_filter_reset_btn.setText(QCoreApplication.translate("MainWindow", u"Clear", None))
|
||||||
|
@ -461,7 +461,10 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<iconset theme="QIcon::ThemeIcon::HelpAbout"/>
|
<iconset theme="QIcon::ThemeIcon::HelpAbout"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>About</string>
|
<string>About NUSGet</string>
|
||||||
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::MenuRole::ApplicationSpecificRole</enum>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionAbout_Qt">
|
<action name="actionAbout_Qt">
|
||||||
@ -471,6 +474,9 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>About Qt</string>
|
<string>About Qt</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::MenuRole::ApplicationSpecificRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
@ -469,11 +469,15 @@ li.checked::marker { content: "\2612"; }
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
<source>About</source>
|
<source>About NUSGet</source>
|
||||||
<translation>Über</translation>
|
<translation type="unfinished">Über NUSGet</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
<source>About</source>
|
||||||
|
<translation type="vanished">Über</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation>Über Qt</translation>
|
<translation>Über Qt</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -152,6 +152,11 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></source>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -213,12 +218,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -411,6 +411,11 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></source>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -481,12 +486,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -140,6 +140,11 @@
|
|||||||
<source>General Settings</source>
|
<source>General Settings</source>
|
||||||
<translation>Impostazioni generali</translation>
|
<translation>Impostazioni generali</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -217,12 +222,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -140,6 +140,11 @@
|
|||||||
<source>General Settings</source>
|
<source>General Settings</source>
|
||||||
<translation>일반 설정</translation>
|
<translation>일반 설정</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished">NUSGet 정보</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -217,12 +222,11 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation>도움말</translation>
|
<translation>도움말</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
|
||||||
<source>About</source>
|
<source>About</source>
|
||||||
<translation>정보</translation>
|
<translation type="vanished">정보</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation>Qt 정보</translation>
|
<translation>Qt 정보</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -140,6 +140,11 @@
|
|||||||
<source>General Settings</source>
|
<source>General Settings</source>
|
||||||
<translation>Generelle Instillinger</translation>
|
<translation>Generelle Instillinger</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -217,12 +222,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -140,6 +140,11 @@
|
|||||||
<source>General Settings</source>
|
<source>General Settings</source>
|
||||||
<translation>Generelle Instillinger</translation>
|
<translation>Generelle Instillinger</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -217,12 +222,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -449,6 +449,11 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></source>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
||||||
|
<source>About NUSGet</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../NUSGet.py" line="157"/>
|
<location filename="../../NUSGet.py" line="157"/>
|
||||||
<source>Pack installable archive (WAD/TAD)</source>
|
<source>Pack installable archive (WAD/TAD)</source>
|
||||||
@ -519,12 +524,7 @@ li.checked::marker { content: "\2612"; }
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="464"/>
|
<location filename="../../qt/ui/MainMenu.ui" line="475"/>
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../../qt/ui/MainMenu.ui" line="472"/>
|
|
||||||
<source>About Qt</source>
|
<source>About Qt</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user