Changeset View
Changeset View
Standalone View
Standalone View
effects/magnifier/magnifier_config.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
56 | 56 | | |||
57 | QVBoxLayout* layout = new QVBoxLayout(this); | 57 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
58 | 58 | | |||
59 | layout->addWidget(m_ui); | 59 | layout->addWidget(m_ui); | ||
60 | 60 | | |||
61 | MagnifierConfig::instance(KWIN_CONFIG); | 61 | MagnifierConfig::instance(KWIN_CONFIG); | ||
62 | addConfig(MagnifierConfig::self(), m_ui); | 62 | addConfig(MagnifierConfig::self(), m_ui); | ||
63 | 63 | | |||
64 | connect(m_ui->editor, SIGNAL(keyChange()), this, SLOT(changed())); | 64 | connect(m_ui->editor, &KShortcutsEditor::keyChange, this, qOverload<>(&MagnifierEffectConfig::changed)); | ||
65 | 65 | | |||
66 | // Shortcut config. The shortcut belongs to the component "kwin"! | 66 | // Shortcut config. The shortcut belongs to the component "kwin"! | ||
67 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | 67 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | ||
68 | 68 | | |||
69 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | 69 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | ||
70 | m_actionCollection->setConfigGroup(QStringLiteral("Magnifier")); | 70 | m_actionCollection->setConfigGroup(QStringLiteral("Magnifier")); | ||
71 | m_actionCollection->setConfigGlobal(true); | 71 | m_actionCollection->setConfigGlobal(true); | ||
72 | 72 | | |||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |