Commit 1cc609ef authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[widgets][plottereditor] Removed extra parameter layout

parent e52ec9cf
Pipeline #31543 passed with stage
in 9 minutes and 59 seconds
......@@ -68,16 +68,14 @@ class ParameterViewer(QWidget):
self.name_lineedit = QLineEdit()
self.parameter_widget = ParameterWidget()
self.parameter_layout = QHBoxLayout()
self.form_layout = QFormLayout()
self.form_layout.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)
self.form_layout.addRow(self.tr("Name"), self.name_lineedit)
self.form_layout.addRow(self.parameter_layout)
form_layout = QFormLayout()
form_layout.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)
form_layout.addRow(self.tr("Name"), self.name_lineedit)
layout = QVBoxLayout(self)
layout.addLayout(delete_layout)
layout.addLayout(self.form_layout)
layout.addLayout(form_layout)
layout.addWidget(self.parameter_widget)
self.name_lineedit.textChanged.connect(self.dataChanged)
self.delete_button.clicked.connect(self.deletionRequested)
......@@ -94,7 +92,6 @@ class ParameterViewer(QWidget):
self.name_lineedit.setText(name)
self.parameter_widget.load(data)
self.parameter_layout.addWidget(self.parameter_widget)
def dump(self):
"""Returns the json representation of this set"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment