Mark message currently being edited

This commit is contained in:
Nicolas Werner 2021-03-05 17:22:42 +01:00
parent e1c96569c1
commit 2685eec6c7
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -86,7 +86,7 @@ Item {
}
Image {
visible: model.isEdited
visible: model.isEdited || model.id == chat.model.edit
Layout.alignment: Qt.AlignRight | Qt.AlignTop
Layout.preferredHeight: 16
Layout.preferredWidth: 16
@ -94,7 +94,7 @@ Item {
width: 16
sourceSize.width: 16
sourceSize.height: 16
source: "image://colorimage/:/icons/icons/ui/edit.png?" + colors.buttonText
source: "image://colorimage/:/icons/icons/ui/edit.png?" + ((model.id == chat.model.edit) ? colors.highlight : colors.buttonText)
ToolTip.visible: editHovered.hovered
ToolTip.text: qsTr("Edited")