mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-17 05:40:10 +00:00
Clean up code for new QC2 dialogs and remove some unused imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user