mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 09:13:42 +02:00
Change tag_view search button to QToolButton so that it sizes correctly
This commit is contained in:
parent
dc0158b488
commit
ee8d8f94b7
1 changed files with 4 additions and 6 deletions
|
|
@ -16,7 +16,8 @@
|
|||
QIcon, QPoint, QVBoxLayout, QHBoxLayout, QComboBox, QTimer,\
|
||||
QAbstractItemModel, QVariant, QModelIndex, QMenu, QFrame,\
|
||||
QPushButton, QWidget, QItemDelegate, QString, QLabel, \
|
||||
QShortcut, QKeySequence, SIGNAL, QMimeData, QSizePolicy
|
||||
QShortcut, QKeySequence, SIGNAL, QMimeData, QSizePolicy,\
|
||||
QToolButton
|
||||
|
||||
from calibre.ebooks.metadata import title_sort
|
||||
from calibre.gui2 import config, NONE, gprefs
|
||||
|
|
@ -2061,16 +2062,13 @@ def __init__(self, parent):
|
|||
sc = QShortcut(QKeySequence(_('ALT+f')), parent)
|
||||
sc.connect(sc, SIGNAL('activated()'), self.set_focus_to_find_box)
|
||||
|
||||
self.search_button = QPushButton()
|
||||
self.search_button = QToolButton()
|
||||
self.search_button.setText(_('F&ind'))
|
||||
self.search_button.setToolTip(_('Find the first/next matching item'))
|
||||
self.search_button.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,
|
||||
QSizePolicy.Minimum))
|
||||
search_layout.addWidget(self.search_button)
|
||||
|
||||
self.expand_button = QPushButton()
|
||||
self.expand_button = QToolButton()
|
||||
self.expand_button.setText('-')
|
||||
self.expand_button.setFixedWidth(20)
|
||||
self.expand_button.setToolTip(_('Collapse all categories'))
|
||||
search_layout.addWidget(self.expand_button)
|
||||
search_layout.setStretch(0, 10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue