Clean up code for new QC2 dialogs and remove some unused imports
This commit is contained in:
parent
73604020d7
commit
c724902508
5 changed files with 11 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue