Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Port to new connect api

parent 642d888c
......@@ -113,8 +113,8 @@ void SendJob::doAkonadiTransport()
}
// Signals.
QObject::connect(AgentManager::self(), SIGNAL(instanceProgressChanged(Akonadi::AgentInstance)),
this, SLOT(resourceProgress(Akonadi::AgentInstance)));
QObject::connect(AgentManager::self(), &AgentManager::instanceProgressChanged,
this, &SendJob::resourceProgress);
QObject::connect(mInterface, SIGNAL(transportResult(qlonglong,int,QString)),
this, SLOT(resourceResult(qlonglong,int,QString)));
......
......@@ -81,7 +81,7 @@ int main(int argc, char **argv)
QObject::connect(migrator, SIGNAL(message(MigratorBase::MessageType,QString)),
infoDialog, SLOT(message(MigratorBase::MessageType,QString)));
QObject::connect(migrator, &QObject::destroyed, infoDialog, &InfoDialog::migratorDone);
QObject::connect(migrator, SIGNAL(progress(int)), infoDialog, SLOT(progress(int)));
QObject::connect(migrator, QOverload<int>::of(&MigratorBase::progress), infoDialog, QOverload<int>::of(&InfoDialog::progress));
}
QObject::connect(migrator, SIGNAL(stoppedProcessing()), &app, SLOT(quit()));
migrator->start();
......
......@@ -28,7 +28,7 @@ O1::O1(QObject *parent): O0BaseAuth(parent)
setCallbackUrl(O2_CALLBACK_URL);
}
QUrl O1::requestTokenUrl()
QUrl O1::requestTokenUrl() const
{
return requestTokenUrl_;
}
......
......@@ -22,7 +22,7 @@ public:
/// Token request URL.
Q_PROPERTY(QUrl requestTokenUrl READ requestTokenUrl WRITE setRequestTokenUrl NOTIFY requestTokenUrlChanged)
QUrl requestTokenUrl();
QUrl requestTokenUrl() const;
void setRequestTokenUrl(const QUrl &value);
/// Parameters to pass with request URL.
......
......@@ -73,10 +73,10 @@ O2::O2(QObject *parent): O0BaseAuth(parent)
grantFlow_ = GrantFlowAuthorizationCode;
localhostPolicy_ = QString(O2_CALLBACK_URL);
qRegisterMetaType<QNetworkReply::NetworkError>("QNetworkReply::NetworkError");
connect(replyServer_, SIGNAL(verificationReceived(QMap<QString,QString>)), this, SLOT(onVerificationReceived(QMap<QString,QString>)));
connect(replyServer_, &O2ReplyServer::verificationReceived, this, &O2::onVerificationReceived);
}
O2::GrantFlow O2::grantFlow()
O2::GrantFlow O2::grantFlow() const
{
return grantFlow_;
}
......
......@@ -26,7 +26,7 @@ public:
/// Authorization flow.
Q_PROPERTY(GrantFlow grantFlow READ grantFlow WRITE setGrantFlow NOTIFY grantFlowChanged)
GrantFlow grantFlow();
GrantFlow grantFlow() const;
void setGrantFlow(GrantFlow value);
/// Resource owner username.
......
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