File indexing completed on 2024-11-10 04:56:49
0001 /* 0002 SPDX-FileCopyrightText: 2021 Cyril Rossi <cyril.rossi@enioka.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "desktopeffectsdata.h" 0008 #include "effectsmodel.h" 0009 0010 namespace KWin 0011 { 0012 0013 DesktopEffectsData::DesktopEffectsData(QObject *parent) 0014 : KCModuleData(parent) 0015 , m_model(new EffectsModel(this)) 0016 0017 { 0018 disconnect(this, &KCModuleData::aboutToLoad, nullptr, nullptr); 0019 connect(m_model, &EffectsModel::loaded, this, &KCModuleData::loaded); 0020 0021 m_model->load(); 0022 } 0023 0024 DesktopEffectsData::~DesktopEffectsData() 0025 { 0026 } 0027 0028 bool DesktopEffectsData::isDefaults() const 0029 { 0030 return m_model->isDefaults(); 0031 } 0032 0033 } 0034 0035 #include "moc_desktopeffectsdata.cpp"