Skip to content

Commit

Permalink
Only allow delete in digitize mode
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 14, 2016
1 parent 55fe484 commit 05fc8a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/qml/FeatureListForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Rectangle {
property MapSettings mapSettings
property color selectionColor
property alias model: globalFeaturesList.model
property bool allowDelete

states: [
State {
Expand Down Expand Up @@ -173,7 +174,7 @@ Rectangle {
width: 48*dp
height: 48*dp

visible: deleteFeatureCapability
visible: deleteFeatureCapability && allowDelete

anchors { top: parent.top; right: parent.right }

Expand Down
9 changes: 3 additions & 6 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,9 @@ Rectangle {
id: featureForm
mapSettings: mapCanvas.mapSettings

anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom

border.color: "lightGray"
border.width: 1
anchors { right: parent.right; top: parent.top; bottom: parent.bottom }
border { color: "lightGray"; width: 1 }
allowDelete: mainWindow.state === "digitize"

model: FeatureListModel {}

Expand Down

0 comments on commit 05fc8a4

Please sign in to comment.