Made the variables area scrollable.
This commit is contained in:
parent
44e8533f26
commit
9cb1e58f3f
|
@ -97,9 +97,6 @@ def populateParameterEditor(parameters):
|
||||||
|
|
||||||
mw = FreeCADGui.getMainWindow()
|
mw = FreeCADGui.getMainWindow()
|
||||||
|
|
||||||
# Tracks whether or not we have already added the variables editor
|
|
||||||
isPresent = False
|
|
||||||
|
|
||||||
# If the widget is open, we need to close it
|
# If the widget is open, we need to close it
|
||||||
dockWidgets = mw.findChildren(QtGui.QDockWidget)
|
dockWidgets = mw.findChildren(QtGui.QDockWidget)
|
||||||
for widget in dockWidgets:
|
for widget in dockWidgets:
|
||||||
|
@ -133,6 +130,4 @@ def populateParameterEditor(parameters):
|
||||||
scrollArea.setStyleSheet("QLabel { color : black; }");
|
scrollArea.setStyleSheet("QLabel { color : black; }");
|
||||||
scrollArea.setWidget(newWidget)
|
scrollArea.setWidget(newWidget)
|
||||||
|
|
||||||
widget.setWidget(scrollArea)
|
widget.setWidget(scrollArea)
|
||||||
|
|
||||||
isPresent = True
|
|
Loading…
Reference in New Issue
Block a user