mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
GGroupBox: Allow constructing these without an initial text.
This commit is contained in:
parent
25e3d46502
commit
974c0f97b8
2 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
||||||
#include <LibGUI/GPainter.h>
|
#include <LibGUI/GPainter.h>
|
||||||
#include <SharedGraphics/StylePainter.h>
|
#include <SharedGraphics/StylePainter.h>
|
||||||
|
|
||||||
|
GGroupBox::GGroupBox(GWidget* parent)
|
||||||
|
: GGroupBox({}, parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
GGroupBox::GGroupBox(const StringView& title, GWidget* parent)
|
GGroupBox::GGroupBox(const StringView& title, GWidget* parent)
|
||||||
: GWidget(parent)
|
: GWidget(parent)
|
||||||
, m_title(title)
|
, m_title(title)
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
class GGroupBox : public GWidget {
|
class GGroupBox : public GWidget {
|
||||||
public:
|
public:
|
||||||
|
explicit GGroupBox(GWidget* parent);
|
||||||
GGroupBox(const StringView& title, GWidget* parent);
|
GGroupBox(const StringView& title, GWidget* parent);
|
||||||
virtual ~GGroupBox() override;
|
virtual ~GGroupBox() override;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue