Skip to content
Snippets Groups Projects
Commit c02d21e5 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rename -> StaticGroupBox

parent 08af3714
No related branches found
No related tags found
1 merge request!2065+ class CollapsibleGroupBox; use it where possible
Pipeline #117682 passed
...@@ -80,7 +80,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ...@@ -80,7 +80,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
::createSpinBox(xAxisFormLayout, detectorItem->u0(), this); ::createSpinBox(xAxisFormLayout, detectorItem->u0(), this);
auto* xAxisGroupBox = new HeinzGroupBox("X axis", this); auto* xAxisGroupBox = new StaticGroupBox("X axis", this);
xAxisGroupBox->body()->setLayout(xAxisFormLayout); xAxisGroupBox->body()->setLayout(xAxisFormLayout);
xyrow->addWidget(xAxisGroupBox); xyrow->addWidget(xAxisGroupBox);
...@@ -106,7 +106,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ...@@ -106,7 +106,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
::createSpinBox(yAxisFormLayout, detectorItem->v0(), this); ::createSpinBox(yAxisFormLayout, detectorItem->v0(), this);
auto* yAxisGroupBox = new HeinzGroupBox("Y axis", this); auto* yAxisGroupBox = new StaticGroupBox("Y axis", this);
yAxisGroupBox->body()->setLayout(yAxisFormLayout); yAxisGroupBox->body()->setLayout(yAxisFormLayout);
xyrow->addWidget(yAxisGroupBox); xyrow->addWidget(yAxisGroupBox);
...@@ -115,7 +115,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ...@@ -115,7 +115,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
auto resolutionLayout = new QFormLayout; auto resolutionLayout = new QFormLayout;
resolutionLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint); resolutionLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
auto* resolutionForm = new HeinzGroupBox("Resolution function", this); auto* resolutionForm = new StaticGroupBox("Resolution function", this);
resolutionForm->body()->setLayout(resolutionLayout); resolutionForm->body()->setLayout(resolutionLayout);
auto updateResolutionForm = [parent = this, layout = resolutionLayout, auto updateResolutionForm = [parent = this, layout = resolutionLayout,
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
#include <QVariant> #include <QVariant>
// ************************************************************************************************ // ************************************************************************************************
// class HeinzGroupBox // class StaticGroupBox
// ************************************************************************************************ // ************************************************************************************************
HeinzGroupBox::HeinzGroupBox(const QString& title, QWidget* parent) StaticGroupBox::StaticGroupBox(const QString& title, QWidget* parent)
: QWidget(parent) : QWidget(parent)
{ {
auto* label = new QLabel(this); auto* label = new QLabel(this);
......
...@@ -24,9 +24,9 @@ class QToolButton; ...@@ -24,9 +24,9 @@ class QToolButton;
//! A group box with given title and layout, and some standard styling. //! A group box with given title and layout, and some standard styling.
class HeinzGroupBox : public QWidget { class StaticGroupBox : public QWidget {
public: public:
HeinzGroupBox(const QString& title, QWidget* parent); StaticGroupBox(const QString& title, QWidget* parent);
QWidget* body() { return m_body; } QWidget* body() { return m_body; }
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment