[plasma/kwin] src/backends/libinput: backends/libinput: use quint32 for D-Bus rotation properties

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit fc307b34f16d9c70401b67bb822186fb8f82313f by Vlad Zahorodnii, on behalf of Li Kai.
Committed on 30/07/2026 at 10:23.
Pushed by vladz into branch 'master'.

backends/libinput: use quint32 for D-Bus rotation properties

M  +3    -3    src/backends/libinput/device.cpp
M  +5    -5    src/backends/libinput/device.h

https://invent.kde.org/plasma/kwin/-/commit/fc307b34f16d9c70401b67bb822186fb8f82313f

diff --git a/src/backends/libinput/device.cpp b/src/backends/libinput/device.cpp
index 3bb29ae2aba..3e0b2e9f58e 100644
--- a/src/backends/libinput/device.cpp
+++ b/src/backends/libinput/device.cpp
@@ -1183,12 +1183,12 @@ bool Device::supportsRotation() const
     return libinput_device_config_rotation_is_available(m_device);
 }
 
-uint32_t Device::rotation() const
+quint32 Device::rotation() const
 {
     return libinput_device_config_rotation_get_angle(m_device);
 }
 
-void Device::setRotation(uint32_t degrees_cw)
+void Device::setRotation(quint32 degrees_cw)
 {
     if (rotation() != degrees_cw && libinput_device_config_rotation_set_angle(m_device, degrees_cw) == LIBINPUT_CONFIG_STATUS_SUCCESS) {
         writeEntry(ConfigKey::Rotation, degrees_cw);
@@ -1196,7 +1196,7 @@ void Device::setRotation(uint32_t degrees_cw)
     }
 }
 
-uint32_t Device::defaultRotation() const
+quint32 Device::defaultRotation() const
 {
     return libinput_device_config_rotation_get_default_angle(m_device);
 }
diff --git a/src/backends/libinput/device.h b/src/backends/libinput/device.h
index 4905480ac54..baf3a648760 100644
--- a/src/backends/libinput/device.h
+++ b/src/backends/libinput/device.h
@@ -191,8 +191,8 @@ class KWIN_EXPORT Device : public InputDevice
     Q_PROPERTY(bool tabletToolIsRelative READ tabletToolIsRelative WRITE setTabletToolRelative NOTIFY tabletToolRelativeChanged)
     Q_PROPERTY(bool supportsRotation READ supportsRotation CONSTANT)
     /// rotation angle, as 0 to 360 degrees
-    Q_PROPERTY(uint32_t rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
-    Q_PROPERTY(uint32_t defaultRotation READ defaultRotation CONSTANT)
+    Q_PROPERTY(quint32 rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
+    Q_PROPERTY(quint32 defaultRotation READ defaultRotation CONSTANT)
     Q_PROPERTY(bool isVirtual READ isVirtual CONSTANT)
 
 public:
@@ -778,9 +778,9 @@ public:
     QList<unsigned int> currentModes() const;
 
     bool supportsRotation() const;
-    uint32_t rotation() const;
-    void setRotation(uint32_t degrees_cw);
-    uint32_t defaultRotation() const;
+    quint32 rotation() const;
+    void setRotation(quint32 degrees_cw);
+    quint32 defaultRotation() const;
     bool isVirtual() const;
 
     /**
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.