diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-19 01:38:40 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-19 01:38:40 +0200 |
commit | ce1a64bc19ffc21e115bdf2587bb053d7a417f3e (patch) | |
tree | a195d127228218772a535448de642f0bb7b6d053 /src/PowerlevelsEditModels.h | |
parent | Remove explicit link styling (diff) | |
download | nheko-ce1a64bc19ffc21e115bdf2587bb053d7a417f3e.tar.xz |
Move to automatic type registration
Diffstat (limited to 'src/PowerlevelsEditModels.h')
-rw-r--r-- | src/PowerlevelsEditModels.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PowerlevelsEditModels.h b/src/PowerlevelsEditModels.h index fe9735d3..c9d262d8 100644 --- a/src/PowerlevelsEditModels.h +++ b/src/PowerlevelsEditModels.h @@ -5,6 +5,7 @@ #pragma once #include <QAbstractListModel> +#include <QQmlEngine> #include <QSortFilterProxyModel> #include <mtx/events/power_levels.hpp> @@ -196,6 +197,9 @@ class PowerlevelEditingModels final : public QObject { Q_OBJECT + QML_ELEMENT + QML_UNCREATABLE("Please use editPowerlevels to create the models") + Q_PROPERTY(PowerlevelsUserListModel *users READ users CONSTANT) Q_PROPERTY(PowerlevelsTypeListModel *types READ types CONSTANT) Q_PROPERTY(PowerlevelsSpacesListModel *spaces READ spaces CONSTANT) |