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 980b1007 authored by Roman Gilg's avatar Roman Gilg

[kded] Replace configReady functon with lambda

Summary: Purely for cosmetic reasons.

Test Plan: Compiles.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D16874
parent 740a8669
......@@ -65,20 +65,17 @@ KScreenDaemon::KScreenDaemon(QObject* parent, const QList< QVariant >& )
void KScreenDaemon::requestConfig()
{
connect(new KScreen::GetConfigOperation, &KScreen::GetConfigOperation::finished,
this, &KScreenDaemon::configReady);
}
void KScreenDaemon::configReady(KScreen::ConfigOperation* op)
{
if (op->hasError()) {
return;
}
this, [this](KScreen::ConfigOperation* op) {
if (op->hasError()) {
return;
}
m_monitoredConfig = qobject_cast<KScreen::GetConfigOperation*>(op)->config();
qCDebug(KSCREEN_KDED) << "Config" << m_monitoredConfig.data() << "is ready";
KScreen::ConfigMonitor::instance()->addConfig(m_monitoredConfig);
m_monitoredConfig = qobject_cast<KScreen::GetConfigOperation*>(op)->config();
qCDebug(KSCREEN_KDED) << "Config" << m_monitoredConfig.data() << "is ready";
KScreen::ConfigMonitor::instance()->addConfig(m_monitoredConfig);
init();
init();
});
}
KScreenDaemon::~KScreenDaemon()
......
......@@ -46,7 +46,6 @@ class Q_DECL_EXPORT KScreenDaemon : public KDEDModule
public Q_SLOTS:
virtual void requestConfig();
void configReady(KScreen::ConfigOperation *op);
void init();
void applyConfig();
......
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