Allow editing aliases

This commit is contained in:
Nicolas Werner 2022-07-08 17:28:28 +02:00
parent 42b53817e0
commit 931855441a
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
13 changed files with 643 additions and 9 deletions

View file

@ -10,6 +10,7 @@
#include <mtx/requests.hpp>
#include <mtx/responses/login.hpp>
#include "AliasEditModel.h"
#include "BlurhashProvider.h"
#include "Cache.h"
#include "Cache_p.h"
@ -179,6 +180,13 @@ MainWindow::registerQmlTypes()
qmlRegisterType<LoginPage>("im.nheko", 1, 0, "Login");
qmlRegisterType<RegisterPage>("im.nheko", 1, 0, "Registration");
qmlRegisterType<HiddenEvents>("im.nheko", 1, 0, "HiddenEvents");
qmlRegisterUncreatableType<AliasEditingModel>(
"im.nheko",
1,
0,
"AliasEditingModel",
QStringLiteral("Please use editAliases to create the models"));
qmlRegisterUncreatableType<PowerlevelEditingModels>(
"im.nheko",
1,