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
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

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.
}