Commit 229e10fb authored by Nicolas Fella's avatar Nicolas Fella

Use custom footer for timepicker

parent d82ce3d4
......@@ -45,10 +45,24 @@ Button {
Dialog {
id: dialog
anchors.centerIn: parent
contentItem: KA.TimePicker {
id: picker
}
standardButtons: Dialog.Ok | Dialog.Cancel
footer: RowLayout {
Button {
text: i18n("Cancel")
Layout.fillWidth: true
onClicked: dialog.reject()
}
Button {
text: i18n("Accept")
Layout.fillWidth: true
onClicked: dialog.accept()
}
}
onAccepted: {
console.log("Accept")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment