GGroupBox: Allow constructing these without an initial text.

This commit is contained in:
Andreas Kling 2019-07-11 20:16:34 +02:00
parent 25e3d46502
commit 974c0f97b8
Notes: sideshowbarker 2024-07-19 13:19:10 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -2,6 +2,11 @@
#include <LibGUI/GPainter.h>
#include <SharedGraphics/StylePainter.h>
GGroupBox::GGroupBox(GWidget* parent)
: GGroupBox({}, parent)
{
}
GGroupBox::GGroupBox(const StringView& title, GWidget* parent)
: GWidget(parent)
, m_title(title)

View file

@ -4,6 +4,7 @@
class GGroupBox : public GWidget {
public:
explicit GGroupBox(GWidget* parent);
GGroupBox(const StringView& title, GWidget* parent);
virtual ~GGroupBox() override;