fix: fix show tooltip under the version button because of small space
This commit is contained in:
parent
d3dbab11d2
commit
e0b8a74e29
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue