diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-02 18:01:18 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-02 18:06:56 +0200 |
commit | ab0baf5d9eb3319f8d3da15bd966ab8ab2810fce (patch) | |
tree | cba4d1153ec3e8573e8a6821d3e6b07d771fdccd /src/ui | |
parent | Fix crash when you have no rooms and open the global user profile (diff) | |
download | nheko-ab0baf5d9eb3319f8d3da15bd966ab8ab2810fce.tar.xz |
Only show actions, when you have permissions to do them
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/UserProfile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h index 7c9c7495..aa7266ab 100644 --- a/src/ui/UserProfile.h +++ b/src/ui/UserProfile.h @@ -95,6 +95,7 @@ class UserProfile : public QObject Q_PROPERTY( bool userVerificationEnabled READ userVerificationEnabled NOTIFY userStatusChanged) Q_PROPERTY(bool isSelf READ isSelf CONSTANT) + Q_PROPERTY(TimelineModel *room READ room CONSTANT) public: UserProfile(QString roomid, QString userid, @@ -111,6 +112,7 @@ public: bool userVerificationEnabled() const; bool isSelf() const; bool isLoading() const; + TimelineModel *room() const { return model; } Q_INVOKABLE void verify(QString device = ""); Q_INVOKABLE void unverify(QString device = ""); |