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/toaster.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugin/src/Caelestia/toaster.hpp') diff --git a/plugin/src/Caelestia/toaster.hpp b/plugin/src/Caelestia/toaster.hpp index 0197aa1..1f61734 100644 --- a/plugin/src/Caelestia/toaster.hpp +++ b/plugin/src/Caelestia/toaster.hpp @@ -2,6 +2,7 @@ #include #include +#include #include namespace caelestia { @@ -61,12 +62,12 @@ class Toaster : public QObject { QML_ELEMENT QML_SINGLETON - Q_PROPERTY(QList toasts READ toasts NOTIFY toastsChanged) + Q_PROPERTY(QQmlListProperty toasts READ toasts NOTIFY toastsChanged) public: explicit Toaster(QObject* parent = nullptr); - [[nodiscard]] QList toasts() const; + [[nodiscard]] QQmlListProperty toasts(); Q_INVOKABLE void toast(const QString& title, const QString& message, const QString& icon = QString(), caelestia::Toast::Type type = Toast::Type::Info, int timeout = 5000); -- cgit v1.2.3-freya