1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 09:27:45 +00:00

LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 15:43:52 +02:00
parent 4ea229accd
commit 93851c3832
25 changed files with 38 additions and 36 deletions

View file

@ -9,7 +9,7 @@ CalculatorWidget::CalculatorWidget(GWidget* parent)
{
set_fill_with_background_color(true);
m_entry = new GTextBox(this);
m_entry = GTextBox::construct(this);
m_entry->set_relative_rect(5, 5, 244, 26);
m_entry->set_text_alignment(TextAlignment::CenterRight);

View file

@ -25,6 +25,6 @@ private:
Calculator m_calculator;
Keypad m_keypad;
GTextBox* m_entry { nullptr };
ObjectPtr<GTextBox> m_entry;
ObjectPtr<GLabel> m_label;
};