From 27953a89d1110d6cc82ff198e1c28f698104d554 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 14 Oct 2025 16:00:17 +1100 Subject: internal: use QQmlListProperty Fix lsp errors --- plugin/src/Caelestia/Internal/hyprdevices.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugin/src/Caelestia/Internal/hyprdevices.hpp') diff --git a/plugin/src/Caelestia/Internal/hyprdevices.hpp b/plugin/src/Caelestia/Internal/hyprdevices.hpp index e10df46..da18063 100644 --- a/plugin/src/Caelestia/Internal/hyprdevices.hpp +++ b/plugin/src/Caelestia/Internal/hyprdevices.hpp @@ -3,6 +3,7 @@ #include #include #include +#include namespace caelestia::internal::hypr { @@ -53,12 +54,13 @@ class HyprDevices : public QObject { QML_ELEMENT QML_UNCREATABLE("HyprDevices instances can only be retrieved from a HyprExtras") - Q_PROPERTY(QList keyboards READ keyboards NOTIFY keyboardsChanged) + Q_PROPERTY( + QQmlListProperty keyboards READ keyboards NOTIFY keyboardsChanged) public: explicit HyprDevices(QObject* parent = nullptr); - [[nodiscard]] QList keyboards() const; + [[nodiscard]] QQmlListProperty keyboards(); bool updateLastIpcObject(QJsonObject object); -- cgit v1.2.3-freya