From 8c6a34133c07f28f62bf9a06a3952affd239424e Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 7 Nov 2013 18:28:38 +0100 Subject: DefaultMessageDialog: use gadget StandardButton type Followup to e17ae3b8b716b00c7cb6156347101f2e789dbd58 : Message.Ok etc. are no longer available. Change-Id: I30fc054fc6ace7dc48951739c88f49db2291a7a9 Reviewed-by: BogDan Vatra --- src/imports/dialogs/DefaultMessageDialog.qml | 72 ++++++++++++++-------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'src/imports') diff --git a/src/imports/dialogs/DefaultMessageDialog.qml b/src/imports/dialogs/DefaultMessageDialog.qml index e0e2193962..ba29469b5e 100644 --- a/src/imports/dialogs/DefaultMessageDialog.qml +++ b/src/imports/dialogs/DefaultMessageDialog.qml @@ -136,104 +136,104 @@ AbstractMessageDialog { Button { id: okButton text: "OK" - onClicked: root.click(Message.Ok) - visible: root.standardButtons & Message.Ok + onClicked: root.click(StandardButton.Ok) + visible: root.standardButtons & StandardButton.Ok } Button { id: openButton text: "Open" - onClicked: root.click(Message.Open) - visible: root.standardButtons & Message.Open + onClicked: root.click(StandardButton.Open) + visible: root.standardButtons & StandardButton.Open } Button { id: saveButton text: "Save" - onClicked: root.click(Message.Save) - visible: root.standardButtons & Message.Save + onClicked: root.click(StandardButton.Save) + visible: root.standardButtons & StandardButton.Save } Button { id: saveAllButton text: "Save All" - onClicked: root.click(Message.SaveAll) - visible: root.standardButtons & Message.SaveAll + onClicked: root.click(StandardButton.SaveAll) + visible: root.standardButtons & StandardButton.SaveAll } Button { id: retryButton text: "Retry" - onClicked: root.click(Message.Retry) - visible: root.standardButtons & Message.Retry + onClicked: root.click(StandardButton.Retry) + visible: root.standardButtons & StandardButton.Retry } Button { id: ignoreButton text: "Ignore" - onClicked: root.click(Message.Ignore) - visible: root.standardButtons & Message.Ignore + onClicked: root.click(StandardButton.Ignore) + visible: root.standardButtons & StandardButton.Ignore } Button { id: applyButton text: "Apply" - onClicked: root.click(Message.Apply) - visible: root.standardButtons & Message.Apply + onClicked: root.click(StandardButton.Apply) + visible: root.standardButtons & StandardButton.Apply } Button { id: yesButton text: "Yes" - onClicked: root.click(Message.Yes) - visible: root.standardButtons & Message.Yes + onClicked: root.click(StandardButton.Yes) + visible: root.standardButtons & StandardButton.Yes } Button { id: yesAllButton text: "Yes to All" - onClicked: root.click(Message.YesToAll) - visible: root.standardButtons & Message.YesToAll + onClicked: root.click(StandardButton.YesToAll) + visible: root.standardButtons & StandardButton.YesToAll } Button { id: noButton text: "No" - onClicked: root.click(Message.No) - visible: root.standardButtons & Message.No + onClicked: root.click(StandardButton.No) + visible: root.standardButtons & StandardButton.No } Button { id: noAllButton text: "No to All" - onClicked: root.click(Message.NoToAll) - visible: root.standardButtons & Message.NoToAll + onClicked: root.click(StandardButton.NoToAll) + visible: root.standardButtons & StandardButton.NoToAll } Button { id: discardButton text: "Discard" - onClicked: root.click(Message.Discard) - visible: root.standardButtons & Message.Discard + onClicked: root.click(StandardButton.Discard) + visible: root.standardButtons & StandardButton.Discard } Button { id: resetButton text: "Reset" - onClicked: root.click(Message.Reset) - visible: root.standardButtons & Message.Reset + onClicked: root.click(StandardButton.Reset) + visible: root.standardButtons & StandardButton.Reset } Button { id: restoreDefaultsButton text: "Restore Defaults" - onClicked: root.click(Message.RestoreDefaults) - visible: root.standardButtons & Message.RestoreDefaults + onClicked: root.click(StandardButton.RestoreDefaults) + visible: root.standardButtons & StandardButton.RestoreDefaults } Button { id: cancelButton text: "Cancel" - onClicked: root.click(Message.Cancel) - visible: root.standardButtons & Message.Cancel + onClicked: root.click(StandardButton.Cancel) + visible: root.standardButtons & StandardButton.Cancel } Button { id: abortButton text: "Abort" - onClicked: root.click(Message.Abort) - visible: root.standardButtons & Message.Abort + onClicked: root.click(StandardButton.Abort) + visible: root.standardButtons & StandardButton.Abort } Button { id: closeButton text: "Close" - onClicked: root.click(Message.Close) - visible: root.standardButtons & Message.Close + onClicked: root.click(StandardButton.Close) + visible: root.standardButtons & StandardButton.Close } Button { id: moreButton @@ -244,8 +244,8 @@ AbstractMessageDialog { Button { id: helpButton text: "Help" - onClicked: root.click(Message.Help) - visible: root.standardButtons & Message.Help + onClicked: root.click(StandardButton.Help) + visible: root.standardButtons & StandardButton.Help } onVisibleChildrenChanged: calculateImplicitWidth() } -- cgit v1.2.3