diff options
Diffstat (limited to 'examples/qml/referenceexamples/binding/happybirthdaysong.cpp')
-rw-r--r-- | examples/qml/referenceexamples/binding/happybirthdaysong.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/referenceexamples/binding/happybirthdaysong.cpp b/examples/qml/referenceexamples/binding/happybirthdaysong.cpp index 85a5416190..975f6d409a 100644 --- a/examples/qml/referenceexamples/binding/happybirthdaysong.cpp +++ b/examples/qml/referenceexamples/binding/happybirthdaysong.cpp @@ -45,7 +45,7 @@ HappyBirthdaySong::HappyBirthdaySong(QObject *parent) { setName(QString()); QTimer *timer = new QTimer(this); - QObject::connect(timer, SIGNAL(timeout()), this, SLOT(advance())); + QObject::connect(timer, &QTimer::timeout, this, &HappyBirthdaySong::advance); timer->start(1000); } |