Commit graph

14 commits

Author SHA1 Message Date
Nicolas Fella
12ac086128 [kcm/touchpad] Drop synaptics config
The synaptics touchpad driver has mostly been superseeded by libinput.

For libinput we have a completely different UI.

The KCM currently still supports both, making the code massively complex and
causing a huge maintanance burden.

Given the long-term focus is on Wayland and libinput drop the synaptic integration.

This doesn't prevent anyone from using Plasma X11 with Synaptics, but there will
not be a first-party config UI for it any more

See https://invent.kde.org/plasma/plasma-desktop/-/issues/79
2023-10-02 21:24:09 +00:00
Jakob Petsovits
af091e2486 kcms/touchpad: Explicit build options for Wayland and X11 backends
KDE prefers explicit CMake options over a conditional build that
depends on which headers are installed on the user's system.
Two new options are introduced to turn the build for the X11
and KWin+Wayland backends on or off separately.

The touchpad KCM will now build both backends by default, as before,
but won't silently exclude kcm_touchpad from the build if any of its
required X11_XCB/X11_Xi/XORGSERVER dependencies are missing.
Instead, it will loudly fail CMake configuration with an error
and a hint about the existence of the CMake option.

Plus, don't leak in TouchpadBackend::implementation().
If the X11 implementation keeps a backend singleton and returns that,
the KWin+Wayland implementation shouldn't keep creating new backends
that are never deleted.
2023-07-29 14:20:47 -04:00
Alexander Lohnau
0f46cffdf0 Remove unneeded QVariantList from KCM constructor args
The args are not needed and will be removed later in KF6
2023-06-09 15:43:37 +02:00
Alexander Lohnau
d83eecab18 kcms: Clean up defunct sizeHint code, set reasonable size
Because those bits were only relevant to kcmshell (which we rarely use nowadays),
it is far less effort to just set an appropriate size manually.

The touchpad QML code was also fixed, because it did not show any.
The ToolTip component depended on a non-existent module in Qt6 and was ported.
2023-03-16 11:55:05 +00:00
Alexander Lohnau
0cbce3bb4d Make it compile against imported KCMUtils classes 2023-03-16 11:55:05 +00:00
Fabian Vogt
369eab6457 kcms/touchpad: Remove weird Q_EMIT changed(false) in resizeEvent
That looks rather out of place there and does actually disable the apply button
when resizing the window. I don't understand what it's supposed to be doing
there, but if it has an actual purpose it needs to be addressed differently.

CCBUG: 449843
2022-02-24 21:25:07 +01:00
Nicolas Fella
4d84ad8391 [kcms/touchpad] Don't show help button
There's no help page for it, so don't show a defunct button

BUG: 447942
2022-01-05 17:52:06 +01:00
Nicolas Fella
d41f32c5c0 [kcms/touchpad] Remove outdated comment
This has been implemented
2021-12-01 21:41:45 +01:00
Alexander Lohnau
b6a4b221d6 Install kcm in new location & create kcminit symlink
Required for https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1201

Task: https://phabricator.kde.org/T14335
Task: https://phabricator.kde.org/T14517
2021-11-27 19:32:32 +01:00
Alexander Lohnau
e1d89da146 Convert licsense headers to SPDX 2021-06-25 10:36:06 +00:00
Nicolas Fella
d4f556c32b [kcms/touchpad] Show libinput UI when no touchpad is found
It has a nicer fallback UI than the xlib KCM
2021-05-25 14:07:20 +02:00
Nicolas Fella
f20f665ff4 [kcms/touchpad] Split kded and kcm plugin
Currently the KCM is loaded from the kded plugin. This makes the
implementation quite messy.

Instead split the two into their own plugins and extract common stuff
into a (static) lib.
2021-05-24 21:40:26 +02:00
Alexander Lohnau
bd3c925dc9 Run clang-format
If you want git blame to ignore formatting revisions run:
git config blame.ignoreRevsFile .git-blame-ignore-revs
2021-01-21 07:15:46 +00:00
Nicolas Fella
9f34469d04 [kcm/touchpad] Simplify directory structure
Summary: There's no need for yet another directory in between. Also removes some redundant cmake code

Test Plan: builds

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28833
2020-04-15 12:48:14 +02:00
Renamed from kcms/touchpad/src/kcm/touchpadconfigcontainer.cpp (Browse further)