diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-10-14 16:00:17 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-10-14 16:00:17 +1100 |
| commit | 27953a89d1110d6cc82ff198e1c28f698104d554 (patch) | |
| tree | 69b302d1f8c0150c9a61e57dad9b0dd80ff11e48 /plugin/src/Caelestia/toaster.cpp | |
| parent | toasts: add toast for kb layout change (diff) | |
| download | caelestia-shell-27953a89d1110d6cc82ff198e1c28f698104d554.tar.gz caelestia-shell-27953a89d1110d6cc82ff198e1c28f698104d554.tar.bz2 caelestia-shell-27953a89d1110d6cc82ff198e1c28f698104d554.zip | |
internal: use QQmlListProperty
Fix lsp errors
Diffstat (limited to 'plugin/src/Caelestia/toaster.cpp')
| -rw-r--r-- | plugin/src/Caelestia/toaster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/toaster.cpp b/plugin/src/Caelestia/toaster.cpp index 4e2acd5..978805d 100644 --- a/plugin/src/Caelestia/toaster.cpp +++ b/plugin/src/Caelestia/toaster.cpp @@ -97,8 +97,8 @@ void Toast::unlock(QObject* sender) { Toaster::Toaster(QObject* parent) : QObject(parent) {} -QList<Toast*> Toaster::toasts() const { - return m_toasts; +QQmlListProperty<Toast> Toaster::toasts() { + return QQmlListProperty<Toast>(this, &m_toasts); } void Toaster::toast(const QString& title, const QString& message, const QString& icon, Toast::Type type, int timeout) { |