summaryrefslogtreecommitdiff
path: root/src/main/python/utils/toolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils/toolbar.py')
-rw-r--r--src/main/python/utils/toolbar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py
index 220504b..a175aff 100644
--- a/src/main/python/utils/toolbar.py
+++ b/src/main/python/utils/toolbar.py
@@ -28,8 +28,9 @@ class toolbar(QDockWidget):
self.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea | Qt.NoDockWidgetArea)
#declare main widget and layout
self.widget = QWidget(self)
+ self.widget.setObjectName("ToolbarWidget")
self.layout = QBoxLayout(QBoxLayout.TopToBottom, self.widget)
- self.setAllowedAreas(Qt.AllDockWidgetAreas)
+ self.setWindowFlags(Qt.FramelessWindowHint)
self.searchBox = QLineEdit(self.widget) #search box to search through componenets
@@ -44,10 +45,11 @@ class toolbar(QDockWidget):
self.diagArea.setWidgetResizable(True)
self.layout.addWidget(self.diagArea, stretch=1)
self.diagAreaWidget = QWidget(self.diagArea) #inner widget for scroll area
+ self.diagAreaWidget.setObjectName("ToolbarScrollWidget")
#custom layout for inner widget
self.diagAreaLayout = flowLayout(self.diagAreaWidget)
self.diagAreaLayout.setSizeConstraint(flowLayout.SetMinimumSize)
- self.setWidget(self.widget) #set main widget to dockwidget
+ self.setWidget(self.widget) #set main widget to dockwidget
def clearLayout(self):
# used to clear all items from toolbar, by parenting it to the toolbar instead