Skip to content

Commit

Permalink
Work around QTBUG-64174
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcurtis committed Nov 1, 2017
1 parent efe4d0d commit 484565f
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions app/qml/ui/ImageSizePopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -180,36 +180,46 @@ Dialog {
Layout.fillHeight: true
}
}
}

Rectangle {
x: footer.x
y: footer.y
width: footer.width
height: footer.height
color: "transparent"
border.color: "darkorange"
}

footer: DialogButtonBox {
Button {
objectName: "imageSizePopupOkButton"
text: "OK"
RowLayout {
Button {
objectName: "imageSizePopupOkButton"
text: qsTr("OK")

DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
onClicked: {
project.resize(widthSpinBox.value, heightSpinBox.value, smoothCheckBox.checked);
dialog.visible = false;
}
}
Button {
objectName: "imageSizePopupCancelButton"
text: qsTr("Cancel")

onClicked: {
project.resize(widthSpinBox.value, heightSpinBox.value, smoothCheckBox.checked);
dialog.visible = false;
onClicked: dialog.visible = false
}
}
Button {
objectName: "imageSizePopupCancelButton"
text: "Cancel"
}

DialogButtonBox.buttonRole: DialogButtonBox.DestructiveRole
// https://bugreports.qt.io/browse/QTBUG-64174
// footer: DialogButtonBox {
// Button {
// objectName: "imageSizePopupOkButton"
// text: qsTr("OK")

onClicked: dialog.visible = false
}
}
// DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole

// onClicked: {
// project.resize(widthSpinBox.value, heightSpinBox.value, smoothCheckBox.checked);
// dialog.visible = false;
// }
// }
// Button {
// objectName: "imageSizePopupCancelButton"
// text: qsTr("Cancel")

// DialogButtonBox.buttonRole: DialogButtonBox.DestructiveRole

// onClicked: dialog.visible = false
// }
// }
}

0 comments on commit 484565f

Please sign in to comment.