From 3b28e3d871e5952873ea59f8a68c48c3ded2c9ed Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Wed, 9 May 2018 10:48:43 +0200 Subject: [PATCH] Doc: update connect syntax digitalclock example Task-number: QTBUG-60635 Change-Id: I9d8411b639e5cf74c9cb03de4b5f6081bb549151 Reviewed-by: Venugopal Shivashankar --- examples/widgets/widgets/digitalclock/digitalclock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/widgets/widgets/digitalclock/digitalclock.cpp b/examples/widgets/widgets/digitalclock/digitalclock.cpp index 6787c975c5..dec7e64fc3 100644 --- a/examples/widgets/widgets/digitalclock/digitalclock.cpp +++ b/examples/widgets/widgets/digitalclock/digitalclock.cpp @@ -59,7 +59,7 @@ DigitalClock::DigitalClock(QWidget *parent) setSegmentStyle(Filled); QTimer *timer = new QTimer(this); - connect(timer, SIGNAL(timeout()), this, SLOT(showTime())); + connect(timer, &QTimer::timeout, this, &DigitalClock::showTime); timer->start(1000); showTime();