mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibGUI: Use Core::Object::add() a whole bunch
This commit is contained in:
parent
8efafdfc12
commit
45c25ffecd
Notes:
sideshowbarker
2024-07-19 09:08:55 +09:00
Author: https://github.com/awesomekling
Commit: 45c25ffecd
11 changed files with 52 additions and 52 deletions
|
@ -40,7 +40,7 @@ AbstractButton::AbstractButton(const StringView& text, Widget* parent)
|
|||
: Widget(parent)
|
||||
, m_text(text)
|
||||
{
|
||||
m_auto_repeat_timer = Core::Timer::construct(this);
|
||||
m_auto_repeat_timer = add<Core::Timer>();
|
||||
m_auto_repeat_timer->on_timeout = [this] {
|
||||
click();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue