Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows_config.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 52 | { | |||
---|---|---|---|---|---|
78 | QAction* c = m_actionCollection->addAction(QStringLiteral("ExposeClass")); | 78 | QAction* c = m_actionCollection->addAction(QStringLiteral("ExposeClass")); | ||
79 | c->setText(i18n("Toggle Present Windows (Window class)")); | 79 | c->setText(i18n("Toggle Present Windows (Window class)")); | ||
80 | c->setProperty("isConfigurationAction", true); | 80 | c->setProperty("isConfigurationAction", true); | ||
81 | KGlobalAccel::self()->setDefaultShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | 81 | KGlobalAccel::self()->setDefaultShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | ||
82 | KGlobalAccel::self()->setShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | 82 | KGlobalAccel::self()->setShortcut(c, QList<QKeySequence>() << Qt::CTRL + Qt::Key_F7); | ||
83 | 83 | | |||
84 | m_ui->shortcutEditor->addCollection(m_actionCollection); | 84 | m_ui->shortcutEditor->addCollection(m_actionCollection); | ||
85 | 85 | | |||
86 | connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, qOverload<>(&PresentWindowsEffectConfig::changed)); | 86 | connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, &PresentWindowsEffectConfig::markAsChanged); | ||
87 | 87 | | |||
88 | PresentWindowsConfig::instance(KWIN_CONFIG); | 88 | PresentWindowsConfig::instance(KWIN_CONFIG); | ||
89 | addConfig(PresentWindowsConfig::self(), m_ui); | 89 | addConfig(PresentWindowsConfig::self(), m_ui); | ||
90 | 90 | | |||
91 | load(); | 91 | load(); | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | PresentWindowsEffectConfig::~PresentWindowsEffectConfig() | 94 | PresentWindowsEffectConfig::~PresentWindowsEffectConfig() | ||
Show All 24 Lines |