mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
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:
parent
0ada98b5ec
commit
c247cd6b35
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user