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