Skip to content

Commit

Permalink
Fullscreen featureform
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 14, 2016
1 parent 8ab959a commit 55fe484
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 11 additions & 7 deletions src/qml/FeatureListForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
}
}
2 changes: 0 additions & 2 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ Rectangle {
anchors.top: parent.top
anchors.bottom: parent.bottom

width: 0

border.color: "lightGray"
border.width: 1

Expand Down

0 comments on commit 55fe484

Please sign in to comment.