summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaine2020-04-30 18:51:19 +0530
committerBlaine2020-04-30 18:51:19 +0530
commit3a5155d2ec9455ba474fc1f4d55f65f02dfd54f6 (patch)
tree6def6441c92498b4425b643e25040d5cce9587dc /src
parent8d479352c448247be8b7e080048dd588094d98b0 (diff)
downloadChemical-PFD-3a5155d2ec9455ba474fc1f4d55f65f02dfd54f6.tar.gz
Chemical-PFD-3a5155d2ec9455ba474fc1f4d55f65f02dfd54f6.tar.bz2
Chemical-PFD-3a5155d2ec9455ba474fc1f4d55f65f02dfd54f6.zip
remove minimize and maximize from file window
Diffstat (limited to 'src')
-rw-r--r--src/main/python/utils/fileWindow.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index fd2bc11..ae5ff85 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -35,9 +35,12 @@ class fileWindow(QMdiSubWindow):
self.setContextMenuPolicy(Qt.CustomContextMenu)
self.customContextMenuRequested.connect(self.contextMenu)
- self.windowStateChanged.connect(self.stateChange)
+ # self.windowStateChanged.connect(self.stateChange)
self.setAttribute(Qt.WA_DeleteOnClose, True)
+ self.setWindowFlag(Qt.CustomizeWindowHint, True)
+ self.setWindowFlag(Qt.WindowMinimizeButtonHint, False)
+ self.setWindowFlag(Qt.WindowMaximizeButtonHint, False)
def changeTab(self, currentIndex):
#placeholder function to detect tab change
@@ -63,6 +66,8 @@ class fileWindow(QMdiSubWindow):
width, height = current.dimensions
width = min(parentRect.width(), width + 100)
height = min(parentRect.height(), height + 200)
+ # width = parentRect.width()
+ # height = parentRect.height()
self.setFixedSize(width, height)
self.tabber.resize(width, height)
self.tabber.currentWidget().adjustView()