3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-12 10:15:54 +00:00
Brooklyn/plasma/kcms/kded/kdedconfigdata.cpp
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

33 lines
812 B
C++

/*
This file is part of the KDE project
SPDX-FileCopyrightText: 2021 Cyril Rossi <cyril.rossi@enioka.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "kdedconfigdata.h"
#include <KConfig>
#include <KConfigGroup>
KDEDConfigData::KDEDConfigData(QObject *parent, const QVariantList &args)
: KCModuleData(parent, args)
{
}
bool KDEDConfigData::isDefaults() const
{
KConfig kdedrc(QStringLiteral("kded5rc"), KConfig::NoGlobals);
const QStringList groupList = kdedrc.groupList();
for (auto &groupName : groupList) {
if (groupName.startsWith(QStringLiteral("Module-"))) {
KConfigGroup cg(&kdedrc, groupName);
if (!cg.readEntry(QStringLiteral("autoload"), true)) {
return false;
}
}
}
return true;
}