summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/analogclock
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-12-02 14:16:47 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-01-26 10:37:06 +0000
commitbf4bf3a58360d4f7907895096b452cb3821ea593 (patch)
tree0a784f40986afb9c73aed2f5d13a2f554a09ce2e /examples/widgets/widgets/analogclock
parente81acde7d0cf5fb44a3fb2cf0bf7aaa2c65f807e (diff)
Cleanup Widgets examples - signals/slots
Cleanup the widgets examples - use new signal/slot syntax where possible Change-Id: I6bc8953534d8b1efca0de4ee6a9fe4a6aa79fda9 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Konstantin Shegunov <kshegunov@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/widgets/widgets/analogclock')
-rw-r--r--examples/widgets/widgets/analogclock/analogclock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/widgets/analogclock/analogclock.cpp b/examples/widgets/widgets/analogclock/analogclock.cpp
index 0dc2fbc708..bee316b9b7 100644
--- a/examples/widgets/widgets/analogclock/analogclock.cpp
+++ b/examples/widgets/widgets/analogclock/analogclock.cpp
@@ -61,7 +61,7 @@ AnalogClock::AnalogClock(QWidget *parent)
//! [3] //! [4]
QTimer *timer = new QTimer(this);
//! [4] //! [5]
- connect(timer, SIGNAL(timeout()), this, SLOT(update()));
+ connect(timer, &QTimer::timeout, this, QOverload<>::of(&AnalogClock::update));
//! [5] //! [6]
timer->start(1000);
//! [6]