From ebe08f49ef538320ad485bad1b5db0bb4e3bb54a Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 6 Apr 2017 13:56:45 +0200 Subject: use kube.button in focuscomposer --- framework/qml/FocusComposer.qml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/FocusComposer.qml b/framework/qml/FocusComposer.qml index e827dbc2..5900b809 100644 --- a/framework/qml/FocusComposer.qml +++ b/framework/qml/FocusComposer.qml @@ -159,7 +159,7 @@ Kube.Popup { } } - Controls2.Button { + Kube.Button { id: ccButton text: "Cc" @@ -169,7 +169,7 @@ Kube.Popup { } } - Controls2.Button { + Kube.Button { id: bccButton text: "Bcc" @@ -214,7 +214,7 @@ Kube.Popup { width: parent.width - Controls2.Button { + Kube.Button { text: "Discard" onClicked: { @@ -227,19 +227,21 @@ Kube.Popup { } - Controls2.Button { - text: "Save as Draft" + Kube.Button { + id: saveDraftButton - enabled: saveAsDraftAction.enabled + text: "Save as Draft" + //TODO enabled: saveAsDraftAction.enabled onClicked: { saveAsDraftAction.execute() } } - Controls2.Button { - text: "Send" + Kube.PositiveButton { + width: saveDraftButton.width - enabled: sendAction.enabled + text: "Send" + //TODO enabled: sendAction.enabled onClicked: { sendAction.execute() } -- cgit v1.2.3