17 #include <QHBoxLayout>
21 const QString true_text =
"True";
22 const QString false_text =
"False";
30 setAutoFillBackground(
true);
31 auto layout =
new QHBoxLayout;
32 layout->setContentsMargins(4, 0, 0, 0);
54 if (
m_data.type() != QVariant::Bool)
55 throw std::runtime_error(
"BoolEditor::update_components() -> Error. Wrong variant type");
BoolEditor(QWidget *parent=nullptr)
void update_components() override
Should update widget components from m_data, if necessary.
void onCheckBoxChange(bool value)
bool is_persistent() const override
Returns true if editor should remains alive after editing finished.
Base class for all custom variant editors.
void setDataIntern(const QVariant &data)
Saves the data as given by editor's internal components and notifies the model.
materialitems.h Collection of materials to populate MaterialModel.