status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/UsernameLabel.qml

25 lines
605 B
QML
Raw Normal View History

import QtQuick 2.3
import "../../../../../shared"
import "../../../../../imports"
StyledTextEdit {
id: chatName
2020-07-20 17:34:20 +00:00
visible: isMessage && authorCurrentMsg != authorPrevMsg
height: this.visible ? 18 : 0
2020-07-16 15:20:29 +00:00
//% "You"
text: !isCurrentUser ? userName : qsTrId("You")
font.bold: true
font.pixelSize: 14
readOnly: true
wrapMode: Text.WordWrap
selectByMouse: true
MouseArea {
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton
anchors.fill: parent
onClicked: {
clickMessage(true)
}
}
}