summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-07-08 17:28:28 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-07-08 17:28:28 +0200
commit931855441a12b328afc0aecc1464af927199808b (patch)
tree38248e3f7eb1790e9f8bb7aaefb88c4584466808 /src/ui
parentFix users with @room in the name pinging the whole room when replied to (diff)
downloadnheko-931855441a12b328afc0aecc1464af927199808b.tar.xz
Allow editing aliases
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/NhekoGlobalObject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h

index bd141f35..f9de489d 100644 --- a/src/ui/NhekoGlobalObject.h +++ b/src/ui/NhekoGlobalObject.h
@@ -9,6 +9,7 @@ #include <QObject> #include <QPalette> +#include "AliasEditModel.h" #include "PowerlevelsEditModels.h" #include "Theme.h" #include "UserProfile.h" @@ -59,6 +60,10 @@ public: { return new PowerlevelEditingModels(room_id_); } + Q_INVOKABLE AliasEditingModel *editAliases(QString room_id_) const + { + return new AliasEditingModel(room_id_.toStdString()); + } public slots: void updateUserProfile();