Alexandra Betouni c0450f0580 refactoring (desktop/chat) Message component
Moved Message component & dependencies  to shared
for usage import shared.views.chat 1.0 and accordingly
import shared.controls/panels.chat 1.0

Closes #3927
2021-11-24 13:15:15 +01:00

26 lines
587 B
QML

import QtQuick 2.3
import shared 1.0
import shared.panels 1.0
import utils 1.0
StyledText {
id: retryLbl
color: Style.current.red
//% "Resend"
text: qsTrId("resend-message")
font.pixelSize: Style.current.tertiaryTextFontSize
visible: isCurrentUser && (timeout || isExpired)
property bool isCurrentUser: false
property bool isExpired: false
property bool timeout: false
signal clicked()
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
retryLbl.clicked();
}
}
}