mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibCore: Convert CTimer to ObjectPtr
This commit is contained in:
parent
c34fd10b5b
commit
50a6560413
22 changed files with 91 additions and 70 deletions
|
@ -44,7 +44,7 @@ int main(int argc, char** argv)
|
|||
button2->set_enabled(false);
|
||||
|
||||
auto* progress1 = new GProgressBar(main_widget);
|
||||
new CTimer(100, [progress1] {
|
||||
auto timer = CTimer::create(100, [progress1] {
|
||||
progress1->set_value(progress1->value() + 1);
|
||||
if (progress1->value() == progress1->max())
|
||||
progress1->set_value(progress1->min());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue