mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
StringViewize a bunch of things -- mostly LibGUI
This commit is contained in:
parent
f9ba7adae2
commit
1024dfa81a
59 changed files with 129 additions and 139 deletions
|
@ -2,7 +2,7 @@
|
|||
#include <LibGUI/GPainter.h>
|
||||
#include <SharedGraphics/StylePainter.h>
|
||||
|
||||
GGroupBox::GGroupBox(const String& title, GWidget* parent)
|
||||
GGroupBox::GGroupBox(const StringView& title, GWidget* parent)
|
||||
: GWidget(parent)
|
||||
, m_title(title)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ void GGroupBox::paint_event(GPaintEvent& event)
|
|||
painter.draw_text(text_rect, m_title, TextAlignment::Center, foreground_color());
|
||||
}
|
||||
|
||||
void GGroupBox::set_title(const String& title)
|
||||
void GGroupBox::set_title(const StringView& title)
|
||||
{
|
||||
if (m_title == title)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue