aboutsummaryrefslogtreecommitdiffstats
path: root/examples/webchannel/chatserver-cpp/chatserver.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-08-28 13:28:23 +0200
committerKai Koehne <kai.koehne@qt.io>2017-08-29 09:36:38 +0000
commit046040e4b08972018fcb10ef882a35f7162cb38c (patch)
tree90a9853cff853e8019939f10dc4895d65e71d8f0 /examples/webchannel/chatserver-cpp/chatserver.cpp
parent351fed844a5d4c97d5d1510f1979d645adde338d (diff)
Examples: Use Qt 5 connect
Change-Id: I33aa6f8244770bf19b45f69cfc62a5469168418d Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'examples/webchannel/chatserver-cpp/chatserver.cpp')
-rw-r--r--examples/webchannel/chatserver-cpp/chatserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/webchannel/chatserver-cpp/chatserver.cpp b/examples/webchannel/chatserver-cpp/chatserver.cpp
index fb25344..0678dc5 100644
--- a/examples/webchannel/chatserver-cpp/chatserver.cpp
+++ b/examples/webchannel/chatserver-cpp/chatserver.cpp
@@ -58,13 +58,13 @@ ChatServer::ChatServer(QObject *parent)
: QObject(parent)
{
QTimer* t = new QTimer(this);
- connect(t, SIGNAL(timeout()), this, SLOT(sendKeepAlive()));
+ connect(t, &QTimer::timeout, this, &ChatServer::sendKeepAlive);
t->start(10000);
m_keepAliveCheckTimer = new QTimer(this);
m_keepAliveCheckTimer->setSingleShot(true);
m_keepAliveCheckTimer->setInterval(2000);
- connect(m_keepAliveCheckTimer, SIGNAL(timeout()), this, SLOT(checkKeepAliveResponses()));
+ connect(m_keepAliveCheckTimer, &QTimer::timeout, this, &ChatServer::checkKeepAliveResponses);
}
ChatServer::~ChatServer()