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

rename -> HeinzGroupBox

parent 2e44a508
No related branches found
No related tags found
1 merge request!2063rename -> HeinzGroupBox; don't inherit QGroupBox; don't require layout as c'tor arg; expose body()
...@@ -87,7 +87,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ...@@ -87,7 +87,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
::createSpinBox(xAxisFormLayout, detectorItem->u0(), this); ::createSpinBox(xAxisFormLayout, detectorItem->u0(), this);
auto* xAxisGroupBox = new GroupBox("X axis", xAxisFormLayout, this); auto* xAxisGroupBox = new HeinzGroupBox("X axis", xAxisFormLayout, this);
xyrow->addWidget(xAxisGroupBox); xyrow->addWidget(xAxisGroupBox);
//... y-axis controls //... y-axis controls
...@@ -112,7 +112,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ...@@ -112,7 +112,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem)
::createSpinBox(yAxisFormLayout, detectorItem->v0(), this); ::createSpinBox(yAxisFormLayout, detectorItem->v0(), this);
auto* yAxisGroupBox = new GroupBox("Y axis", yAxisFormLayout, this); auto* yAxisGroupBox = new HeinzGroupBox("Y axis", yAxisFormLayout, this);
xyrow->addWidget(yAxisGroupBox); xyrow->addWidget(yAxisGroupBox);
//... resolution controls //... resolution controls
...@@ -120,7 +120,7 @@ DetectorEditor::DetectorEditor(QWidget* parent, GISASInstrumentItem* instrItem) ...@@ -120,7 +120,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 GroupBox("Resolution function", resolutionLayout, this); auto* resolutionForm = new HeinzGroupBox("Resolution function", resolutionLayout, this);
auto updateResolutionForm = [parent = this, layout = resolutionLayout, auto updateResolutionForm = [parent = this, layout = resolutionLayout,
item = detectorItem]() -> void { item = detectorItem]() -> void {
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
#include <QVariant> #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) : QGroupBox(parent)
{ {
auto* label = new QLabel(this); auto* label = new QLabel(this);
......
...@@ -24,9 +24,9 @@ class QToolButton; ...@@ -24,9 +24,9 @@ class QToolButton;
//! A QGroupBox with given title and layout, and some standard styling. //! A QGroupBox with given title and layout, and some standard styling.
class GroupBox : public QGroupBox { class HeinzGroupBox : public QGroupBox {
public: public:
GroupBox(const QString& title, QLayout* content_layout, QWidget* parent); HeinzGroupBox(const QString& title, QLayout* content_layout, QWidget* parent);
}; };
......
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