Fix #1722373 [Change symbol in User category editor](https://bugs.launchpad.net/calibre/+bug/1722373)

This commit is contained in:
Kovid Goyal 2017-10-10 10:05:45 +05:30
parent 0dcf1a0666
commit d320d17cc8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 9 additions and 34 deletions

View File

@ -133,7 +133,7 @@
<item> <item>
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="text"> <property name="text">
<string>Category &amp;filter: </string> <string>&amp;Category filter: </string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
@ -171,7 +171,7 @@
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>A&amp;vailable items</string> <string>&amp;Available items</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>available_items_box</cstring> <cstring>available_items_box</cstring>
@ -263,7 +263,7 @@
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
<string>A&amp;pplied items</string> <string>Applied &amp;items</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>applied_items_box</cstring> <cstring>applied_items_box</cstring>
@ -322,7 +322,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../../../resources/images.qrc"> <iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/list_remove.png</normaloff>:/images/list_remove.png</iconset> <normaloff>:/images/minus.png</normaloff>:/images/minus.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -70,9 +70,6 @@ class TagEditor(QDialog, Ui_TagEditor):
self.add_tag_button.clicked.connect(self.add_tag) self.add_tag_button.clicked.connect(self.add_tag)
self.delete_button.clicked.connect(lambda: self.delete_tags()) self.delete_button.clicked.connect(lambda: self.delete_tags())
self.add_tag_input.returnPressed[()].connect(self.add_tag) self.add_tag_input.returnPressed[()].connect(self.add_tag)
# add the handlers for the filter input clear buttons
for x in ('available', 'applied'):
getattr(self, '%s_filter_input_clear_btn' % x).clicked.connect(getattr(self, '%s_filter_input' % x).clear)
# add the handlers for the filter input fields # add the handlers for the filter input fields
self.available_filter_input.textChanged.connect(self.filter_tags) self.available_filter_input.textChanged.connect(self.filter_tags)
self.applied_filter_input.textChanged.connect(partial(self.filter_tags, which='applied_tags')) self.applied_filter_input.textChanged.connect(partial(self.filter_tags, which='applied_tags'))

View File

@ -97,19 +97,8 @@
<property name="placeholderText"> <property name="placeholderText">
<string>Filter the available tags</string> <string>Filter the available tags</string>
</property> </property>
</widget> <property name="clearButtonEnabled">
</item> <bool>true</bool>
<item row="1" column="1">
<widget class="QToolButton" name="available_filter_input_clear_btn">
<property name="toolTip">
<string>Clear the available tags filter input field</string>
</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> </property>
</widget> </widget>
</item> </item>
@ -173,19 +162,8 @@
<property name="placeholderText"> <property name="placeholderText">
<string>Filter the applied tags</string> <string>Filter the applied tags</string>
</property> </property>
</widget> <property name="clearButtonEnabled">
</item> <bool>true</bool>
<item row="1" column="1">
<widget class="QToolButton" name="applied_filter_input_clear_btn">
<property name="toolTip">
<string>Clear the applied tags filter input field</string>
</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> </property>
</widget> </widget>
</item> </item>
@ -222,7 +200,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../../../resources/images.qrc"> <iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/list_remove.png</normaloff>:/images/list_remove.png</iconset> <normaloff>:/images/minus.png</normaloff>:/images/minus.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>