LibGUI: Remove remaining G prefixes

This commit is contained in:
Tibor Nagy 2020-03-19 22:29:01 +01:00 committed by Andreas Kling
parent 809490dcb6
commit 30964ba7d0
4 changed files with 5 additions and 5 deletions

View file

@ -112,7 +112,7 @@ class Application::TooltipWindow final : public Window {
public:
void set_tooltip(const StringView& tooltip)
{
// FIXME: Add some kind of GLabel auto-sizing feature.
// FIXME: Add some kind of GUI::Label auto-sizing feature.
int text_width = m_label->font().width(tooltip);
set_rect(100, 100, text_width + 10, m_label->font().glyph_height() + 8);
m_label->set_text(tooltip);

View file

@ -84,7 +84,7 @@ void InputBox::build()
m_cancel_button->set_preferred_size(0, 20);
m_cancel_button->set_text("Cancel");
m_cancel_button->on_click = [this] {
dbgprintf("GInputBox: Cancel button clicked\n");
dbgprintf("GUI::InputBox: Cancel button clicked\n");
done(ExecCancel);
};
@ -93,7 +93,7 @@ void InputBox::build()
m_ok_button->set_preferred_size(0, 20);
m_ok_button->set_text("OK");
m_ok_button->on_click = [this] {
dbgprintf("GInputBox: OK button clicked\n");
dbgprintf("GUI::InputBox: OK button clicked\n");
m_text_value = m_text_editor->text();
done(ExecOK);
};

View file

@ -60,7 +60,7 @@ private:
inline const LogStream& operator<<(const LogStream& stream, const TextPosition& value)
{
if (!value.is_valid())
return stream << "GTextPosition(Invalid)";
return stream << "GUI::TextPosition(Invalid)";
return stream << String::format("(%zu,%zu)", value.line(), value.column());
}

View file

@ -88,7 +88,7 @@ private:
inline const LogStream& operator<<(const LogStream& stream, const TextRange& value)
{
if (!value.is_valid())
return stream << "GTextRange(Invalid)";
return stream << "GUI::TextRange(Invalid)";
return stream << value.start() << '-' << value.end();
}