Skip to content

Commit 8658fe8

Browse files
committed
qml: allow to specify button and detailItem margin
1 parent 7cd989d commit 8658fe8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/qml/controls/InformationPage.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ Page {
1616
property alias navMiddleDetail: navbar.middleDetail
1717
property alias navRightDetail: navbar.rightDetail
1818
property string buttonText: ""
19+
property int buttonMargin: 40
1920
property bool bannerActive: true
2021
property bool detailActive: false
22+
property int detailTopMargin: 30
2123
property bool lastPage: false
2224
property bool bold: false
2325
property bool center: true
@@ -83,7 +85,7 @@ Page {
8385
visible: active
8486
Layout.fillWidth: true
8587
Layout.alignment: Qt.AlignCenter
86-
Layout.topMargin: 30
88+
Layout.topMargin: root.detailTopMargin
8789
Layout.leftMargin: 20
8890
Layout.rightMargin: 20
8991
Layout.maximumWidth: detailMaximumWidth
@@ -95,7 +97,7 @@ Page {
9597
visible: root.buttonText.length > 0
9698
enabled: visible
9799
width: Math.min(300, parent.width - 2 * anchors.leftMargin)
98-
anchors.topMargin: 40
100+
anchors.topMargin: root.buttonMargin
99101
anchors.bottomMargin: 60
100102
anchors.leftMargin: 20
101103
anchors.rightMargin: 20

0 commit comments

Comments
 (0)