mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
taskswitcher: add QML type registration to taskmodel
This commit is contained in:
parent
78a7e641e2
commit
0d2e15cea4
1 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
@ -46,4 +49,4 @@ private:
|
||||||
QList<std::pair<Window *, qint64>> m_windows;
|
QList<std::pair<Window *, qint64>> m_windows;
|
||||||
};
|
};
|
||||||
|
|
||||||
}; // namespace KWin
|
}; // namespace KWin
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue