diff --git a/GUI/View/Instrument/DetectorEditor.cpp b/GUI/View/Instrument/DetectorEditor.cpp index 294b9ada1185476d5ae4ec9b03622ebb3fe4174f..e04f918e7e019e639cbbf73da771cf9f7d0e623a 100644 --- a/GUI/View/Instrument/DetectorEditor.cpp +++ b/GUI/View/Instrument/DetectorEditor.cpp @@ -87,7 +87,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ::createSpinBox(xAxisFormLayout, detectorItem->u0(), this); - auto* xAxisGroupBox = new GroupBox("X axis", xAxisFormLayout, this); + auto* xAxisGroupBox = new HeinzGroupBox("X axis", xAxisFormLayout, this); xyrow->addWidget(xAxisGroupBox); //... y-axis controls @@ -112,7 +112,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ::createSpinBox(yAxisFormLayout, detectorItem->v0(), this); - auto* yAxisGroupBox = new GroupBox("Y axis", yAxisFormLayout, this); + auto* yAxisGroupBox = new HeinzGroupBox("Y axis", yAxisFormLayout, this); xyrow->addWidget(yAxisGroupBox); //... resolution controls @@ -120,7 +120,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) auto resolutionLayout = new QFormLayout; resolutionLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint); - auto* resolutionForm = new GroupBox("Resolution function", resolutionLayout, this); + auto* resolutionForm = new HeinzGroupBox("Resolution function", resolutionLayout, this); auto updateResolutionForm = [parent = this, layout = resolutionLayout, item = detectorItem]() -> void { diff --git a/GUI/View/Widget/GroupBoxes.cpp b/GUI/View/Widget/GroupBoxes.cpp index 9225d3f7e74f58104c2e0cd7a0a9057df61ce3ff..b76a8bebbadc9a25a99e8576d8dbf3485800b1cc 100644 --- a/GUI/View/Widget/GroupBoxes.cpp +++ b/GUI/View/Widget/GroupBoxes.cpp @@ -21,10 +21,10 @@ #include <QVariant> // ************************************************************************************************ -// class GroupBox +// class HeinzGroupBox // ************************************************************************************************ -GroupBox::GroupBox(const QString& title, QLayout* content_layout, QWidget* parent) +HeinzGroupBox::HeinzGroupBox(const QString& title, QLayout* content_layout, QWidget* parent) : QGroupBox(parent) { auto* label = new QLabel(this); diff --git a/GUI/View/Widget/GroupBoxes.h b/GUI/View/Widget/GroupBoxes.h index 3e529df66205ee47e8fdad7b17db91a823a89041..83844500965fd504f0e22efa86975ce042206364 100644 --- a/GUI/View/Widget/GroupBoxes.h +++ b/GUI/View/Widget/GroupBoxes.h @@ -24,9 +24,9 @@ class QToolButton; //! A QGroupBox with given title and layout, and some standard styling. -class GroupBox : public QGroupBox { +class HeinzGroupBox : public QGroupBox { public: - GroupBox(const QString& title, QLayout* content_layout, QWidget* parent); + HeinzGroupBox(const QString& title, QLayout* content_layout, QWidget* parent); };