rapair to pop up
This commit is contained in:
@@ -55,4 +55,15 @@ QtObject {
|
|||||||
// Tray
|
// Tray
|
||||||
readonly property int reload_interval: 10000
|
readonly property int reload_interval: 10000
|
||||||
readonly property int fast_reload_interval: 1000
|
readonly property int fast_reload_interval: 1000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function maxTextWidth(maxNum, texts) {
|
||||||
|
let maxWidth = 0;
|
||||||
|
|
||||||
|
for (let i = 0; i < Math.min(maxNum, texts.length); i++)
|
||||||
|
maxWidth = Math.max(maxWidth, texts[i].width);
|
||||||
|
|
||||||
|
return maxWidth;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,8 @@ MouseArea {
|
|||||||
anchorItem: networkButton
|
anchorItem: networkButton
|
||||||
anchorHovered: networkButton.containsMouse
|
anchorHovered: networkButton.containsMouse
|
||||||
property int count: 17
|
property int count: 17
|
||||||
implicitWidth: Math.max(text1.width, text2.width, text3.width, text4.width, text5.width, text6.width) + (Config.spacing_fun(networkButton.height) * 3)
|
property var texts: [text1, text2, text3, text4, text5, text6, text7, text8, text9, text10, text11, text12, text13, text14, text15, text16, text17]
|
||||||
|
implicitWidth: Config.maxTextWidth(count, texts) + (Config.spacing_fun(networkButton.height) * 3)
|
||||||
implicitHeight: text1.height*count+(Config.spacing_fun(networkButton.height) * (count + 2))
|
implicitHeight: text1.height*count+(Config.spacing_fun(networkButton.height) * (count + 2))
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|||||||
Reference in New Issue
Block a user