Tighten up the layout of the tag editor dialog a bit. Fixes #1722046 [Lots of unused space on Tag editor screen](https://bugs.launchpad.net/calibre/+bug/1722046)

This commit is contained in:
Kovid Goyal 2017-10-08 22:37:57 +05:30
parent 4307856fa9
commit 5f0bdffa5e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>600</width> <width>640</width>
<height>360</height> <height>666</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -89,48 +89,31 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="bottomMargin">
<number>8</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QGridLayout" name="gridLayout">
<item> <item row="1" column="0">
<widget class="QLabel" name="label"> <widget class="QLineEdit" name="available_filter_input">
<property name="text"> <property name="placeholderText">
<string>A&amp;vailable tags</string> <string>Filter the available tags</string>
</property>
<property name="buddy">
<cstring>available_tags</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout"> <widget class="QToolButton" name="available_filter_input_clear_btn">
<item> <property name="toolTip">
<widget class="QLineEdit" name="available_filter_input"> <string>Clear the available tags filter input field</string>
<property name="placeholderText"> </property>
<string>Filter the available tags</string> <property name="text">
</property> <string/>
</widget> </property>
</item> <property name="icon">
<item> <iconset resource="../../../../resources/images.qrc">
<widget class="QToolButton" name="available_filter_input_clear_btn"> <normaloff>:/images/clear_left.png</normaloff>:/images/clear_left.png</iconset>
<property name="toolTip"> </property>
<string>Clear the available tags filter input field</string> </widget>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/clear_left.png</normaloff>:/images/clear_left.png</iconset>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item row="2" column="0" colspan="2">
<widget class="QListWidget" name="available_tags"> <widget class="QListWidget" name="available_tags">
<property name="alternatingRowColors"> <property name="alternatingRowColors">
<bool>true</bool> <bool>true</bool>
@ -143,7 +126,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="3" column="0" colspan="2">
<widget class="QPushButton" name="delete_button"> <widget class="QPushButton" name="delete_button">
<property name="toolTip"> <property name="toolTip">
<string>Delete tag from database. This will unapply the tag from all books and then remove it from the database.</string> <string>Delete tag from database. This will unapply the tag from all books and then remove it from the database.</string>
@ -157,6 +140,16 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label">
<property name="text">
<string>Ava&amp;ilable tags</string>
</property>
<property name="buddy">
<cstring>available_tags</cstring>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -174,43 +167,29 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QGridLayout" name="gridLayout_2">
<item> <item row="1" column="0">
<widget class="QLabel" name="label_2"> <widget class="QLineEdit" name="applied_filter_input">
<property name="text"> <property name="placeholderText">
<string>A&amp;pplied tags</string> <string>Filter the applied tags</string>
</property>
<property name="buddy">
<cstring>applied_tags</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3"> <widget class="QToolButton" name="applied_filter_input_clear_btn">
<item> <property name="toolTip">
<widget class="QLineEdit" name="applied_filter_input"> <string>Clear the applied tags filter input field</string>
<property name="placeholderText"> </property>
<string>Filter the applied tags</string> <property name="text">
</property> <string/>
</widget> </property>
</item> <property name="icon">
<item> <iconset resource="../../../../resources/images.qrc">
<widget class="QToolButton" name="applied_filter_input_clear_btn"> <normaloff>:/images/clear_left.png</normaloff>:/images/clear_left.png</iconset>
<property name="toolTip"> </property>
<string>Clear the applied tags filter input field</string> </widget>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/clear_left.png</normaloff>:/images/clear_left.png</iconset>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item row="2" column="0" colspan="2">
<widget class="QListWidget" name="applied_tags"> <widget class="QListWidget" name="applied_tags">
<property name="alternatingRowColors"> <property name="alternatingRowColors">
<bool>true</bool> <bool>true</bool>
@ -223,7 +202,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Applied &amp;tags</string>
</property>
<property name="buddy">
<cstring>applied_tags</cstring>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QPushButton" name="unapply_button"> <widget class="QPushButton" name="unapply_button">
<property name="toolTip"> <property name="toolTip">
<string>Unapply (remove) tag from current book</string> <string>Unapply (remove) tag from current book</string>