From e8c169aace6b2c63520c8965986f03f11614ca5a Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 10 Feb 2021 08:45:56 -0400 Subject: [PATCH] fix: make the time not selectable --- .../Chat/ChatColumn/MessageComponents/ChatTime.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatTime.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatTime.qml index 158f823de1..5ab6b890f4 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatTime.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatTime.qml @@ -3,16 +3,14 @@ import "../../../../../shared" import "../../../../../shared/status" import "../../../../../imports" -StyledTextEdit { +StyledText { property bool formatDateTime: false id: chatTime visible: isMessage color: isImage ? Style.current.white : Style.current.darkGrey text: formatDateTime ? Utils.formatDateTime(timestamp, appSettings.locale) : Utils.formatTime(timestamp, appSettings.locale) font.pixelSize: Style.current.asideTextFontSize - readOnly: true - selectByMouse: true - + StatusToolTip { visible: hhandler.hovered text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(appSettings.locale))