From d320d17cc8f9acf7be66350ba9fb433ee57573be Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Oct 2017 10:05:45 +0530 Subject: [PATCH] Fix #1722373 [Change symbol in User category editor](https://bugs.launchpad.net/calibre/+bug/1722373) --- src/calibre/gui2/dialogs/tag_categories.ui | 8 +++--- src/calibre/gui2/dialogs/tag_editor.py | 3 -- src/calibre/gui2/dialogs/tag_editor.ui | 32 ++++------------------ 3 files changed, 9 insertions(+), 34 deletions(-) diff --git a/src/calibre/gui2/dialogs/tag_categories.ui b/src/calibre/gui2/dialogs/tag_categories.ui index cf30cb8e5d..e06a0503c7 100644 --- a/src/calibre/gui2/dialogs/tag_categories.ui +++ b/src/calibre/gui2/dialogs/tag_categories.ui @@ -133,7 +133,7 @@ - Category &filter: + &Category filter: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter @@ -171,7 +171,7 @@ - A&vailable items + &Available items available_items_box @@ -263,7 +263,7 @@ - A&pplied items + Applied &items applied_items_box @@ -322,7 +322,7 @@ - :/images/list_remove.png:/images/list_remove.png + :/images/minus.png:/images/minus.png diff --git a/src/calibre/gui2/dialogs/tag_editor.py b/src/calibre/gui2/dialogs/tag_editor.py index 374de6f955..88f3ce0da4 100644 --- a/src/calibre/gui2/dialogs/tag_editor.py +++ b/src/calibre/gui2/dialogs/tag_editor.py @@ -70,9 +70,6 @@ class TagEditor(QDialog, Ui_TagEditor): self.add_tag_button.clicked.connect(self.add_tag) self.delete_button.clicked.connect(lambda: self.delete_tags()) 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 self.available_filter_input.textChanged.connect(self.filter_tags) self.applied_filter_input.textChanged.connect(partial(self.filter_tags, which='applied_tags')) diff --git a/src/calibre/gui2/dialogs/tag_editor.ui b/src/calibre/gui2/dialogs/tag_editor.ui index 932b363e99..512162ca35 100644 --- a/src/calibre/gui2/dialogs/tag_editor.ui +++ b/src/calibre/gui2/dialogs/tag_editor.ui @@ -97,19 +97,8 @@ Filter the available tags - - - - - - Clear the available tags filter input field - - - - - - - :/images/clear_left.png:/images/clear_left.png + + true @@ -173,19 +162,8 @@ Filter the applied tags - - - - - - Clear the applied tags filter input field - - - - - - - :/images/clear_left.png:/images/clear_left.png + + true @@ -222,7 +200,7 @@ - :/images/list_remove.png:/images/list_remove.png + :/images/minus.png:/images/minus.png