summary refs log tree commit diff
path: root/resources/qml/TimelineView.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-11-03 02:09:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:15 +0100
commit993926e189e213e9bb809c458cf5599d3aea055d (patch)
treecd5f9fff8377d0967f3735f86ee38486ba054b0b /resources/qml/TimelineView.qml
parentImprove avatar look and layouting (diff)
downloadnheko-993926e189e213e9bb809c458cf5599d3aea055d.tar.xz
Make user clickable and improve button cursor look
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r--resources/qml/TimelineView.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 8f64637e..c2f6f9b9 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -135,6 +135,12 @@ Rectangle {
 						height: avatarSize
 						url: chat.model.avatarUrl(section.split(" ")[0]).replace("mxc://", "image://MxcImage/")
 						displayName: chat.model.displayName(section.split(" ")[0])
+
+						MouseArea {
+							anchors.fill: parent
+							onClicked: chat.model.openUserProfile(section.split(" ")[0])
+							cursorShape: Qt.PointingHandCursor
+						}
 					}
 
 					Text { 
@@ -142,6 +148,12 @@ Rectangle {
 						text: chat.model.escapeEmoji(chat.model.displayName(section.split(" ")[0]))
 						color: chat.model.userColor(section.split(" ")[0], colors.window)
 						textFormat: Text.RichText
+
+						MouseArea {
+							anchors.fill: parent
+							onClicked: chat.model.openUserProfile(section.split(" ")[0])
+							cursorShape: Qt.PointingHandCursor
+						}
 					}
 				}
 			}