From 51b55a0e76b25f07d90b969103b9c92d7b91d7d5 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sun, 4 Dec 2016 11:48:05 +0100 Subject: port focus composer to qqc2 --- .../package/contents/ui/AutocompleteLineEdit.qml | 6 ++--- components/package/contents/ui/FocusComposer.qml | 29 +++++++++++----------- 2 files changed, 17 insertions(+), 18 deletions(-) (limited to 'components/package/contents') diff --git a/components/package/contents/ui/AutocompleteLineEdit.qml b/components/package/contents/ui/AutocompleteLineEdit.qml index 173a006c..cb6e4fcb 100644 --- a/components/package/contents/ui/AutocompleteLineEdit.qml +++ b/components/package/contents/ui/AutocompleteLineEdit.qml @@ -17,14 +17,14 @@ */ import QtQuick 2.7 -import QtQuick.Controls 1.4 +import QtQuick.Controls 1.4 as Controls1 import QtQuick.Controls 2.0 as Controls2 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.0 import org.kde.kirigami 1.0 as Kirigami -TextField { +Controls2.TextField { id: textField property string searchTerm @@ -94,7 +94,7 @@ TextField { width: textField.width border.color: "Black" radius: 5 - ScrollView { + Controls1.ScrollView { id: scrollView anchors.fill: parent ListView { diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml index 0a6c08bd..b5bb5c35 100644 --- a/components/package/contents/ui/FocusComposer.qml +++ b/components/package/contents/ui/FocusComposer.qml @@ -18,7 +18,6 @@ import QtQuick 2.4 import QtQuick.Layouts 1.1 -import QtQuick.Controls 1.4 as Controls import QtQuick.Controls 2.0 as Controls2 import org.kde.kirigami 1.0 as Kirigami @@ -71,7 +70,7 @@ Controls2.Popup { anchors.fill: parent - Controls.TextField { + Controls2.TextField { id: subject Layout.fillWidth: true @@ -89,7 +88,7 @@ Controls2.Popup { columns: 2 - Kirigami.Label { + Controls2.Label { text: "To" } @@ -110,7 +109,7 @@ Controls2.Popup { } - Kirigami.Label { + Controls2.Label { text: "Cc" visible: cc.visible @@ -135,7 +134,7 @@ Controls2.Popup { } } - Kirigami.Label { + Controls2.Label { text: "Bcc" visible: bcc.visible @@ -162,11 +161,11 @@ Controls2.Popup { } RowLayout { - Kirigami.Label { + Controls2.Label { text: "Sending as" } - Controls.ComboBox { + Controls2.ComboBox { id: identityCombo model: composer.identityModel textRole: "displayName" @@ -178,7 +177,7 @@ Controls2.Popup { } } - Controls.Button { + Controls2.Button { id: ccButton text: "Cc" @@ -189,7 +188,7 @@ Controls2.Popup { } } - Controls.Button { + Controls2.Button { id: bccButton text: "Bcc" @@ -208,7 +207,7 @@ Controls2.Popup { height: subject.height * 1.5 - Controls.Button { + Controls2.Button { anchors { bottom: parent.bottom @@ -231,7 +230,7 @@ Controls2.Popup { model: composer.attachments - delegate: Kirigami.Label { + delegate: Controls2.Label { id: name text: modelData @@ -247,7 +246,7 @@ Controls2.Popup { } */ - Controls.TextArea { + Controls2.TextArea { id: content text: composer.body @@ -265,7 +264,7 @@ Controls2.Popup { width: parent.width - Controls.Button { + Controls2.Button { text: "Discard" @@ -279,7 +278,7 @@ Controls2.Popup { } - Controls.Button { + Controls2.Button { text: "Save as Draft" @@ -289,7 +288,7 @@ Controls2.Popup { } } - Controls.Button { + Controls2.Button { text: "Send" onClicked: { -- cgit v1.2.3