Clean up code for new QC2 dialogs and remove some unused imports

This commit is contained in:
Cameron Gutman 2019-03-31 17:44:19 -07:00
commit c724902508
5 changed files with 11 additions and 36 deletions

View file

@ -4,8 +4,10 @@ import QtQuick.Controls 2.2
Dialog {
property Item originalFocusItem
x: Math.round((window.width - width) / 2)
y: Math.round((window.height - height) / 2)
parent: overlay
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
onAboutToShow: {
originalFocusItem = window.activeFocusItem