Add comment about anchors.centerIn

This commit is contained in:
Martchus 2018-12-15 23:44:34 +01:00
parent e5da308218
commit 2f603817f6
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Controls.Dialog {
modal: true
focus: true
parent: applicationWindow().overlay
//anchors.centerIn: parent // enable if requiring at least Qt 5.12 instead of setting x and y manually
x: (parent.width - width) / 2
y: (parent.height - height) / 2
width: Math.min(parent.width, Kirigami.Units.gridUnit * 30)