Changeset View
Changeset View
Standalone View
Standalone View
effects/diminactive/diminactive_config.cpp
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | 20 | | |||
21 | #include "diminactive_config.h" | 21 | #include "diminactive_config.h" | ||
22 | // KConfigSkeleton | 22 | // KConfigSkeleton | ||
23 | #include "diminactiveconfig.h" | 23 | #include "diminactiveconfig.h" | ||
24 | #include <config-kwin.h> | ||||
24 | 25 | | |||
25 | #include <kwineffects_interface.h> | 26 | #include <kwineffects_interface.h> | ||
26 | 27 | | |||
27 | #include <KLocalizedString> | 28 | #include <KLocalizedString> | ||
28 | #include <kconfiggroup.h> | 29 | #include <kconfiggroup.h> | ||
29 | #include <KAboutData> | 30 | #include <KAboutData> | ||
30 | #include <KPluginFactory> | 31 | #include <KPluginFactory> | ||
31 | 32 | | |||
Show All 16 Lines | 48 | DimInactiveEffectConfig::DimInactiveEffectConfig(QWidget* parent, const QVariantList& args) : | |||
48 | KCModule(KAboutData::pluginData(QStringLiteral("diminactive")), parent, args) | 49 | KCModule(KAboutData::pluginData(QStringLiteral("diminactive")), parent, args) | ||
49 | { | 50 | { | ||
50 | m_ui = new DimInactiveEffectConfigForm(this); | 51 | m_ui = new DimInactiveEffectConfigForm(this); | ||
51 | 52 | | |||
52 | QVBoxLayout* layout = new QVBoxLayout(this); | 53 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
53 | 54 | | |||
54 | layout->addWidget(m_ui); | 55 | layout->addWidget(m_ui); | ||
55 | 56 | | |||
57 | DimInactiveConfig::instance(KWIN_CONFIG); | ||||
56 | addConfig(DimInactiveConfig::self(), m_ui); | 58 | addConfig(DimInactiveConfig::self(), m_ui); | ||
57 | 59 | | |||
58 | load(); | 60 | load(); | ||
59 | } | 61 | } | ||
60 | 62 | | |||
61 | void DimInactiveEffectConfig::save() | 63 | void DimInactiveEffectConfig::save() | ||
62 | { | 64 | { | ||
63 | KCModule::save(); | 65 | KCModule::save(); | ||
Show All 9 Lines |