From a3307e549d5c8ad755e4b3fbac5c47ea13e408f8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 13 Jul 2018 10:39:20 +0200 Subject: Composer cleanup --- views/people/qml/People.qml | 13 ++++++------- views/people/qml/PersonComposer.qml | 18 ++++++++++-------- 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 @@ */ import QtQuick 2.7 -import QtQuick.Controls 2.0 as Controls2 +import QtQuick.Controls 2 import QtQuick.Layouts 1.1 import org.kube.framework 1.0 as Kube @@ -82,7 +82,7 @@ FocusScope { } } - Controls2.StackView { + StackView { id: stack anchors { @@ -249,14 +249,13 @@ FocusScope { Rectangle { id: personComposerRoot - Kube.ContactController { - id: contactController - contact: root.currentContact - } - color: Kube.Colors.viewBackgroundColor PersonComposer { + contactController: Kube.ContactController { + id: contactController + contact: root.currentContact + } } 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 @@ */ import QtQuick 2.7 -import QtQuick.Controls 2.0 as Controls2 +import QtQuick.Controls 2 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.0 as Dialogs @@ -27,20 +27,22 @@ import org.kube.framework 1.0 as Kube Flickable { - id: personComposerFlickable + id: root + + property var contactController anchors { fill: parent leftMargin: Kube.Units.largeSpacing } - Controls2.ScrollBar.vertical: Kube.ScrollBar { } + ScrollBar.vertical: Kube.ScrollBar { } contentHeight: contentColumn.height clip: true Kube.ScrollHelper { - flickable: personComposerFlickable + flickable: root anchors.fill: parent } @@ -63,7 +65,7 @@ Flickable { Item { height: Kube.Units.gridUnit * 8 - width: personComposerRoot.width - Kube.Units.largeSpacing + width: root.width - Kube.Units.largeSpacing Rectangle { id: avatar @@ -162,7 +164,7 @@ Flickable { Column { - width: personComposerRoot.width - Kube.Units.largeSpacing + width: root.width - Kube.Units.largeSpacing spacing: Kube.Units.smallSpacing Kube.Label { @@ -174,7 +176,7 @@ Flickable { } Column { - width: personComposerRoot.width - Kube.Units.largeSpacing + width: root.width - Kube.Units.largeSpacing spacing: Kube.Units.smallSpacing Kube.Label { @@ -189,7 +191,7 @@ Flickable { Column{ id: address - width: personComposerRoot.width - Kube.Units.largeSpacing + width: root.width - Kube.Units.largeSpacing spacing: Kube.Units.smallSpacing Kube.Label { -- cgit v1.2.3