src/ui/objecteditor.cpp

changeset 258
fe094d0687ad
parent 252
da4876bfd822
child 263
59b6027b9843
--- a/src/ui/objecteditor.cpp	Wed Jun 22 23:32:34 2022 +0300
+++ b/src/ui/objecteditor.cpp	Wed Jun 22 23:51:06 2022 +0300
@@ -119,14 +119,4 @@
 	QWidget{parent}
 {
 	this->ui.setupUi(this);
-	this->editorwidgets.resize(NUM_PROPERTIES);
-	QFormLayout* layout = new QFormLayout{this};
-	for (std::size_t i = 0; i < NUM_PROPERTIES; ++i) {
-		const auto key = static_cast<PropertyKey>(i);
-		QLabel* const label = new QLabel{propertyName(key), this};
-		QWidget* const field = new QWidget{this};
-		this->editorwidgets[i] = field;
-		layout->addRow(label, field);
-	}
-	this->ui.properties->setLayout(layout);
 }

mercurial