Mac-specific: Interaction with Mac OS application menu (issue #255)

This commit is contained in:
Abs62 2013-04-02 17:22:20 +04:00
parent 88fc0c3110
commit 0f041a5b80

View file

@ -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>&amp;Homepage</string> <string>&amp;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>&amp;Forum</string> <string>&amp;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&amp;up</string> <string>Page Set&amp;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&amp;view</string> <string>Print Pre&amp;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>&amp;Clear</string> <string>&amp;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>&amp;Configuration Folder</string> <string>&amp;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>&amp;Export</string> <string>&amp;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>&amp;Import</string> <string>&amp;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">