diff options
Diffstat (limited to 'examples/designer/worldtimeclockplugin/worldtimeclock.cpp')
-rw-r--r-- | examples/designer/worldtimeclockplugin/worldtimeclock.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclock.cpp b/examples/designer/worldtimeclockplugin/worldtimeclock.cpp index 9b36d27a4..bad16c82a 100644 --- a/examples/designer/worldtimeclockplugin/worldtimeclock.cpp +++ b/examples/designer/worldtimeclockplugin/worldtimeclock.cpp @@ -45,10 +45,12 @@ WorldTimeClock::WorldTimeClock(QWidget *parent) : QWidget(parent) { + typedef void (QWidget::*WidgetUpdateSlot)(); + timeZoneOffset = 0; QTimer *timer = new QTimer(this); - connect(timer, SIGNAL(timeout()), this, SLOT(update())); + connect(timer, &QTimer::timeout, this, static_cast<WidgetUpdateSlot>(&QWidget::update)); timer->start(1000); setWindowTitle(tr("World Time Clock")); |