fix: fix show tooltip under the version button because of small space

This commit is contained in:
Jonathan Rainville 2021-03-25 15:37:55 -04:00 committed by Iuri Matias
parent d3dbab11d2
commit e0b8a74e29
3 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Item {
name: qsTrId("version") name: qsTrId("version")
//% "Version: %1" //% "Version: %1"
description: qsTrId("version---1").arg("beta.7.rc2") description: qsTrId("version---1").arg("beta.7.rc2")
tooltipUnder: true
} }
StatusSectionDescItem { StatusSectionDescItem {

View File

@ -12,6 +12,7 @@ Rectangle {
color: Style.current.transparent color: Style.current.transparent
property var onClick: function() {} property var onClick: function() {}
property string textToCopy: "" property string textToCopy: ""
property bool tooltipUnder: false
Image { Image {
width: 20 width: 20
@ -61,6 +62,7 @@ Rectangle {
id: toolTip id: toolTip
//% "Copied!" //% "Copied!"
text: qsTrId("copied-") text: qsTrId("copied-")
orientation: tooltipUnder ? "bottom" : "top"
} }
Timer { Timer {

View File

@ -8,6 +8,7 @@ import "../../shared"
Item { Item {
property string name property string name
property string description property string description
property alias tooltipUnder: copyToClipboardBtn.tooltipUnder
id: root id: root
width: parent.width width: parent.width