From 2120e18729d9dd04ae607f9def88cca52ceccd8d Mon Sep 17 00:00:00 2001 From: David Redondo Date: Tue, 26 Mar 2024 11:41:14 +0100 Subject: [PATCH] Make InputRedirection::addInputBackend public This allows plugins to register additional input backends. --- src/input.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/input.h b/src/input.h index 44fa99b45f..f584ea169c 100644 --- a/src/input.h +++ b/src/input.h @@ -250,6 +250,10 @@ public: void enableTouchpads(); void disableTouchpads(); + void addInputDevice(InputDevice *device); + void removeInputDevice(InputDevice *device); + void addInputBackend(std::unique_ptr &&inputBackend); + Q_SIGNALS: void deviceAdded(InputDevice *device); void deviceRemoved(InputDevice *device); @@ -297,10 +301,6 @@ Q_SIGNALS: void hasTouchChanged(bool set); void hasTabletModeSwitchChanged(bool set); -public Q_SLOTS: - void addInputDevice(InputDevice *device); - void removeInputDevice(InputDevice *device); - private Q_SLOTS: void handleInputConfigChanged(const KConfigGroup &group); void updateScreens(); @@ -313,7 +313,6 @@ private: void installInputEventFilter(InputEventFilter *filter); void updateLeds(LEDs leds); void updateAvailableInputDevices(); - void addInputBackend(std::unique_ptr &&inputBackend); KeyboardInputRedirection *m_keyboard; PointerInputRedirection *m_pointer; TabletInputRedirection *m_tablet;