diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-02 15:29:12 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-02 15:29:12 +0200 |
commit | d2b8c06df6d860a529bb37f5e6f4516d31f86fc2 (patch) | |
tree | 2e65f0b409367313f06b136f3138bb78c1c58068 /framework/qml | |
parent | d3addd8b9988d4e313b40b09588025097049944a (diff) | |
download | kube-d2b8c06df6d860a529bb37f5e6f4516d31f86fc2.tar.gz kube-d2b8c06df6d860a529bb37f5e6f4516d31f86fc2.zip |
prepared composer in stacklayout, brought back statusbar
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/FocusComposer.qml | 27 | ||||
-rw-r--r-- | framework/qml/Messages.qml | 1 |
2 files changed, 13 insertions, 15 deletions
diff --git a/framework/qml/FocusComposer.qml b/framework/qml/FocusComposer.qml index 7330b236..a3bad1c9 100644 --- a/framework/qml/FocusComposer.qml +++ b/framework/qml/FocusComposer.qml | |||
@@ -20,11 +20,10 @@ import QtQuick 2.4 | |||
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQuick.Controls 2.0 as Controls2 | 21 | import QtQuick.Controls 2.0 as Controls2 |
22 | 22 | ||
23 | import org.kde.kirigami 1.0 as Kirigami | ||
24 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
25 | 24 | ||
26 | 25 | ||
27 | Kube.Popup { | 26 | Item { |
28 | id: root | 27 | id: root |
29 | 28 | ||
30 | //Controller | 29 | //Controller |
@@ -32,7 +31,6 @@ Kube.Popup { | |||
32 | id: composerController | 31 | id: composerController |
33 | onDone: { | 32 | onDone: { |
34 | clear(); | 33 | clear(); |
35 | root.close() | ||
36 | } | 34 | } |
37 | } | 35 | } |
38 | 36 | ||
@@ -40,14 +38,15 @@ Kube.Popup { | |||
40 | property variant sendAction: composerController.sendAction | 38 | property variant sendAction: composerController.sendAction |
41 | property variant saveAsDraftAction: composerController.saveAsDraftAction | 39 | property variant saveAsDraftAction: composerController.saveAsDraftAction |
42 | 40 | ||
43 | onClosed: { | 41 | //FIXME |
44 | composerController.clear() | 42 | // onClosed: { |
45 | to.text = "" | 43 | // composerController.clear() |
46 | cc.visible = false | 44 | // to.text = "" |
47 | cc.text = "" | 45 | // cc.visible = false |
48 | bcc.visible = false | 46 | // cc.text = "" |
49 | bcc.text = "" | 47 | // bcc.visible = false |
50 | } | 48 | // bcc.text = "" |
49 | // } | ||
51 | 50 | ||
52 | //BEGIN functions | 51 | //BEGIN functions |
53 | function loadMessage(message, loadAsDraft) { | 52 | function loadMessage(message, loadAsDraft) { |
@@ -55,9 +54,6 @@ Kube.Popup { | |||
55 | } | 54 | } |
56 | //END functions | 55 | //END functions |
57 | 56 | ||
58 | //Don't close the composer due to an accidental click outside | ||
59 | closePolicy: Controls2.Popup.CloseOnEscape | Controls2.Popup.CloseOnPressOutsideParent | ||
60 | |||
61 | Item { | 57 | Item { |
62 | 58 | ||
63 | height: parent.height | 59 | height: parent.height |
@@ -226,7 +222,8 @@ Kube.Popup { | |||
226 | text: "Discard" | 222 | text: "Discard" |
227 | 223 | ||
228 | onClicked: { | 224 | onClicked: { |
229 | root.close() | 225 | //FIXME |
226 | // root.close() | ||
230 | } | 227 | } |
231 | } | 228 | } |
232 | 229 | ||
diff --git a/framework/qml/Messages.qml b/framework/qml/Messages.qml index 26a3ea3e..a6ca6fe0 100644 --- a/framework/qml/Messages.qml +++ b/framework/qml/Messages.qml | |||
@@ -39,5 +39,6 @@ Item { | |||
39 | property string synchronize: "synchronize" | 39 | property string synchronize: "synchronize" |
40 | property string reply: "reply" | 40 | property string reply: "reply" |
41 | property string edit: "edit" | 41 | property string edit: "edit" |
42 | property string compose: "compose" | ||
42 | } | 43 | } |
43 | 44 | ||