|
|
|
@ -1,5 +1,4 @@ |
|
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors |
|
|
|
|
// |
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later |
|
|
|
|
|
|
|
|
|
import "./delegates" |
|
|
|
@ -232,6 +231,13 @@ ScrollView { |
|
|
|
|
displayName: modelData ? modelData.userName : "" |
|
|
|
|
userid: modelData ? modelData.userId : "" |
|
|
|
|
onClicked: chat.model.openUserProfile(modelData.userId) |
|
|
|
|
ToolTip.visible: avatarHover.hovered |
|
|
|
|
ToolTip.text: userid |
|
|
|
|
|
|
|
|
|
HoverHandler { |
|
|
|
|
id: avatarHover |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
@ -247,10 +253,10 @@ ScrollView { |
|
|
|
|
text: modelData ? TimelineManager.escapeEmoji(modelData.userName) : "" |
|
|
|
|
color: TimelineManager.userColor(modelData ? modelData.userId : "", colors.window) |
|
|
|
|
textFormat: Text.RichText |
|
|
|
|
ToolTip.visible: displayNameHover.hovered |
|
|
|
|
ToolTip.text: modelData ? modelData.userId : "" |
|
|
|
|
|
|
|
|
|
TapHandler { |
|
|
|
|
//cursorShape: Qt.PointingHandCursor |
|
|
|
|
|
|
|
|
|
onSingleTapped: chat.model.openUserProfile(modelData.userId) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -259,6 +265,10 @@ ScrollView { |
|
|
|
|
cursorShape: Qt.PointingHandCursor |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
HoverHandler { |
|
|
|
|
id: displayNameHover |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|