From 2f603817f607f17defa54dce70049c7e91e3b4d7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 15 Dec 2018 23:44:34 +0100 Subject: [PATCH] Add comment about anchors.centerIn --- qml/BasicDialog.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/qml/BasicDialog.qml b/qml/BasicDialog.qml index bdb1d7b..b3b4e6d 100644 --- a/qml/BasicDialog.qml +++ b/qml/BasicDialog.qml @@ -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)