- minor changes in the Properties Tool

This commit is contained in:
Marius Stanciu
2020-10-23 19:03:13 +03:00
committed by Marius
parent 427118c495
commit 1b3919aca7
3 changed files with 7 additions and 9 deletions

View File

@@ -35,9 +35,10 @@ class Properties(AppTool):
def __init__(self, app):
AppTool.__init__(self, app)
self.setSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored)
# self.setSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored)
self.decimals = self.app.decimals
self.layout.setContentsMargins(0, 0, 0, 0)
# this way I can hide/show the frame
self.properties_frame = QtWidgets.QFrame()
@@ -58,16 +59,12 @@ class Properties(AppTool):
# """)
# self.properties_box.addWidget(title_label)
# self.layout.setMargin(0) # PyQt4
self.properties_box.setContentsMargins(0, 0, 0, 0) # PyQt5
self.vlay = QtWidgets.QVBoxLayout()
self.properties_box.addLayout(self.vlay)
self.treeWidget = FCTree(columns=2)
self.treeWidget.setSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
self.treeWidget.setStyleSheet("QTreeWidget {border: 0px;}")
self.vlay.addWidget(self.treeWidget)
self.vlay.setStretch(0, 0)
self.properties_box.addWidget(self.treeWidget)
# self.properties_box.setStretch(0, 0)
self.calculations_finished.connect(self.show_area_chull)