This commit is contained in:
Kovid Goyal 2017-06-11 10:39:37 +05:30
parent cc0bc790a3
commit f5761a98a2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -276,6 +276,7 @@ class SearchBar(QFrame): # {{{
l.addWidget(parent.sort_sep) l.addWidget(parent.sort_sep)
parent.sort_button = self.sort_button = sb = QToolButton(self) parent.sort_button = self.sort_button = sb = QToolButton(self)
sb.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) sb.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
sb.setToolTip(_('Change how the displayed books are sorted'))
sb.setCursor(Qt.PointingHandCursor) sb.setCursor(Qt.PointingHandCursor)
sb.setPopupMode(QToolButton.InstantPopup) sb.setPopupMode(QToolButton.InstantPopup)
sb.setAutoRaise(True) sb.setAutoRaise(True)