Skip to content
Snippets Groups Projects

rm DoubleDescriptor from code

Merged Mikhail Svechnikov requested to merge from_DoubleDescriptor_7 into main
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -113,11 +113,10 @@ void MaterialInplaceForm::createWidgets()
@@ -113,11 +113,10 @@ void MaterialInplaceForm::createWidgets()
}
}
// -- Create UI for magnetization vector
// -- Create UI for magnetization vector
VectorProperty mag = material->magnetization();
const auto setNewValue = [this](double value, DoubleProperty& d) {
const auto setNewValue = [this](double value, DoubleProperty& d) {
m_ec->setMaterialValue(m_item, value, d);
m_ec->setMaterialValue(m_item, value, d);
};
};
LayerEditorUtils::addVectorToGrid(m_layout, col, mag, setNewValue, true, false);
LayerEditorUtils::addVectorToGrid(m_layout, col, material->magnetization(), setNewValue, true, false);
// -- Create UI for material selection button
// -- Create UI for material selection button
auto* btn = new QPushButton("...", this);
auto* btn = new QPushButton("...", this);
Loading