Changeset View
Changeset View
Standalone View
Standalone View
kcms/mouse/kcm/configplugin.cpp
- This file was moved from kcms/input/kcm/configplugin.cpp.
Show All 25 Lines | |||||
26 | #include <logging.h> | 26 | #include <logging.h> | ||
27 | 27 | | |||
28 | ConfigPlugin* ConfigPlugin::implementation(ConfigContainer *parent) | 28 | ConfigPlugin* ConfigPlugin::implementation(ConfigContainer *parent) | ||
29 | { | 29 | { | ||
30 | InputBackend *backend = InputBackend::implementation(parent); | 30 | InputBackend *backend = InputBackend::implementation(parent); | ||
31 | InputBackendMode mode = backend->mode(); | 31 | InputBackendMode mode = backend->mode(); | ||
32 | 32 | | |||
33 | if (mode == InputBackendMode::KWinWayland || mode == InputBackendMode::XLibinput) { | 33 | if (mode == InputBackendMode::KWinWayland || mode == InputBackendMode::XLibinput) { | ||
34 | qCDebug(KCM_INPUT) << "With libinput user interface."; | 34 | qCDebug(KCM_MOUSE) << "With libinput user interface."; | ||
35 | return new LibinputConfig(parent, backend); | 35 | return new LibinputConfig(parent, backend); | ||
36 | } else if (mode == InputBackendMode::XEvdev) { | 36 | } else if (mode == InputBackendMode::XEvdev) { | ||
37 | qCDebug(KCM_INPUT) << "With X11 evdev user interface."; | 37 | qCDebug(KCM_MOUSE) << "With X11 evdev user interface."; | ||
38 | return new XlibConfig(parent, backend); | 38 | return new XlibConfig(parent, backend); | ||
39 | } else { | 39 | } else { | ||
40 | qCCritical(KCM_INPUT) << "Not able to select appropriate backend."; | 40 | qCCritical(KCM_MOUSE) << "Not able to select appropriate backend."; | ||
41 | return nullptr; | 41 | return nullptr; | ||
42 | } | 42 | } | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | ConfigPlugin::ConfigPlugin(ConfigContainer *parent) | 45 | ConfigPlugin::ConfigPlugin(ConfigContainer *parent) | ||
46 | : QWidget(parent), | 46 | : QWidget(parent), | ||
47 | m_parent(parent) | 47 | m_parent(parent) | ||
48 | { | 48 | { | ||
49 | } | 49 | } |