Add a separator between the VL button and the rest of the search bar

This commit is contained in:
Kovid Goyal 2017-06-09 08:29:29 +05:30
parent 201b27386d
commit e407c07ce9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -7,7 +7,7 @@ __docformat__ = 'restructuredtext en'
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,
QObject, QVBoxLayout, QSizePolicy, QLabel, QHBoxLayout, QActionGroup)
@ -185,6 +185,9 @@ class SearchBar(QWidget): # {{{
x.setObjectName("virtual_library")
x.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
l.addWidget(x)
self.vl_sep = QFrame(self)
self.vl_sep.setFrameShape(QFrame.VLine)
l.addWidget(self.vl_sep)
parent.virtual_library = x
x = QToolButton(self)