mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
Mac-specific: Interaction with Mac OS application menu (issue #255)
This commit is contained in:
parent
88fc0c3110
commit
0f041a5b80
|
@ -321,6 +321,9 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>F3</string>
|
<string>F3</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="preferences">
|
<action name="preferences">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
|
@ -333,11 +336,17 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>F4</string>
|
<string>F4</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::PreferencesRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="visitHomepage">
|
<action name="visitHomepage">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Homepage</string>
|
<string>&Homepage</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="about">
|
<action name="about">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -349,6 +358,9 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>F1</string>
|
<string>F1</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::AboutRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="quit">
|
<action name="quit">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -360,11 +372,17 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+Q</string>
|
<string>Ctrl+Q</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::QuitRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="visitForum">
|
<action name="visitForum">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Forum</string>
|
<string>&Forum</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionCloseToTray">
|
<action name="actionCloseToTray">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -376,6 +394,9 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+F4</string>
|
<string>Ctrl+F4</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="saveArticle">
|
<action name="saveArticle">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
|
@ -391,6 +412,9 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>F2</string>
|
<string>F2</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="print">
|
<action name="print">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
|
@ -403,16 +427,25 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+P</string>
|
<string>Ctrl+P</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="pageSetup">
|
<action name="pageSetup">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Page Set&up</string>
|
<string>Page Set&up</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="printPreview">
|
<action name="printPreview">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Print Pre&view</string>
|
<string>Print Pre&view</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="rescanFiles">
|
<action name="rescanFiles">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -421,11 +454,17 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+F5</string>
|
<string>Ctrl+F5</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="clearHistory">
|
<action name="clearHistory">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Clear</string>
|
<string>&Clear</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="newTab">
|
<action name="newTab">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
|
@ -441,11 +480,17 @@
|
||||||
<property name="shortcutContext">
|
<property name="shortcutContext">
|
||||||
<enum>Qt::WidgetShortcut</enum>
|
<enum>Qt::WidgetShortcut</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="openConfigFolder">
|
<action name="openConfigFolder">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Configuration Folder</string>
|
<string>&Configuration Folder</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="showHideHistory">
|
<action name="showHideHistory">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -454,16 +499,25 @@
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+H</string>
|
<string>Ctrl+H</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="exportHistory">
|
<action name="exportHistory">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Export</string>
|
<string>&Export</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="importHistory">
|
<action name="importHistory">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Import</string>
|
<string>&Import</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="alwaysOnTop">
|
<action name="alwaysOnTop">
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
|
|
Loading…
Reference in a new issue