Commit 56bfa972 authored by Laurent Montel's avatar Laurent Montel 😁

USe new connect api

parent a14c6836
......@@ -40,7 +40,11 @@ int main(int argc, char **argv)
Session session(args[0]);
QObject::connect(&session, &Session::disconnected, QCoreApplication::instance(), &QCoreApplication::quit);
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(&session, &Session::connectToHost, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(&session, "connectToHost", Qt::QueuedConnection);
#endif
const int result = app.exec();
session.printStats();
......
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