From c070e4527728ae9dd90131c98164587a88a93ca4 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 8 Jun 2017 14:09:45 +0200 Subject: Fixed the ghost icon issue and moved to Controls2.StackView The icon stemmed from the people-view toolbar. I suppose because the item was not properly hidden but still existing. --- framework/qml/People.qml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'framework') diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 58aa340c..fc41ceaf 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml @@ -44,33 +44,36 @@ Item { Item { id: toolbar + anchors { + top: parent.top + horizontalCenter: parent.horizontalCenter + } height: searchBar.height + Kube.Units.smallSpacing width: parent.width - Controls.ToolButton { + Kube.IconButton { + anchors { + top: parent.top + left: parent.left + leftMargin: Kube.Units.smallSpacing + } + visible: stack.depth > 1 iconName: Kube.Icons.goBack - onClicked: stack.pop() - - visible: stack. depth > 1 } - Kube.TextField { id: searchBar - anchors.horizontalCenter: parent.horizontalCenter width: parent.width * 0.5 - placeholderText: "Search..." } - - Controls.ToolButton { + Kube.IconButton { anchors { + top: parent.top right: parent.right rightMargin: Kube.Units.smallSpacing } - iconName: Kube.Icons.addNew } } -- cgit v1.2.3