Doc: update connect syntax digitalclock example

Task-number: QTBUG-60635
Change-Id: I9d8411b639e5cf74c9cb03de4b5f6081bb549151
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
Nico Vertriest 2018-05-09 10:48:43 +02:00
parent b0f3cc1594
commit 3b28e3d871

View File

@ -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();