summaryrefslogtreecommitdiffstats
path: root/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/designer/worldtimeclockplugin/worldtimeclock.cpp')
-rw-r--r--examples/designer/worldtimeclockplugin/worldtimeclock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclock.cpp b/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
index 1a4d8fcda..776eec786 100644
--- a/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
+++ b/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
@@ -46,11 +46,11 @@
WorldTimeClock::WorldTimeClock(QWidget *parent)
: QWidget(parent)
+ , timeZoneOffset(0)
+
{
typedef void (QWidget::*WidgetUpdateSlot)();
- timeZoneOffset = 0;
-
QTimer *timer = new QTimer(this);
connect(timer, &QTimer::timeout, this, static_cast<WidgetUpdateSlot>(&QWidget::update));
timer->start(1000);