Skip to content

Commit

Permalink
Fix hidden widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 6, 2016
1 parent 8a2696d commit ec07fe3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Rectangle {
id: element

Loader {
sourceComponent: pType === 'field' ? fieldItem : groupBoxItem
sourceComponent: pType === 'field' ? ( pEditorWidget === 'Hidden' ? undefined : fieldItem ): groupBoxItem

anchors { left: parent.left; right: parent.right }
height: childrenRect.height
Expand Down Expand Up @@ -290,17 +290,6 @@ Rectangle {
height: childrenRect.height
anchors { left: parent.left; right: rememberCheckbox.left; top: fieldLabel.bottom }

Connections {
target: form
onAboutToSave: {
try {
attributeEditorLoader.item.pushChanges()
}
catch ( err )
{}
}
}

Loader {
id: attributeEditorLoader

Expand All @@ -325,6 +314,17 @@ Rectangle {
}
}

Connections {
target: form
onAboutToSave: {
try {
attributeEditorLoader.item.pushChanges()
}
catch ( err )
{}
}
}

Connections {
target: attributeEditorLoader.item
onValueChanged: {
Expand Down

0 comments on commit ec07fe3

Please sign in to comment.