summaryrefslogtreecommitdiffstats
path: root/examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp')
-rw-r--r--examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp b/examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp
index a5ab3e0..5418ce1 100644
--- a/examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp
+++ b/examples/remoteobjects/simpleswitch/directconnectserver/simpleswitch.cpp
@@ -54,7 +54,7 @@
SimpleSwitch::SimpleSwitch(QObject *parent) : SimpleSwitchSimpleSource(parent)
{
stateChangeTimer = new QTimer(this); // Initialize timer
- QObject::connect(stateChangeTimer, SIGNAL(timeout()), this, SLOT(timeout_slot())); // connect timeout() signal from stateChangeTimer to timeout_slot() of simpleSwitch
+ QObject::connect(stateChangeTimer, &QTimer::timeout, this, &SimpleSwitch::timeout_slot); // connect timeout() signal from stateChangeTimer to timeout_slot() of simpleSwitch
stateChangeTimer->start(2000); // Start timer and set timout to 2 seconds
qDebug() << "Source Node Started";
}