From 0d2e15cea4d3d892d068a42f165badd97a53845a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20B=C3=BCchi?= Date: Sun, 6 Jul 2025 00:27:02 +0200 Subject: [PATCH] taskswitcher: add QML type registration to taskmodel --- kwin/mobiletaskswitcher/plugin/taskmodel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kwin/mobiletaskswitcher/plugin/taskmodel.h b/kwin/mobiletaskswitcher/plugin/taskmodel.h index 5e302b40..1b43f53c 100644 --- a/kwin/mobiletaskswitcher/plugin/taskmodel.h +++ b/kwin/mobiletaskswitcher/plugin/taskmodel.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace KWin { @@ -17,6 +18,8 @@ namespace KWin class TaskModel : public QAbstractListModel { Q_OBJECT + QML_ELEMENT + QML_UNCREATABLE("") public: enum Roles { @@ -46,4 +49,4 @@ private: QList> m_windows; }; -}; // namespace KWin \ No newline at end of file +}; // namespace KWin