36 : KCModule(parent, data)
38 TrackMouseConfig::instance(KWIN_CONFIG);
39 m_ui.setupUi(widget());
41 addConfig(TrackMouseConfig::self(), widget());
43 m_actionCollection =
new KActionCollection(
this, QStringLiteral(
"kwin"));
44 m_actionCollection->setComponentDisplayName(i18n(
"KWin"));
45 m_actionCollection->setConfigGroup(QStringLiteral(
"TrackMouse"));
46 m_actionCollection->setConfigGlobal(
true);
48 QAction *a = m_actionCollection->addAction(s_toggleTrackMouseActionName);
49 a->setText(i18n(
"Track mouse"));
50 a->setProperty(
"isConfigurationAction",
true);
52 KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>());
53 KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>());
55 connect(m_ui.shortcut, &KKeySequenceWidget::keySequenceChanged,
56 this, &TrackMouseEffectConfig::shortcutChanged);