File indexing completed on 2024-11-10 04:56:46
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2020 Cyril Rossi <cyril.rossi@enioka.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #include "kwincompositingdata.h" 0011 0012 #include "kwincompositing_setting.h" 0013 0014 KWinCompositingData::KWinCompositingData(QObject *parent) 0015 : KCModuleData(parent) 0016 , m_settings(new KWinCompositingSetting(this)) 0017 0018 { 0019 } 0020 0021 bool KWinCompositingData::isDefaults() const 0022 { 0023 bool defaults = true; 0024 0025 const KConfigSkeletonItem::List itemList = m_settings->items(); 0026 for (const auto &item : itemList) { 0027 if (item->key() != QStringLiteral("LastFailureTimestamp")) { 0028 defaults &= item->isDefault(); 0029 } 0030 } 0031 return defaults; 0032 } 0033 0034 #include "moc_kwincompositingdata.cpp"