Commit 5c4e547e authored by Andrea Scarpino's avatar Andrea Scarpino

Use Qt5 syntax for slots

parent 1db4d0e3
......@@ -74,8 +74,8 @@ void HostsManager::ping(const QString &host, const bool ipv6), ipv6);
QEventLoop loop;
connect(&ping, SIGNAL(result(QString,int,bool)), this, SLOT(slotResult(QString,int,bool)));
connect(&ping, SIGNAL(result(QString,int,bool)), &loop, SLOT(quit()));
connect(&ping, &PingAction::result, this, &HostsManager::slotResult);
connect(&ping, &PingAction::result, &loop, &QEventLoop::quit);
// Wait for PingAction to finish
......@@ -99,5 +99,5 @@ void HostsManager::slotResult(const QString &host, const int exitCode, const boo
m_db->insert(host, exitCode, ipv6);
emit pingResult(host, exitCode);
Q_EMIT pingResult(host, exitCode);
......@@ -46,10 +46,9 @@ public:
void pingResult(const QString &host, const int exitCode);
protected Q_SLOTS:
void slotResult(const QString &host, const int exitCode, const bool ipv6);
DBManager *m_db;
HostsSqlModel* m_model;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment