status-desktop/ui/imports/shared/controls/chat/Retry.qml

25 lines
560 B
QML
Raw Normal View History

2020-07-14 15:35:21 +00:00
import QtQuick 2.3
import shared 1.0
import shared.panels 1.0
import utils 1.0
2020-07-14 15:35:21 +00:00
StyledText {
id: retryLbl
color: Style.current.red
text: qsTr("Resend")
font.pixelSize: Style.current.tertiaryTextFontSize
visible: isCurrentUser && (timeout || isExpired)
property bool isCurrentUser: false
property bool isExpired: false
property bool timeout: false
signal clicked()
2020-07-14 15:35:21 +00:00
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
retryLbl.clicked();
2020-07-14 15:35:21 +00:00
}
}
}