Changeset View
Changeset View
Standalone View
Standalone View
effects/magiclamp/magiclamp_config.cpp
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
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 | #include "magiclamp_config.h" | 20 | #include "magiclamp_config.h" | ||
21 | // KConfigSkeleton | 21 | // KConfigSkeleton | ||
22 | #include "magiclampconfig.h" | 22 | #include "magiclampconfig.h" | ||
23 | #include <config-kwin.h> | ||||
23 | 24 | | |||
24 | #include <kwineffects_interface.h> | 25 | #include <kwineffects_interface.h> | ||
25 | 26 | | |||
26 | #include <kconfiggroup.h> | 27 | #include <kconfiggroup.h> | ||
27 | #include <KAboutData> | 28 | #include <KAboutData> | ||
28 | #include <KPluginFactory> | 29 | #include <KPluginFactory> | ||
29 | 30 | | |||
30 | #include <QVBoxLayout> | 31 | #include <QVBoxLayout> | ||
Show All 14 Lines | 45 | MagicLampEffectConfig::MagicLampEffectConfig(QWidget* parent, const QVariantList& args) : | |||
45 | KCModule(KAboutData::pluginData(QStringLiteral("magiclamp")), parent, args) | 46 | KCModule(KAboutData::pluginData(QStringLiteral("magiclamp")), parent, args) | ||
46 | { | 47 | { | ||
47 | m_ui = new MagicLampEffectConfigForm(this); | 48 | m_ui = new MagicLampEffectConfigForm(this); | ||
48 | 49 | | |||
49 | QVBoxLayout* layout = new QVBoxLayout(this); | 50 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
50 | 51 | | |||
51 | layout->addWidget(m_ui); | 52 | layout->addWidget(m_ui); | ||
52 | 53 | | |||
54 | MagicLampConfig::instance(KWIN_CONFIG); | ||||
53 | addConfig(MagicLampConfig::self(), m_ui); | 55 | addConfig(MagicLampConfig::self(), m_ui); | ||
54 | 56 | | |||
55 | load(); | 57 | load(); | ||
56 | } | 58 | } | ||
57 | 59 | | |||
58 | void MagicLampEffectConfig::save() | 60 | void MagicLampEffectConfig::save() | ||
59 | { | 61 | { | ||
60 | KCModule::save(); | 62 | KCModule::save(); | ||
Show All 9 Lines |