Use Qt5 connect syntax

This commit is contained in:
Chocobo1
2017-07-04 17:16:29 +08:00
committed by sledgehammer999
parent 55e038b165
commit 18651c8d01

View File

@@ -89,7 +89,7 @@ AbstractWebApplication::AbstractWebApplication(QObject *parent)
, session_(0)
{
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), SLOT(removeInactiveSessions()));
connect(timer, &QTimer::timeout, this, &AbstractWebApplication::removeInactiveSessions);
timer->start(60 * 1000); // 1 min.
}