taskswitcher: add QML type registration to taskmodel

This commit is contained in:
Luis Büchi 2025-07-06 00:27:02 +02:00
parent 78a7e641e2
commit 0d2e15cea4

View file

@ -10,6 +10,7 @@
#include <QHash> #include <QHash>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
#include <QVariant> #include <QVariant>
#include <qqmlregistration.h>
namespace KWin namespace KWin
{ {
@ -17,6 +18,8 @@ namespace KWin
class TaskModel : public QAbstractListModel class TaskModel : public QAbstractListModel
{ {
Q_OBJECT Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
public: public:
enum Roles { enum Roles {