Changeset View
Changeset View
Standalone View
Standalone View
effects/mouseclick/mouseclick.cpp
Show All 37 Lines | |||||
38 | 38 | | |||
39 | #include <math.h> | 39 | #include <math.h> | ||
40 | 40 | | |||
41 | namespace KWin | 41 | namespace KWin | ||
42 | { | 42 | { | ||
43 | 43 | | |||
44 | MouseClickEffect::MouseClickEffect() | 44 | MouseClickEffect::MouseClickEffect() | ||
45 | { | 45 | { | ||
46 | initConfig<MouseClickConfig>(); | ||||
46 | m_enabled = false; | 47 | m_enabled = false; | ||
47 | 48 | | |||
48 | QAction* a = new QAction(this); | 49 | QAction* a = new QAction(this); | ||
49 | a->setObjectName(QStringLiteral("ToggleMouseClick")); | 50 | a->setObjectName(QStringLiteral("ToggleMouseClick")); | ||
50 | a->setText(i18n("Toggle Mouse Click Effect")); | 51 | a->setText(i18n("Toggle Mouse Click Effect")); | ||
51 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Asterisk); | 52 | KGlobalAccel::self()->setDefaultShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Asterisk); | ||
52 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Asterisk); | 53 | KGlobalAccel::self()->setShortcut(a, QList<QKeySequence>() << Qt::META + Qt::Key_Asterisk); | ||
53 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Asterisk, a); | 54 | effects->registerGlobalShortcut(Qt::META + Qt::Key_Asterisk, a); | ||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |