Changeset View
Changeset View
Standalone View
Standalone View
effects/mouseclick/mouseclick_config.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | MouseClickEffectConfig::MouseClickEffectConfig(QWidget* parent, const QVariantList& args) : | 49 | MouseClickEffectConfig::MouseClickEffectConfig(QWidget* parent, const QVariantList& args) : | ||
50 | KCModule(KAboutData::pluginData(QStringLiteral("mouseclick")), parent, args) | 50 | KCModule(KAboutData::pluginData(QStringLiteral("mouseclick")), parent, args) | ||
51 | { | 51 | { | ||
52 | m_ui = new MouseClickEffectConfigForm(this); | 52 | m_ui = new MouseClickEffectConfigForm(this); | ||
53 | 53 | | |||
54 | QVBoxLayout* layout = new QVBoxLayout(this); | 54 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
55 | layout->addWidget(m_ui); | 55 | layout->addWidget(m_ui); | ||
56 | 56 | | |||
57 | connect(m_ui->editor, &KShortcutsEditor::keyChange, this, qOverload<>(&MouseClickEffectConfig::changed)); | 57 | connect(m_ui->editor, &KShortcutsEditor::keyChange, this, &MouseClickEffectConfig::markAsChanged); | ||
58 | 58 | | |||
59 | // Shortcut config. The shortcut belongs to the component "kwin"! | 59 | // Shortcut config. The shortcut belongs to the component "kwin"! | ||
60 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | 60 | m_actionCollection = new KActionCollection(this, QStringLiteral("kwin")); | ||
61 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | 61 | m_actionCollection->setComponentDisplayName(i18n("KWin")); | ||
62 | 62 | | |||
63 | QAction* a = m_actionCollection->addAction(QStringLiteral("ToggleMouseClick")); | 63 | QAction* a = m_actionCollection->addAction(QStringLiteral("ToggleMouseClick")); | ||
64 | a->setText(i18n("Toggle Mouse Click Effect")); | 64 | a->setText(i18n("Toggle Mouse Click Effect")); | ||
65 | a->setProperty("isConfigurationAction", true); | 65 | a->setProperty("isConfigurationAction", true); | ||
Show All 29 Lines |