Qt 6.2 workaround added - once

https://github.com/uwerat/qskinny/issues/131 is in place we hopefully
can remove it again
This commit is contained in:
Uwe Rathmann 2021-10-07 12:29:42 +02:00
parent 18dfd907fe
commit c6fd012fa0
6 changed files with 17 additions and 8 deletions

View File

@ -23,7 +23,8 @@ Qsk.Window
orientation: Qt.Horizontal orientation: Qt.Horizontal
dimension: 3 dimension: 3
margins: 10 //margins: 10 // only possible with Qt >= 6.2
margins { left: 10; top: 10; right: 10; bottom: 10 }
spacing: 10 spacing: 10
TestButton TestButton

View File

@ -38,7 +38,8 @@ Main
orientation: Qt.Horizontal orientation: Qt.Horizontal
spacing: 20 spacing: 20
margins: 8 // so that we can see the focus frame //margins: 8 // so that we can see the focus frame
margins { left: 8; top: 8; right: 8; bottom: 8 }
SimpleListBox SimpleListBox
{ {
@ -53,7 +54,8 @@ Main
LinearBox LinearBox
{ {
margins: 10 // margins: 10
margins { left: 10; top: 10; right: 10; bottom: 10 }
orientation: Qt.Vertical orientation: Qt.Vertical
defaultAlignment: Qt.AlignCenter defaultAlignment: Qt.AlignCenter
extraSpacingAt: Qt.BottomEdge extraSpacingAt: Qt.BottomEdge
@ -86,7 +88,8 @@ Main
dimension: 3 dimension: 3
spacing: 20 spacing: 20
margins: 20 //margins: 20
margins { left: 20; top: 20; right: 20; bottom: 20 }
sizePolicy sizePolicy
{ {

View File

@ -15,7 +15,8 @@ Qsk.Window
orientation: Qt.Horizontal orientation: Qt.Horizontal
dimension: 6 dimension: 6
margins: 10 //margins: 10 // only possible with Qt >= 6.2
margins { left: 10; top: 10; right: 10; bottom: 10 }
spacing: 10 spacing: 10
// panel // panel

View File

@ -15,7 +15,8 @@ Qsk.Window
orientation: Qt.Horizontal orientation: Qt.Horizontal
dimension: 3 dimension: 3
margins: 10 //margins: 10
margins { left: 10; top: 10; right: 10; bottom: 10 }
spacing: 20 spacing: 20
Repeater Repeater

View File

@ -4,7 +4,9 @@ import Test 1.0
GridBox GridBox
{ {
margins: 10 //margins: 10 // only possible with Qt >= 6.2
margins { left: 10; top: 10; right: 10; bottom: 10 }
autoFillBackground : true autoFillBackground : true
background background

View File

@ -16,7 +16,8 @@ Qsk.Window
orientation: Qt.Horizontal orientation: Qt.Horizontal
dimension: 2 dimension: 2
margins: 10 margins { left: 10; top: 10; right: 10; bottom: 10 }
//margins: 10
Qsk.PushButton Qsk.PushButton
{ {