summaryrefslogtreecommitdiffstats
path: root/examples/designer/worldtimeclockplugin
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-04-10 11:18:01 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-04-10 10:34:00 +0000
commit3d8923978b004b3690fc04f55c7e2473fc7f1be5 (patch)
treef06fde9f9a7d32c35f47912693c7713e3dad19b5 /examples/designer/worldtimeclockplugin
parent1389ef74c0927a4b293ec9bac9203052ad8077f5 (diff)
Qt Designer Examples: Introduce Qt 5 connect syntax.
Change-Id: I6f0f1fad45412ab3dd7b5ff82f9cab789b805080 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'examples/designer/worldtimeclockplugin')
-rw-r--r--examples/designer/worldtimeclockplugin/worldtimeclock.cpp4
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"));