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

HeinzGroupBox inherits QWidget instead of QGroupBox

parent 21a4d28e
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()
......@@ -25,7 +25,7 @@
// ************************************************************************************************
HeinzGroupBox::HeinzGroupBox(const QString& title, QLayout* content_layout, QWidget* parent)
: QGroupBox(parent)
: QWidget(parent)
{
auto* label = new QLabel(this);
label->setObjectName("GroupBoxToggler");
......@@ -42,7 +42,6 @@ HeinzGroupBox::HeinzGroupBox(const QString& title, QLayout* content_layout, QWid
mainLayout->setMenuBar(label);
mainLayout->addWidget(contentArea);
setTitle("");
setLayout(mainLayout);
}
......
......@@ -24,7 +24,7 @@ class QToolButton;
//! A QGroupBox with given title and layout, and some standard styling.
class HeinzGroupBox : public QGroupBox {
class HeinzGroupBox : public QWidget {
public:
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