27 , m_nameLineEdit(new QLineEdit)
29 , m_currentItem(nullptr)
30 , m_block_signals(false)
32 setMinimumSize(400, 400);
33 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
35 auto mainLayout =
new QVBoxLayout;
36 mainLayout->setContentsMargins(0, 20, 0, 20);
41 mainLayout->addWidget(scrollArea, 1);
42 mainLayout->addStretch();
44 setLayout(mainLayout);
52 return QSize(600, 600);
76 auto result =
new QHBoxLayout;
80 result->addSpacing(17);
81 result->addWidget(
new QLabel(
"Instrument name"));
83 result->addStretch(1);
Defines classes DetectorItems.
Defines InstrumentItems classes.
Defines class InstrumentPresenter.
Contains stack of instrument editors and the logic to show proper editor for certain type of instrume...
QString itemName() const
Get item name, return display name if no name is set.
void setItemName(const QString &name)
Set item name, add property if necessary.