Fix #1730049 [Move the Reset button inside the search field in Spell checking window](https://bugs.launchpad.net/calibre/+bug/1730049)

This commit is contained in:
Kovid Goyal 2017-11-30 10:28:36 +05:30
parent 0ada98b5ec
commit c247cd6b35
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -940,15 +940,11 @@ class SpellCheck(Dialog):
self.main = m = QWidget(self) self.main = m = QWidget(self)
s.addWidget(m) s.addWidget(m)
m.l = l = QVBoxLayout(m) m.l = l = QVBoxLayout(m)
m.h1 = h = QHBoxLayout()
l.addLayout(h)
self.filter_text = t = QLineEdit(self) self.filter_text = t = QLineEdit(self)
t.setPlaceholderText(_('Filter the list of words')) t.setPlaceholderText(_('Filter the list of words'))
t.textChanged.connect(self.do_filter) t.textChanged.connect(self.do_filter)
m.fc = b = QToolButton(m) t.setClearButtonEnabled(True)
b.setIcon(QIcon(I('clear_left.png'))), b.setToolTip(_('Clear filter')) l.addWidget(t)
b.clicked.connect(t.clear)
h.addWidget(t), h.addWidget(b)
m.h2 = h = QHBoxLayout() m.h2 = h = QHBoxLayout()
l.addLayout(h) l.addLayout(h)