Changeset View
Changeset View
Standalone View
Standalone View
effects/zoom/zoom_config.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 52 | { | |||
---|---|---|---|---|---|
53 | ZoomConfig::instance(KWIN_CONFIG); | 53 | ZoomConfig::instance(KWIN_CONFIG); | ||
54 | m_ui = new ZoomEffectConfigForm(this); | 54 | m_ui = new ZoomEffectConfigForm(this); | ||
55 | 55 | | |||
56 | QVBoxLayout* layout = new QVBoxLayout(this); | 56 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
57 | layout->addWidget(m_ui); | 57 | layout->addWidget(m_ui); | ||
58 | 58 | | |||
59 | addConfig(ZoomConfig::self(), m_ui); | 59 | addConfig(ZoomConfig::self(), m_ui); | ||
60 | 60 | | |||
61 | connect(m_ui->editor, &KShortcutsEditor::keyChange, this, qOverload<>(&ZoomEffectConfig::changed)); | 61 | connect(m_ui->editor, &KShortcutsEditor::keyChange, this, &ZoomEffectConfig::markAsChanged); | ||
62 | 62 | | |||
63 | // Shortcut config. The shortcut belongs to the component "kwin"! | 63 | // Shortcut config. The shortcut belongs to the component "kwin"! | ||
64 | KActionCollection *actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | 64 | KActionCollection *actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | ||
65 | actionCollection->setComponentDisplayName(i18n("KWin")); | 65 | actionCollection->setComponentDisplayName(i18n("KWin")); | ||
66 | actionCollection->setConfigGroup(QStringLiteral("Zoom")); | 66 | actionCollection->setConfigGroup(QStringLiteral("Zoom")); | ||
67 | actionCollection->setConfigGlobal(true); | 67 | actionCollection->setConfigGlobal(true); | ||
68 | 68 | | |||
69 | QAction* a; | 69 | QAction* a; | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |