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.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclock.cpp b/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
index 158d01af5..366394287 100644
--- a/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
+++ b/examples/designer/worldtimeclockplugin/worldtimeclock.cpp
@@ -56,13 +56,9 @@
WorldTimeClock::WorldTimeClock(QWidget *parent)
: QWidget(parent)
- , timeZoneOffset(0)
-
{
- typedef void (QWidget::*WidgetUpdateSlot)();
-
QTimer *timer = new QTimer(this);
- connect(timer, &QTimer::timeout, this, static_cast<WidgetUpdateSlot>(&QWidget::update));
+ connect(timer, &QTimer::timeout, this, QOverload<>::of(&QWidget::update));
timer->start(1000);
setWindowTitle(tr("World Time Clock"));