Fix Tag Browser sizing issues with long searches

This commit is contained in:
Kovid Goyal 2010-05-01 11:49:46 -06:00
parent bb7edaa57b
commit 3f28c128ea
2 changed files with 17 additions and 15 deletions

View File

@ -306,12 +306,6 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="TagsView" name="tags_view">
<property name="maximumSize">
<size>
<width>256</width>
<height>16777215</height>
</size>
</property>
<property name="tabKeyNavigation">
<bool>true</bool>
</property>
@ -354,12 +348,12 @@
</item>
<item>
<widget class="QPushButton" name="edit_categories">
<property name="text">
<string>Manage user categories</string>
<property name="toolTip">
<string>Create, edit, and delete user categories</string>
</property>
<property name="text">
<string>Manage &amp;user categories</string>
</property>
<property name="toolTip">
<string>Create, edit, and delete user categories</string>
</property>
</widget>
</item>
</layout>
@ -369,7 +363,10 @@
<item>
<widget class="QLabel" name="restriction_label">
<property name="text">
<string>Restrict display to:</string>
<string>&amp;Restrict display to:</string>
</property>
<property name="buddy">
<cstring>search_restriction</cstring>
</property>
</widget>
</item>
@ -381,9 +378,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Books display will be restricted to those matching the selected saved search</string>
</property>
<property name="toolTip">
<string>Books display will be restricted to those matching the selected saved search</string>
</property>
</widget>
</item>
</layout>

View File

@ -603,6 +603,11 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
self.library_view.model().count_changed()
########################### Tags Browser ##############################
self.search_restriction.setSizeAdjustPolicy(self.search_restriction.AdjustToMinimumContentsLengthWithIcon)
self.search_restriction.setMinimumContentsLength(10)
########################### Cover Flow ################################
self.cover_flow = None
if CoverFlow is not None: