2018-05-20 01:54:08 +02:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.1 as Controls
|
|
|
|
import org.kde.kirigami 2.4 as Kirigami
|
|
|
|
|
|
|
|
Controls.Dialog {
|
|
|
|
modal: true
|
|
|
|
focus: true
|
|
|
|
parent: applicationWindow().overlay
|
|
|
|
x: (parent.width - width) / 2
|
|
|
|
y: (parent.height - height) / 2
|
|
|
|
width: Math.min(parent.width, Kirigami.Units.gridUnit * 30)
|
2018-09-10 20:43:58 +02:00
|
|
|
|
|
|
|
function acceptOnReturn(event) {
|
|
|
|
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
|
|
|
this.accept()
|
|
|
|
}
|
|
|
|
}
|
2018-05-20 01:54:08 +02:00
|
|
|
}
|