diff options
author | Blaine | 2020-06-11 11:46:57 +0530 |
---|---|---|
committer | Blaine | 2020-06-11 11:46:57 +0530 |
commit | ae82408243003531191ad28daa3dc22a2d394cb5 (patch) | |
tree | 1c0759bf16b556f14076f9e477befbca0f264e83 | |
parent | 0795b25bf9860059b7513729d12a9c0dc471fa81 (diff) | |
download | Chemical-PFD-ae82408243003531191ad28daa3dc22a2d394cb5.tar.gz Chemical-PFD-ae82408243003531191ad28daa3dc22a2d394cb5.tar.bz2 Chemical-PFD-ae82408243003531191ad28daa3dc22a2d394cb5.zip |
toolbar edit
-rw-r--r-- | src/main/python/utils/toolbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py index 29adb83..220504b 100644 --- a/src/main/python/utils/toolbar.py +++ b/src/main/python/utils/toolbar.py @@ -81,7 +81,7 @@ class toolbar(QDockWidget): parent = self.parentWidget() #used to get parent dimensions self.layout.setDirection(QBoxLayout.TopToBottom) # here so that a horizontal toolbar can be implemented later # self.setFixedHeight(self.height()) #span available height - self.searchBox.setMinimumWidth(.15*parent.width()) + self.searchBox.setMinimumWidth(.18*parent.width()) width = self.width() scrollBar = self.diagArea.verticalScrollBar() height = self.diagAreaLayout.heightForWidth(width) @@ -90,7 +90,7 @@ class toolbar(QDockWidget): # the following line, sets the required height for the current width, so that blank space doesnt occur self.diagAreaWidget.setMinimumHeight(height) - self.setMinimumWidth(.18*parent.width()) #12% of parent width + self.setMinimumWidth(.2*parent.width()) #12% of parent width # self.setMinimumWidth(self.diagAreaLayout.minimumSize().width()) #12% of parent width self.diagAreaWidget.setLayout(self.diagAreaLayout) self.diagArea.setWidget(self.diagAreaWidget) |