diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-03 02:09:36 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:15 +0100 |
commit | 993926e189e213e9bb809c458cf5599d3aea055d (patch) | |
tree | cd5f9fff8377d0967f3735f86ee38486ba054b0b /src | |
parent | 4f7a45a0a6b28255fb4c1ccbb53fcf8a6958843a (diff) |
Make user clickable and improve button cursor look
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline2/TimelineModel.cpp | 7 | ||||
-rw-r--r-- | src/timeline2/TimelineModel.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/timeline2/TimelineModel.cpp b/src/timeline2/TimelineModel.cpp index 2428ddb6..fa87ec26 100644 --- a/src/timeline2/TimelineModel.cpp +++ b/src/timeline2/TimelineModel.cpp @@ -713,6 +713,13 @@ TimelineModel::viewRawMessage(QString id) const Q_UNUSED(dialog); } +void + +TimelineModel::openUserProfile(QString userid) const +{ + MainWindow::instance()->openUserProfile(userid, room_id_); +} + DecryptionResult TimelineModel::decryptEvent(const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &e) const { diff --git a/src/timeline2/TimelineModel.h b/src/timeline2/TimelineModel.h index 6a1f3438..1ed6e72c 100644 --- a/src/timeline2/TimelineModel.h +++ b/src/timeline2/TimelineModel.h @@ -152,6 +152,7 @@ public: Q_INVOKABLE QString escapeEmoji(QString str) const; Q_INVOKABLE void viewRawMessage(QString id) const; + Q_INVOKABLE void openUserProfile(QString userid) const; Q_INVOKABLE void replyAction(QString id); Q_INVOKABLE void readReceiptsAction(QString id) const; Q_INVOKABLE void redactEvent(QString id); |