@@ -7,11 +7,12 @@ ApplicationWindow {
7
7
8
8
property var windowWidth: Math .round (fontMetrics .height * 32.2856 )
9
9
property var windowHeight: Math .round (fontMetrics .height * 13.9528 )
10
+ property var heightSafeMargin: 15
10
11
11
- maximumWidth : windowWidth
12
- maximumHeight : windowHeight
13
- minimumWidth : windowWidth
14
- minimumHeight : windowHeight
12
+ minimumWidth : Math . max ( windowWidth, mainLayout . Layout . minimumWidth ) + mainLayout . anchors . margins * 2
13
+ minimumHeight : Math . max ( windowHeight, mainLayout . Layout . minimumHeight ) + mainLayout . anchors . margins * 2 + heightSafeMargin
14
+ maximumWidth : minimumWidth
15
+ maximumHeight : minimumHeight
15
16
visible: true
16
17
onClosing: {
17
18
hpa .setResult (" fail" );
@@ -28,6 +29,8 @@ ApplicationWindow {
28
29
}
29
30
30
31
Item {
32
+ id: mainLayout
33
+
31
34
anchors .fill : parent
32
35
Keys .onEscapePressed : (e ) => {
33
36
hpa .setResult (" fail" );
@@ -46,6 +49,9 @@ ApplicationWindow {
46
49
font .pointSize : Math .round (fontMetrics .height * 1.05 )
47
50
text: " Authenticating for " + hpa .getUser ()
48
51
Layout .alignment : Qt .AlignHCenter
52
+ Layout .maximumWidth : parent .width
53
+ elide: Text .ElideRight
54
+ wrapMode: Text .WordWrap
49
55
}
50
56
51
57
HSeparator {
@@ -56,6 +62,9 @@ ApplicationWindow {
56
62
Label {
57
63
color: system .windowText
58
64
text: hpa .getMessage ()
65
+ Layout .maximumWidth : parent .width
66
+ elide: Text .ElideRight
67
+ wrapMode: Text .WordWrap
59
68
}
60
69
61
70
TextField {
0 commit comments