diff options
author | pravindalve | 2020-06-11 15:06:03 +0530 |
---|---|---|
committer | GitHub | 2020-06-11 15:06:03 +0530 |
commit | 41faed93d3fa5e4c1f2b28553fb59b110cc71e2c (patch) | |
tree | 22955f3aea076282c6bc942f2bb8629727160508 /src/main/python/utils/toolbar.py | |
parent | 7c620f2b3724fdefa13402277df3a6b4a4e1d6c5 (diff) | |
parent | 4fb78f87b119ba8ba9ec8ae4e50aa11b73d2a336 (diff) | |
download | Chemical-PFD-41faed93d3fa5e4c1f2b28553fb59b110cc71e2c.tar.gz Chemical-PFD-41faed93d3fa5e4c1f2b28553fb59b110cc71e2c.tar.bz2 Chemical-PFD-41faed93d3fa5e4c1f2b28553fb59b110cc71e2c.zip |
Merge pull request #16 from Blakeinstein/master
unified white style ui design
Diffstat (limited to 'src/main/python/utils/toolbar.py')
-rw-r--r-- | src/main/python/utils/toolbar.py | 6 |
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 |