mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
LibGUI: Convert GTextBox, GTextEditor and GResizeCorner to ObjectPtr
This commit is contained in:
parent
4ea229accd
commit
93851c3832
25 changed files with 38 additions and 36 deletions
|
@ -9,7 +9,7 @@
|
|||
GComboBox::GComboBox(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
{
|
||||
m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this);
|
||||
m_editor = GTextEditor::construct(GTextEditor::Type::SingleLine, this);
|
||||
m_editor->on_change = [this] {
|
||||
if (on_change)
|
||||
on_change(m_editor->text(), m_list_view->selection().first());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue