From c247cd6b35afa822af2c352c3e7d1e162f00fde2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 30 Nov 2017 10:28:36 +0530 Subject: [PATCH] Fix #1730049 [Move the Reset button inside the search field in Spell checking window](https://bugs.launchpad.net/calibre/+bug/1730049) --- src/calibre/gui2/tweak_book/spell.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index bf899853c8..a5bc25a7a2 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -940,15 +940,11 @@ class SpellCheck(Dialog): self.main = m = QWidget(self) s.addWidget(m) m.l = l = QVBoxLayout(m) - m.h1 = h = QHBoxLayout() - l.addLayout(h) self.filter_text = t = QLineEdit(self) t.setPlaceholderText(_('Filter the list of words')) t.textChanged.connect(self.do_filter) - m.fc = b = QToolButton(m) - b.setIcon(QIcon(I('clear_left.png'))), b.setToolTip(_('Clear filter')) - b.clicked.connect(t.clear) - h.addWidget(t), h.addWidget(b) + t.setClearButtonEnabled(True) + l.addWidget(t) m.h2 = h = QHBoxLayout() l.addLayout(h)