changeset 249:5695197a3ca5

Add an about Qt help menu item
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 09 Jun 2016 05:19:03 +0200
parents f08fa6dcb86f
children f715378371ab
files MainWindow.py MainWindow.ui
diffstat 2 files changed, 34 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MainWindow.py	Thu Jun 09 05:09:06 2016 +0200
+++ b/MainWindow.py	Thu Jun 09 05:19:03 2016 +0200
@@ -203,3 +203,6 @@
     def zoomOut(self):
         zoom = self.ui.webView.zoomFactor() - 0.1
         self.ui.webView.setZoomFactor(zoom)
+
+    def aboutQtClicked(self):
+        QApplication.aboutQt()
--- a/MainWindow.ui	Thu Jun 09 05:09:06 2016 +0200
+++ b/MainWindow.ui	Thu Jun 09 05:19:03 2016 +0200
@@ -24,7 +24,7 @@
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
-      <widget class="QWidget" name="">
+      <widget class="QWidget" name="layoutWidget">
        <layout class="QVBoxLayout" name="verticalLayout">
         <item>
          <widget class="QLabel" name="feedCountLabel">
@@ -60,7 +60,7 @@
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
-       <widget class="QWidget" name="">
+       <widget class="QWidget" name="layoutWidget">
         <layout class="QVBoxLayout" name="verticalLayout_2">
          <item>
           <widget class="QLabel" name="feedEntryCountLabel">
@@ -151,9 +151,16 @@
     <addaction name="separator"/>
     <addaction name="actionQuit"/>
    </widget>
+   <widget class="QMenu" name="menuHelp">
+    <property name="title">
+     <string>Help</string>
+    </property>
+    <addaction name="actionAboutQt"/>
+   </widget>
    <addaction name="menuFeedworm"/>
    <addaction name="menuFeed"/>
    <addaction name="menuArticle"/>
+   <addaction name="menuHelp"/>
   </widget>
   <widget class="QStatusBar" name="statusbar"/>
   <widget class="QToolBar" name="toolBar">
@@ -334,6 +341,11 @@
     <string>Zoom Out</string>
    </property>
   </action>
+  <action name="actionAboutQt">
+   <property name="text">
+    <string>About Qt</string>
+   </property>
+  </action>
  </widget>
  <customwidgets>
   <customwidget>
@@ -602,6 +614,22 @@
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>actionAboutQt</sender>
+   <signal>activated()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>aboutQtClicked()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>-1</x>
+     <y>-1</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>495</x>
+     <y>374</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>addFeed()</slot>
@@ -619,5 +647,6 @@
   <slot>copyArticleURLToClipboard()</slot>
   <slot>zoomIn()</slot>
   <slot>zoomOut()</slot>
+  <slot>aboutQtClicked()</slot>
  </slots>
 </ui>