summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/AddresseeListEditor.qml28
-rw-r--r--components/kube/contents/ui/ComposerView.qml16
2 files changed, 32 insertions, 12 deletions
diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml
index adb2f785..91431b1e 100644
--- a/components/kube/contents/ui/AddresseeListEditor.qml
+++ b/components/kube/contents/ui/AddresseeListEditor.qml
@@ -52,21 +52,37 @@ FocusScope {
52 height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 //smallSpacing for padding 52 height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 2 //smallSpacing for padding
53 width: parent.width 53 width: parent.width
54 color: Kube.Colors.buttonColor 54 color: Kube.Colors.buttonColor
55 Kube.Label { 55 Row {
56 anchors { 56 anchors {
57 top: parent.top 57 top: parent.top
58 bottom: parent.bottom
58 left: parent.left 59 left: parent.left
59 right: button.left 60 right: removeButton.left
60 margins: Kube.Units.smallSpacing 61 margins: Kube.Units.smallSpacing
61 } 62 }
62 text: display 63 spacing: Kube.Units.smallSpacing
63 elide: Text.ElideRight 64 Kube.Label {
65 id: label
66 anchors {
67 top: parent.top
68 }
69 text: model.addresseeName
70 elide: Text.ElideRight
71 }
72 Kube.Icon {
73 anchors {
74 top: parent.top
75 }
76 height: Kube.Units.gridUnit
77 width: height
78 iconName: model.keyFound ? Kube.Icons.secure: Kube.Icons.insecure
79 }
64 } 80 }
65 Kube.IconButton { 81 Kube.IconButton {
66 id: button 82 id: removeButton
67 anchors { 83 anchors {
68 verticalCenter: parent.verticalCenter
69 right: parent.right 84 right: parent.right
85 verticalCenter: parent.verticalCenter
70 margins: Kube.Units.smallSpacing 86 margins: Kube.Units.smallSpacing
71 } 87 }
72 height: Kube.Units.gridUnit 88 height: Kube.Units.gridUnit
diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml
index a4796932..29141f28 100644
--- a/components/kube/contents/ui/ComposerView.qml
+++ b/components/kube/contents/ui/ComposerView.qml
@@ -42,6 +42,8 @@ Kube.View {
42 Kube.ComposerController { 42 Kube.ComposerController {
43 id: composerController 43 id: composerController
44 htmlBody: html.checked 44 htmlBody: html.checked
45 sign: signCheckbox.checked
46 encrypt: encryptCheckbox.checked
45 onDone: Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) 47 onDone: Kube.Fabric.postMessage(Kube.Messages.componentDone, {})
46 } 48 }
47 ] 49 ]
@@ -443,18 +445,20 @@ Kube.View {
443 } 445 }
444 446
445 RowLayout { 447 RowLayout {
446 //FIXME: hide until it does something 448 Kube.CheckBox {
447 visible: false 449 id: encryptCheckbox
448 Kube.CheckBox {} 450 checked: composerController.encrypt
451 }
449 Kube.Label { 452 Kube.Label {
450 text: qsTr("encrypt") 453 text: qsTr("encrypt")
451 } 454 }
452 } 455 }
453 456
454 RowLayout { 457 RowLayout {
455 //FIXME: hide until it does something 458 Kube.CheckBox {
456 visible: false 459 id: signCheckbox
457 Kube.CheckBox {} 460 checked: composerController.sign
461 }
458 Kube.Label { 462 Kube.Label {
459 text: qsTr("sign") 463 text: qsTr("sign")
460 } 464 }