diff Ui_Preferences.ui @ 72:e8c2730eb444

control the display of unread feeds/all feeds via Preferences
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 11 Aug 2010 03:23:02 +0200
parents db35ab7753f0
children 48d1d7bba548
line wrap: on
line diff
--- a/Ui_Preferences.ui	Wed Aug 11 03:10:32 2010 +0200
+++ b/Ui_Preferences.ui	Wed Aug 11 03:23:02 2010 +0200
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>400</width>
-    <height>300</height>
+    <height>152</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -21,7 +21,7 @@
    <property name="geometry">
     <rect>
      <x>30</x>
-     <y>240</y>
+     <y>110</y>
      <width>341</width>
      <height>32</height>
     </rect>
@@ -50,7 +50,7 @@
    <property name="geometry">
     <rect>
      <x>10</x>
-     <y>40</y>
+     <y>70</y>
      <width>171</width>
      <height>22</height>
     </rect>
@@ -59,6 +59,19 @@
     <string>Hide read feed entries</string>
    </property>
   </widget>
+  <widget class="QCheckBox" name="showOnlyUnreadFeeds">
+   <property name="geometry">
+    <rect>
+     <x>10</x>
+     <y>40</y>
+     <width>301</width>
+     <height>22</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>Show only feeds that have unread entries</string>
+   </property>
+  </widget>
  </widget>
  <resources>
   <include location="Feedworm.qrc"/>
@@ -128,9 +141,26 @@
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>showOnlyUnreadFeeds</sender>
+   <signal>stateChanged(int)</signal>
+   <receiver>Preferences</receiver>
+   <slot>showOnlyFeedsWithUnreadEntries()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>160</x>
+     <y>50</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>199</x>
+     <y>75</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>startMaximizedChanged()</slot>
   <slot>hideReadFeedEntriesChanged()</slot>
+  <slot>showOnlyFeedsWithUnreadEntries()</slot>
  </slots>
 </ui>