mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibGUI: Make the timers in GAbstractButton and GScrollBar into children
This commit is contained in:
parent
93f14966c0
commit
a1a4013b1c
Notes:
sideshowbarker
2024-07-19 12:36:56 +09:00
Author: https://github.com/awesomekling
Commit: a1a4013b1c
2 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ GAbstractButton::GAbstractButton(GWidget* parent)
|
|||
GAbstractButton::GAbstractButton(const StringView& text, GWidget* parent)
|
||||
: GWidget(parent)
|
||||
, m_text(text)
|
||||
, m_auto_repeat_timer(this)
|
||||
{
|
||||
m_auto_repeat_timer.on_timeout = [this] {
|
||||
click();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue