summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-13 10:39:20 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-13 10:39:20 +0200
commita3307e549d5c8ad755e4b3fbac5c47ea13e408f8 (patch)
tree3c2b53a13602e03dc89134c0ae02eee5e5905f41
parentfed73fe5ba7212fd886e0c6a06cefc684a3a7b88 (diff)
downloadkube-a3307e549d5c8ad755e4b3fbac5c47ea13e408f8.tar.gz
kube-a3307e549d5c8ad755e4b3fbac5c47ea13e408f8.zip
Composer cleanup
-rw-r--r--views/people/qml/People.qml13
-rw-r--r--views/people/qml/PersonComposer.qml18
2 files changed, 16 insertions, 15 deletions
diff --git a/views/people/qml/People.qml b/views/people/qml/People.qml
index f90a4f56..8b35f5e7 100644
--- a/views/people/qml/People.qml
+++ b/views/people/qml/People.qml
@@ -18,7 +18,7 @@
18*/ 18*/
19 19
20import QtQuick 2.7 20import QtQuick 2.7
21import QtQuick.Controls 2.0 as Controls2 21import QtQuick.Controls 2
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23 23
24import org.kube.framework 1.0 as Kube 24import org.kube.framework 1.0 as Kube
@@ -82,7 +82,7 @@ FocusScope {
82 } 82 }
83 } 83 }
84 84
85 Controls2.StackView { 85 StackView {
86 id: stack 86 id: stack
87 87
88 anchors { 88 anchors {
@@ -249,14 +249,13 @@ FocusScope {
249 Rectangle { 249 Rectangle {
250 id: personComposerRoot 250 id: personComposerRoot
251 251
252 Kube.ContactController {
253 id: contactController
254 contact: root.currentContact
255 }
256
257 color: Kube.Colors.viewBackgroundColor 252 color: Kube.Colors.viewBackgroundColor
258 253
259 PersonComposer { 254 PersonComposer {
255 contactController: Kube.ContactController {
256 id: contactController
257 contact: root.currentContact
258 }
260 } 259 }
261 260
262 Kube.PositiveButton { 261 Kube.PositiveButton {
diff --git a/views/people/qml/PersonComposer.qml b/views/people/qml/PersonComposer.qml
index 2e0436ed..bd469e47 100644
--- a/views/people/qml/PersonComposer.qml
+++ b/views/people/qml/PersonComposer.qml
@@ -18,7 +18,7 @@
18*/ 18*/
19 19
20import QtQuick 2.7 20import QtQuick 2.7
21import QtQuick.Controls 2.0 as Controls2 21import QtQuick.Controls 2
22import QtQuick.Layouts 1.1 22import QtQuick.Layouts 1.1
23import QtQuick.Dialogs 1.0 as Dialogs 23import QtQuick.Dialogs 1.0 as Dialogs
24 24
@@ -27,20 +27,22 @@ import org.kube.framework 1.0 as Kube
27 27
28 28
29Flickable { 29Flickable {
30 id: personComposerFlickable 30 id: root
31
32 property var contactController
31 33
32 anchors { 34 anchors {
33 fill: parent 35 fill: parent
34 leftMargin: Kube.Units.largeSpacing 36 leftMargin: Kube.Units.largeSpacing
35 } 37 }
36 38
37 Controls2.ScrollBar.vertical: Kube.ScrollBar { } 39 ScrollBar.vertical: Kube.ScrollBar { }
38 contentHeight: contentColumn.height 40 contentHeight: contentColumn.height
39 41
40 clip: true 42 clip: true
41 43
42 Kube.ScrollHelper { 44 Kube.ScrollHelper {
43 flickable: personComposerFlickable 45 flickable: root
44 anchors.fill: parent 46 anchors.fill: parent
45 } 47 }
46 48
@@ -63,7 +65,7 @@ Flickable {
63 Item { 65 Item {
64 66
65 height: Kube.Units.gridUnit * 8 67 height: Kube.Units.gridUnit * 8
66 width: personComposerRoot.width - Kube.Units.largeSpacing 68 width: root.width - Kube.Units.largeSpacing
67 69
68 Rectangle { 70 Rectangle {
69 id: avatar 71 id: avatar
@@ -162,7 +164,7 @@ Flickable {
162 164
163 165
164 Column { 166 Column {
165 width: personComposerRoot.width - Kube.Units.largeSpacing 167 width: root.width - Kube.Units.largeSpacing
166 spacing: Kube.Units.smallSpacing 168 spacing: Kube.Units.smallSpacing
167 169
168 Kube.Label { 170 Kube.Label {
@@ -174,7 +176,7 @@ Flickable {
174 } 176 }
175 177
176 Column { 178 Column {
177 width: personComposerRoot.width - Kube.Units.largeSpacing 179 width: root.width - Kube.Units.largeSpacing
178 spacing: Kube.Units.smallSpacing 180 spacing: Kube.Units.smallSpacing
179 181
180 Kube.Label { 182 Kube.Label {
@@ -189,7 +191,7 @@ Flickable {
189 Column{ 191 Column{
190 id: address 192 id: address
191 193
192 width: personComposerRoot.width - Kube.Units.largeSpacing 194 width: root.width - Kube.Units.largeSpacing
193 spacing: Kube.Units.smallSpacing 195 spacing: Kube.Units.smallSpacing
194 196
195 Kube.Label { 197 Kube.Label {