PopupWithQuestion.qml fix
This commit is contained in:
parent
17fb2a98d6
commit
3e0085b4a4
1 changed files with 8 additions and 3 deletions
|
@ -13,12 +13,18 @@ Popup {
|
||||||
|
|
||||||
anchors.centerIn: Overlay.overlay
|
anchors.centerIn: Overlay.overlay
|
||||||
modal: true
|
modal: true
|
||||||
closePolicy: Popup.NoAutoClose
|
closePolicy: Popup.CloseOnEscape
|
||||||
|
|
||||||
width: parent.width - 20
|
width: parent.width - 20
|
||||||
|
focus: true
|
||||||
|
|
||||||
|
onAboutToHide: {
|
||||||
|
parent.forceActiveFocus(true)
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -28,9 +34,9 @@ Popup {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
BlueButtonType {
|
BlueButtonType {
|
||||||
id: yesButton
|
id: yesButton
|
||||||
Layout.preferredWidth: parent.width / 2
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: yesText
|
text: yesText
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -43,7 +49,6 @@ Popup {
|
||||||
}
|
}
|
||||||
BlueButtonType {
|
BlueButtonType {
|
||||||
id: noButton
|
id: noButton
|
||||||
Layout.preferredWidth: parent.width / 2
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: noText
|
text: noText
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue