Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/kcm/touchpadconfigcontainer.cpp
Show All 33 Lines | 28 | { | |||
---|---|---|---|---|---|
34 | } | 34 | } | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | TouchpadConfigContainer::TouchpadConfigContainer(QWidget *parent, const QVariantList &args) | 37 | TouchpadConfigContainer::TouchpadConfigContainer(QWidget *parent, const QVariantList &args) | ||
38 | : KCModule(parent, args) | 38 | : KCModule(parent, args) | ||
39 | { | 39 | { | ||
40 | TouchpadBackend *backend = TouchpadBackend::implementation(); | 40 | TouchpadBackend *backend = TouchpadBackend::implementation(); | ||
41 | if (KWindowSystem::isPlatformX11()) { | 41 | if (KWindowSystem::isPlatformX11()) { | ||
42 | if (backend->getMode() == TouchpadInputBackendMode::XLibinput){ | 42 | if (backend->getMode() == TouchpadInputBackendMode::XLibinput) { | ||
43 | m_plugin = new TouchpadConfigLibinput(this, backend); | 43 | m_plugin = new TouchpadConfigLibinput(this, backend); | ||
44 | } | 44 | } | ||
45 | else if (backend->getMode() == TouchpadInputBackendMode::XSynaptics) | 45 | else if (backend->getMode() == TouchpadInputBackendMode::XSynaptics) { | ||
46 | m_plugin = new TouchpadConfigXlib(this, backend); | 46 | m_plugin = new TouchpadConfigXlib(this, backend); | ||
47 | 47 | } | |||
48 | } else if (KWindowSystem::isPlatformWayland()) { | 48 | } else if (KWindowSystem::isPlatformWayland()) { | ||
49 | m_plugin = new TouchpadConfigLibinput(this, backend); | 49 | m_plugin = new TouchpadConfigLibinput(this, backend); | ||
50 | } | 50 | } | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | QSize TouchpadConfigContainer::minimumSizeHint() const | 53 | QSize TouchpadConfigContainer::minimumSizeHint() const | ||
54 | { | 54 | { | ||
55 | return m_plugin->minimumSizeHint(); | 55 | return m_plugin->minimumSizeHint(); | ||
Show All 31 Lines |