0420048405
Fix Rendering backend combobox that was not highlighted. Particular case due to OpenGLIsUnsafe kcfg entry which is an indicating flag and not a configurable setting.
32 lines
752 B
C++
32 lines
752 B
C++
/*
|
|
KWin - the KDE window manager
|
|
This file is part of the KDE project.
|
|
|
|
SPDX-FileCopyrightText: 2020 Cyril Rossi <cyril.rossi@enioka.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "kwincompositingdata.h"
|
|
|
|
#include "kwincompositing_setting.h"
|
|
|
|
KWinCompositingData::KWinCompositingData(QObject *parent, const QVariantList &args)
|
|
: KCModuleData(parent, args)
|
|
, m_settings(new KWinCompositingSetting(this))
|
|
|
|
{
|
|
}
|
|
|
|
bool KWinCompositingData::isDefaults() const
|
|
{
|
|
bool defaults = true;
|
|
for (const auto &item : m_settings->items()) {
|
|
if (item->key() != QStringLiteral("OpenGLIsUnsafe")) {
|
|
defaults &= item->isDefault();
|
|
}
|
|
}
|
|
return defaults;
|
|
}
|
|
|
|
#include "kwincompositingdata.moc"
|