diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webchannel/chatserver-cpp/chatserver.cpp | 4 | ||||
-rw-r--r-- | examples/webchannel/standalone/main.cpp | 2 |
2 files changed, 3 insertions, 3 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() diff --git a/examples/webchannel/standalone/main.cpp b/examples/webchannel/standalone/main.cpp index 0aeb45c..f468652 100644 --- a/examples/webchannel/standalone/main.cpp +++ b/examples/webchannel/standalone/main.cpp @@ -78,7 +78,7 @@ public: ui.setupUi(&dialog); dialog.show(); - connect(ui.send, SIGNAL(clicked()), SLOT(clicked())); + connect(ui.send, &QPushButton::clicked, this, &Dialog::clicked); } void displayMessage(const QString &message) |