16 lines
386 B
QML
16 lines
386 B
QML
import QtQuick 2.0
|
|
import QtQuick.Controls 2.3
|
|
|
|
Dialog {
|
|
modal: true
|
|
|
|
x: Math.round((parent.width - width) / 2)
|
|
y: Math.round((parent.height - height) / 2)
|
|
|
|
onClosed: {
|
|
// We must force focus back to the last item. If we don't,
|
|
// gamepad and keyboard navigation will break after a
|
|
// dialog appears.
|
|
stackView.forceActiveFocus()
|
|
}
|
|
}
|