diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-05-27 16:31:54 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-05-27 17:01:58 +0200 |
commit | 6c6d43691d98aa02513350b52fe736fff6d6071d (patch) | |
tree | 6155225e4005f22c2a613a77912227b05fb48ff7 /src/MainWindow.cpp | |
parent | ff6e4826e42dadc418e77e6d7ee02481cc6a4008 (diff) |
Add basic powerlevel editor
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r-- | src/MainWindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 6cae64b2..c700294c 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -29,6 +29,7 @@ #include "MatrixClient.h" #include "MemberList.h" #include "MxcImageProvider.h" +#include "PowerlevelsEditModels.h" #include "ReadReceiptsModel.h" #include "RegisterPage.h" #include "RoomDirectoryModel.h" @@ -174,6 +175,12 @@ MainWindow::registerQmlTypes() qmlRegisterType<LoginPage>("im.nheko", 1, 0, "Login"); qmlRegisterType<RegisterPage>("im.nheko", 1, 0, "Registration"); qmlRegisterType<HiddenEvents>("im.nheko", 1, 0, "HiddenEvents"); + qmlRegisterUncreatableType<PowerlevelEditingModels>( + "im.nheko", + 1, + 0, + "PowerlevelEditingModels", + QStringLiteral("Please use editPowerlevels to create the models")); qmlRegisterUncreatableType<DeviceVerificationFlow>( "im.nheko", 1, |