Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/kded/kdedactions.cpp
Show All 24 Lines | |||||
25 | 25 | | |||
26 | #include "plugins.h" | 26 | #include "plugins.h" | ||
27 | 27 | | |||
28 | TouchpadGlobalActions::TouchpadGlobalActions(bool isConfiguration, QObject *parent) | 28 | TouchpadGlobalActions::TouchpadGlobalActions(bool isConfiguration, QObject *parent) | ||
29 | : KActionCollection(parent) | 29 | : KActionCollection(parent) | ||
30 | { | 30 | { | ||
31 | //setComponentName(TouchpadPluginFactory::componentData()); | 31 | //setComponentName(TouchpadPluginFactory::componentData()); | ||
32 | setComponentName("kcm_touchpad"); | 32 | setComponentName("kcm_touchpad"); | ||
33 | setComponentDisplayName(i18n("Touchpad")); | ||||
33 | 34 | | |||
34 | QAction *enable = addAction("Enable Touchpad"); | 35 | QAction *enable = addAction("Enable Touchpad"); | ||
35 | enable->setText(i18n("Enable Touchpad")); | 36 | enable->setText(i18n("Enable Touchpad")); | ||
36 | connect(enable, SIGNAL(triggered()), SIGNAL(enableTriggered())); | 37 | connect(enable, SIGNAL(triggered()), SIGNAL(enableTriggered())); | ||
37 | bool okEnable = KGlobalAccel::setGlobalShortcut(enable, QKeySequence(Qt::Key_TouchpadOn)); | 38 | bool okEnable = KGlobalAccel::setGlobalShortcut(enable, QKeySequence(Qt::Key_TouchpadOn)); | ||
38 | if (!okEnable) { | 39 | if (!okEnable) { | ||
39 | qWarning() << "Couldn't set global shortcut to Qt::Key_TouchpadOn. There's another program using it, otherwise file a bug against kcm_touchpad"; | 40 | qWarning() << "Couldn't set global shortcut to Qt::Key_TouchpadOn. There's another program using it, otherwise file a bug against kcm_touchpad"; | ||
40 | } | 41 | } | ||
Show All 24 Lines |