mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1955458 [[Enhancement] Unnecessary delimiter](https://bugs.launchpad.net/calibre/+bug/1955458)
This commit is contained in:
parent
0915f05e82
commit
a96272c678
@ -726,7 +726,6 @@ class LayoutMixin: # {{{
|
|||||||
|
|
||||||
def toggle_grid_view(self, show):
|
def toggle_grid_view(self, show):
|
||||||
self.library_view.alternate_views.show_view('grid' if show else None)
|
self.library_view.alternate_views.show_view('grid' if show else None)
|
||||||
self.sort_sep.setVisible(show)
|
|
||||||
self.sort_button.setVisible(show)
|
self.sort_button.setVisible(show)
|
||||||
|
|
||||||
def toggle_search_bar(self, show):
|
def toggle_search_bar(self, show):
|
||||||
|
@ -212,13 +212,7 @@ class SearchBar(QFrame): # {{{
|
|||||||
x.setVisible(False)
|
x.setVisible(False)
|
||||||
x.setToolTip(_('Close the Virtual library'))
|
x.setToolTip(_('Close the Virtual library'))
|
||||||
parent.clear_vl = x
|
parent.clear_vl = x
|
||||||
self.vl_sep = QFrame(self)
|
|
||||||
self.vl_sep.setFrameStyle(QFrame.Shape.VLine | QFrame.Shadow.Sunken)
|
|
||||||
l.addWidget(self.vl_sep)
|
|
||||||
|
|
||||||
parent.sort_sep = QFrame(self)
|
|
||||||
parent.sort_sep.setFrameStyle(QFrame.Shape.VLine | QFrame.Shadow.Sunken)
|
|
||||||
parent.sort_sep.setVisible(False)
|
|
||||||
parent.sort_button = self.sort_button = sb = QToolButton(self)
|
parent.sort_button = self.sort_button = sb = QToolButton(self)
|
||||||
sb.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
sb.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
sb.setToolTip(_('Change how the displayed books are sorted'))
|
sb.setToolTip(_('Change how the displayed books are sorted'))
|
||||||
@ -231,7 +225,6 @@ class SearchBar(QFrame): # {{{
|
|||||||
sb.menu().aboutToShow.connect(self.populate_sort_menu)
|
sb.menu().aboutToShow.connect(self.populate_sort_menu)
|
||||||
sb.setVisible(False)
|
sb.setVisible(False)
|
||||||
l.addWidget(sb)
|
l.addWidget(sb)
|
||||||
l.addWidget(parent.sort_sep)
|
|
||||||
|
|
||||||
x = parent.search = SearchBox2(self, as_url=search_as_url)
|
x = parent.search = SearchBox2(self, as_url=search_as_url)
|
||||||
x.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
x.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user