History: Fixed filter collapse

This commit is contained in:
Ilya Kitaev 2016-10-09 01:40:13 +03:00
parent 7ed623e6d9
commit da552a012d

View file

@ -326,8 +326,11 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
parent.expanded = !parent.expanded parent.expanded = !parent.expanded
if(checkBox.checked) tableRect.height = Qt.binding(function(){ return parent.expanded ? tableRect.expandedHeight : tableRect.collapsedHeight }) if (advancedFilteringCheckBox.checked) {
else tableRect.height = Qt.binding(function(){ return parent.expanded ? tableRect.expandedHeight : tableRect.middleHeight }) tableRect.height = Qt.binding(function() { return parent.expanded ? tableRect.expandedHeight : tableRect.collapsedHeight })
} else {
tableRect.height = Qt.binding(function() { return parent.expanded ? tableRect.expandedHeight : tableRect.middleHeight })
}
} }
} }
} }