Hide menu button if image is hovered

This commit is contained in:
Julien Wadel 2022-08-22 14:12:49 +02:00
parent d3d7c667b9
commit 44c8cd6d1f
3 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,7 @@ Column{
property string lastTextSelected
property alias textColor: message.color
property alias textFont: message.font
property alias fileIsHovering: fileMessage.isHovering
signal rightClicked()
signal conferenceIcsCopied()

View file

@ -26,6 +26,7 @@ Row {
property bool isAnimatedImage : mainRow.contentModel && mainRow.contentModel.wasDownloaded && UtilsCpp.isAnimatedImage(mainRow.contentModel.filePath)
property bool haveThumbnail: mainRow.contentModel && mainRow.contentModel.thumbnail
property bool isHovering: thumbnailProvider.state == 'hovered'
signal copyAllDone()
signal copySelectionDone()

View file

@ -115,6 +115,7 @@ Item {
onLastTextSelectedChanged: container.lastTextSelected= lastTextSelected
onRightClicked: chatMenu.open()
onConferenceIcsCopied: container.conferenceIcsCopied()
onFileIsHoveringChanged: menuButton.visible = !fileIsHovering
Rectangle{
anchors.left: parent.left
anchors.right: parent.right
@ -177,6 +178,7 @@ Item {
}
ActionButton {
id: menuButton
anchors.left:rectangle.right
anchors.leftMargin: -10
anchors.top:rectangle.top