Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cubeslide_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 "cubeslide_config.h" | 20 | #include "cubeslide_config.h" | ||
21 | // KConfigSkeleton | 21 | // KConfigSkeleton | ||
22 | #include "cubeslideconfig.h" | 22 | #include "cubeslideconfig.h" | ||
23 | #include <config-kwin.h> | ||||
23 | #include <kwineffects_interface.h> | 24 | #include <kwineffects_interface.h> | ||
24 | 25 | | |||
25 | #include <kconfiggroup.h> | 26 | #include <kconfiggroup.h> | ||
26 | #include <KAboutData> | 27 | #include <KAboutData> | ||
27 | #include <KPluginFactory> | 28 | #include <KPluginFactory> | ||
28 | #include <QVBoxLayout> | 29 | #include <QVBoxLayout> | ||
29 | 30 | | |||
30 | K_PLUGIN_FACTORY_WITH_JSON(CubeSlideEffectConfigFactory, | 31 | K_PLUGIN_FACTORY_WITH_JSON(CubeSlideEffectConfigFactory, | ||
Show All 12 Lines | 43 | CubeSlideEffectConfig::CubeSlideEffectConfig(QWidget* parent, const QVariantList& args) : | |||
43 | KCModule(KAboutData::pluginData(QStringLiteral("cubeslide")), parent, args) | 44 | KCModule(KAboutData::pluginData(QStringLiteral("cubeslide")), parent, args) | ||
44 | { | 45 | { | ||
45 | m_ui = new CubeSlideEffectConfigForm(this); | 46 | m_ui = new CubeSlideEffectConfigForm(this); | ||
46 | 47 | | |||
47 | QVBoxLayout* layout = new QVBoxLayout(this); | 48 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
48 | 49 | | |||
49 | layout->addWidget(m_ui); | 50 | layout->addWidget(m_ui); | ||
50 | 51 | | |||
52 | CubeSlideConfig::instance(KWIN_CONFIG); | ||||
51 | addConfig(CubeSlideConfig::self(), m_ui); | 53 | addConfig(CubeSlideConfig::self(), m_ui); | ||
52 | 54 | | |||
53 | load(); | 55 | load(); | ||
54 | } | 56 | } | ||
55 | 57 | | |||
56 | void CubeSlideEffectConfig::save() | 58 | void CubeSlideEffectConfig::save() | ||
57 | { | 59 | { | ||
58 | KCModule::save(); | 60 | KCModule::save(); | ||
Show All 9 Lines |