Changeset View
Changeset View
Standalone View
Standalone View
effects/resize/resize_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 "resize_config.h" | 20 | #include "resize_config.h" | ||
21 | // KConfigSkeleton | 21 | // KConfigSkeleton | ||
22 | #include "resizeconfig.h" | 22 | #include "resizeconfig.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 | 29 | | |||
29 | #include <QVBoxLayout> | 30 | #include <QVBoxLayout> | ||
30 | 31 | | |||
Show All 13 Lines | 44 | ResizeEffectConfig::ResizeEffectConfig(QWidget* parent, const QVariantList& args) : | |||
44 | KCModule(KAboutData::pluginData(QStringLiteral("resize")), parent, args) | 45 | KCModule(KAboutData::pluginData(QStringLiteral("resize")), parent, args) | ||
45 | { | 46 | { | ||
46 | m_ui = new ResizeEffectConfigForm(this); | 47 | m_ui = new ResizeEffectConfigForm(this); | ||
47 | 48 | | |||
48 | QVBoxLayout* layout = new QVBoxLayout(this); | 49 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
49 | 50 | | |||
50 | layout->addWidget(m_ui); | 51 | layout->addWidget(m_ui); | ||
51 | 52 | | |||
53 | ResizeConfig::instance(KWIN_CONFIG); | ||||
52 | addConfig(ResizeConfig::self(), m_ui); | 54 | addConfig(ResizeConfig::self(), m_ui); | ||
53 | 55 | | |||
54 | load(); | 56 | load(); | ||
55 | } | 57 | } | ||
56 | 58 | | |||
57 | void ResizeEffectConfig::save() | 59 | void ResizeEffectConfig::save() | ||
58 | { | 60 | { | ||
59 | KCModule::save(); | 61 | KCModule::save(); | ||
Show All 9 Lines |