qml: use font metrics for popup size

This commit is contained in:
Vaxry 2024-10-16 15:53:52 +01:00
parent 12f06d8037
commit 14598c27ac
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ import QtQuick.Layouts
ApplicationWindow {
id: window
property var windowWidth: 550
property var windowHeight: 240
property var windowWidth: Math.round(fontMetrics.height * 39.2856)
property var windowHeight: Math.round(fontMetrics.height * 17.1428)
maximumWidth: windowWidth
maximumHeight: windowHeight