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")
//% "Version: %1"
description: qsTrId("version---1").arg("beta.7.rc2")
tooltipUnder: true
}
StatusSectionDescItem {

View File

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

View File

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