From 55fe48442520f099f514f9632a5eefec4bc0d2ec Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 14 Sep 2016 13:12:17 +0200 Subject: [PATCH] Fullscreen featureform --- src/qml/FeatureListForm.qml | 18 +++++++++++------- src/qml/qgismobileapp.qml | 2 -- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/qml/FeatureListForm.qml b/src/qml/FeatureListForm.qml index 10e11b4f69..505c37a202 100644 --- a/src/qml/FeatureListForm.qml +++ b/src/qml/FeatureListForm.qml @@ -85,10 +85,18 @@ Rectangle { ] state: "Hidden" - focus: ( state != "Hidden" ) + focus: props.isVisible clip: true + width: props.isVisible ? state == "FeatureList" ? parent.width / 3 : parent.width : 0 + + QtObject { + id: props + + property bool isVisible: false + } + ListView { id: globalFeaturesList @@ -293,15 +301,11 @@ Rectangle { function show() { - var widthDenominator = settings.value( "featureForm/widthDenominator", 3 ); - width = parent.width / widthDenominator - // Focus to retrieve back button events - focus = true + props.isVisible = true } function hide() { - width = 0 - focus = false + props.isVisible = false } } diff --git a/src/qml/qgismobileapp.qml b/src/qml/qgismobileapp.qml index 7d652878c4..6027a02284 100644 --- a/src/qml/qgismobileapp.qml +++ b/src/qml/qgismobileapp.qml @@ -200,8 +200,6 @@ Rectangle { anchors.top: parent.top anchors.bottom: parent.bottom - width: 0 - border.color: "lightGray" border.width: 1