33 : KCModule(parent, data)
35 m_ui.setupUi(widget());
37 connect(m_ui.editor, &KShortcutsEditor::keyChange,
this, &KCModule::markAsChanged);
39 ThumbnailAsideConfig::instance(KWIN_CONFIG);
40 addConfig(ThumbnailAsideConfig::self(), widget());
43 m_actionCollection =
new KActionCollection(
this, QStringLiteral(
"kwin"));
45 m_actionCollection->setComponentDisplayName(i18n(
"KWin"));
46 m_actionCollection->setConfigGroup(QStringLiteral(
"ThumbnailAside"));
47 m_actionCollection->setConfigGlobal(
true);
49 QAction *a = m_actionCollection->addAction(QStringLiteral(
"ToggleCurrentThumbnail"));
50 a->setText(i18n(
"Toggle Thumbnail for Current Window"));
51 a->setProperty(
"isConfigurationAction",
true);
52 KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::CTRL | Qt::Key_T));
53 KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << (Qt::META | Qt::CTRL | Qt::Key_T));
55 m_ui.editor->addCollection(m_actionCollection);