From bd098e7ed6f8e52e3b97f60def974c5d8c47369a Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 4 Feb 2016 16:47:08 +0100 Subject: inintial composer controller + hook up to composer ui --- .../kube-mail/package/contents/ui/Composer.qml | 42 ++++++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'applications') diff --git a/applications/kube-mail/package/contents/ui/Composer.qml b/applications/kube-mail/package/contents/ui/Composer.qml index 66305254..52cb2f6c 100644 --- a/applications/kube-mail/package/contents/ui/Composer.qml +++ b/applications/kube-mail/package/contents/ui/Composer.qml @@ -20,19 +20,25 @@ import QtQuick 2.4 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 +import org.kde.kube.mail 1.0 as Mail + Item { id: root function send() { - + composer.send() } function saveAsDraft() { - + composer.saveAsDraft() } function clear() { + composer.clear(); + } + Mail.Composer { + id: composer } ColumnLayout { @@ -61,6 +67,12 @@ Item { id: to Layout.fillWidth: true + + text: composer.to + + onTextChanged: { + composer.to = text; + } } Label { @@ -71,6 +83,12 @@ Item { id: cc Layout.fillWidth: true + + text: composer.cc + + onTextChanged: { + composer.cc = text; + } } Label { @@ -81,6 +99,12 @@ Item { id: bcc Layout.fillWidth: true + + text: composer.bcc + + onTextChanged: { + composer.bcc = text; + } } } @@ -89,12 +113,24 @@ Item { Layout.fillWidth: true - placeholderText: "Subject" + placeholderText: "Enter Subject" + + text: composer.subject + + onTextChanged: { + composer.subject = text; + } } TextArea { id: content + text: composer.body + + onTextChanged: { + composer.body = text; + } + Layout.fillWidth: true Layout.fillHeight: true -- cgit v1.2.3