diff options
Diffstat (limited to 'Demos')
-rw-r--r-- | Demos/Fire/Fire.cpp | 6 | ||||
-rw-r--r-- | Demos/WidgetGallery/main.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Fire/Fire.cpp b/Demos/Fire/Fire.cpp index 5bc34bf93b..bf2a066012 100644 --- a/Demos/Fire/Fire.cpp +++ b/Demos/Fire/Fire.cpp @@ -101,7 +101,7 @@ private: GLabel* stats; virtual void paint_event(GPaintEvent&) override; - virtual void timer_event(CTimerEvent&) override; + virtual void timer_event(Core::TimerEvent&) override; virtual void mousedown_event(GMouseEvent& event) override; virtual void mousemove_event(GMouseEvent& event) override; virtual void mouseup_event(GMouseEvent& event) override; @@ -148,7 +148,7 @@ Fire::~Fire() void Fire::paint_event(GPaintEvent& event) { - CElapsedTimer timer; + Core::ElapsedTimer timer; timer.start(); GPainter painter(*this); @@ -161,7 +161,7 @@ void Fire::paint_event(GPaintEvent& event) cycles++; } -void Fire::timer_event(CTimerEvent&) +void Fire::timer_event(Core::TimerEvent&) { /* Update only even or odd columns per frame... */ phase++; diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index a04a57daa9..3c260af394 100644 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -70,7 +70,7 @@ int main(int argc, char** argv) button2->set_enabled(false); auto progress1 = GProgressBar::construct(main_widget); - auto timer = CTimer::construct(100, [&] { + auto timer = Core::Timer::construct(100, [&] { progress1->set_value(progress1->value() + 1); if (progress1->value() == progress1->max()) progress1->set_value(progress1->min()); |