rapair to pop up

This commit is contained in:
Hannes
2026-06-16 19:09:09 +02:00
parent 5df0534c78
commit 3c41176933
2 changed files with 13 additions and 1 deletions
+11
View File
@@ -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;
}
} }
+2 -1
View File
@@ -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 {