Commit a9a7e646 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent f6f73d5d
......@@ -420,9 +420,9 @@ void AgentBasePrivate::init()
this, &AgentBasePrivate::collectionUnsubscribed);
connect(q, SIGNAL(status(int,QString)), q, SLOT(slotStatus(int,QString)));
connect(q, SIGNAL(percent(int)), q, SLOT(slotPercent(int)));
connect(q, SIGNAL(warning(QString)), q, SLOT(slotWarning(QString)));
connect(q, SIGNAL(error(QString)), q, SLOT(slotError(QString)));
connect(q, &AgentBase::percent, q, [this](int value) { slotPercent(value); });
connect(q, &AgentBase::warning, q, [this](const QString &str) { slotWarning(str); });
connect(q, &AgentBase::error, q, [this](const QString &str) { slotError(str); });
mPowerInterface = new QDBusInterface(QStringLiteral("org.kde.Solid.PowerManagement"),
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