[plasma/plasma-desktop] kcms/mouse: kcms/mouse: Drop isAnonymousInputDevice

Nicolas Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4aab3477fe108a2dd112a9f5553c3771bb4acf9f by Nicolas Fella.
Committed on 16/07/2026 at 14:52.
Pushed by nicolasfella into branch 'master'.

kcms/mouse: Drop isAnonymousInputDevice

It's always false on Wayland

M  +0    -6    kcms/mouse/inputbackend.h
M  +0    -6    kcms/mouse/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/4aab3477fe108a2dd112a9f5553c3771bb4acf9f

diff --git a/kcms/mouse/inputbackend.h b/kcms/mouse/inputbackend.h
index 2a873b148c..4cd0b23d5f 100644
--- a/kcms/mouse/inputbackend.h
+++ b/kcms/mouse/inputbackend.h
@@ -18,7 +18,6 @@ class InputBackend : public QObject
     Q_OBJECT
 
     Q_PROPERTY(QList<InputDevice *> inputDevices READ inputDevices NOTIFY inputDevicesChanged FINAL)
-    Q_PROPERTY(bool isAnonymousInputDevice READ isAnonymousInputDevice CONSTANT FINAL)
     Q_PROPERTY(QVariantMap buttonMapping READ buttonMapping WRITE setButtonMapping NOTIFY buttonMappingChanged FINAL)
     Q_PROPERTY(int buttonMappingCount READ buttonMappingCount NOTIFY buttonMappingChanged STORED false FINAL)
 
@@ -59,11 +58,6 @@ public:
         return 0;
     }
 
-    virtual bool isAnonymousInputDevice() const
-    {
-        return false;
-    }
-
     virtual QList<InputDevice *> inputDevices() const
     {
         return {};
diff --git a/kcms/mouse/ui/main.qml b/kcms/mouse/ui/main.qml
index 4178e3b177..7b61347305 100644
--- a/kcms/mouse/ui/main.qml
+++ b/kcms/mouse/ui/main.qml
@@ -37,9 +37,6 @@ KCMUtils.SimpleKCM {
         text: i18ndc("kcmmouse", "@action:button", "Configure Extra Buttons…")
 
         visible: {
-            if (root.backend.isAnonymousInputDevice) {
-                return false;
-            }
             return root.backend.buttonMappingCount > 0
                 || root.backend.inputDevices.some(root.supportsExtraButtons);
         }
@@ -61,7 +58,6 @@ KCMUtils.SimpleKCM {
         Kirigami.FormGroup {
             // Device
             Kirigami.FormEntry {
-                visible: !root.backend.isAnonymousInputDevice
                 enabled: deviceSelector.count > 1
                 contentItem: QQC2.ComboBox {
                     id: deviceSelector
@@ -84,7 +80,6 @@ KCMUtils.SimpleKCM {
 
             // General
             Kirigami.FormEntry {
-                visible: !root.backend.isAnonymousInputDevice
                 enabled: root.device?.supportsDisableEvents ?? false
                 contentItem: QQC2.CheckBox {
                     id: deviceEnabled
@@ -245,7 +240,6 @@ KCMUtils.SimpleKCM {
             Kirigami.FormSeparator {}
 
             Kirigami.FormEntry {
-                visible: !root.backend.isAnonymousInputDevice
                 // Scroll Speed aka scroll Factor
                 contentItem: GridLayout {
                     Kirigami.FormData.label: i18ndc("kcmmouse", "@label:slider and @label:spinbox", "Scrolling speed:")
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.