mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a separator between the VL button and the rest of the search bar
This commit is contained in:
parent
201b27386d
commit
e407c07ce9
@ -7,7 +7,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
from PyQt5.Qt import (QIcon, Qt, QWidget, QSize,
|
from PyQt5.Qt import (QIcon, Qt, QWidget, QSize, QFrame,
|
||||||
pyqtSignal, QToolButton, QMenu, QAction, QCoreApplication,
|
pyqtSignal, QToolButton, QMenu, QAction, QCoreApplication,
|
||||||
QObject, QVBoxLayout, QSizePolicy, QLabel, QHBoxLayout, QActionGroup)
|
QObject, QVBoxLayout, QSizePolicy, QLabel, QHBoxLayout, QActionGroup)
|
||||||
|
|
||||||
@ -185,6 +185,9 @@ class SearchBar(QWidget): # {{{
|
|||||||
x.setObjectName("virtual_library")
|
x.setObjectName("virtual_library")
|
||||||
x.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
x.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||||
l.addWidget(x)
|
l.addWidget(x)
|
||||||
|
self.vl_sep = QFrame(self)
|
||||||
|
self.vl_sep.setFrameShape(QFrame.VLine)
|
||||||
|
l.addWidget(self.vl_sep)
|
||||||
parent.virtual_library = x
|
parent.virtual_library = x
|
||||||
|
|
||||||
x = QToolButton(self)
|
x = QToolButton(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user