Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom_config.cpp
Show All 16 Lines | |||||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | 21 | | |||
22 | #include "zoom_config.h" | 22 | #include "zoom_config.h" | ||
23 | // KConfigSkeleton | 23 | // KConfigSkeleton | ||
24 | #include "zoomconfig.h" | 24 | #include "zoomconfig.h" | ||
25 | #include <config-kwin.h> | ||||
25 | #include <kwineffects_interface.h> | 26 | #include <kwineffects_interface.h> | ||
26 | 27 | | |||
27 | #include <QAction> | 28 | #include <QAction> | ||
28 | 29 | | |||
29 | #include <KGlobalAccel> | 30 | #include <KGlobalAccel> | ||
30 | #include <KLocalizedString> | 31 | #include <KLocalizedString> | ||
31 | #include <KActionCollection> | 32 | #include <KActionCollection> | ||
32 | #include <KAboutData> | 33 | #include <KAboutData> | ||
Show All 11 Lines | |||||
44 | ZoomEffectConfigForm::ZoomEffectConfigForm(QWidget* parent) : QWidget(parent) | 45 | ZoomEffectConfigForm::ZoomEffectConfigForm(QWidget* parent) : QWidget(parent) | ||
45 | { | 46 | { | ||
46 | setupUi(this); | 47 | setupUi(this); | ||
47 | } | 48 | } | ||
48 | 49 | | |||
49 | ZoomEffectConfig::ZoomEffectConfig(QWidget* parent, const QVariantList& args) : | 50 | ZoomEffectConfig::ZoomEffectConfig(QWidget* parent, const QVariantList& args) : | ||
50 | KCModule(KAboutData::pluginData(QStringLiteral("zoom")), parent, args) | 51 | KCModule(KAboutData::pluginData(QStringLiteral("zoom")), parent, args) | ||
51 | { | 52 | { | ||
53 | ZoomConfig::instance(KWIN_CONFIG); | ||||
52 | m_ui = new ZoomEffectConfigForm(this); | 54 | m_ui = new ZoomEffectConfigForm(this); | ||
53 | 55 | | |||
54 | QVBoxLayout* layout = new QVBoxLayout(this); | 56 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
55 | layout->addWidget(m_ui); | 57 | layout->addWidget(m_ui); | ||
56 | 58 | | |||
57 | addConfig(ZoomConfig::self(), m_ui); | 59 | addConfig(ZoomConfig::self(), m_ui); | ||
58 | 60 | | |||
59 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | 61 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |