This commit is contained in:
Igor Malinovskiy
2017-09-15 13:34:40 +03:00
parent 807c63db48
commit b9399e06ec
2 changed files with 10 additions and 22 deletions
+9 -21
View File
@@ -249,17 +249,11 @@ Repeater {
Item { Layout.fillWidth: true; Layout.preferredHeight: 2;}
}
onResizingChanged: {
if (resizing) {
valueEditor.maxHeight = 9999
}
}
// Table
RowLayout {
id: navigationTable
Layout.fillWidth: true
Layout.fillHeight: showValueNavigation
Layout.fillHeight: false
visible: showValueNavigation
TableView {
@@ -565,20 +559,13 @@ Repeater {
id: valueEditor
Layout.fillWidth: true
Layout.fillHeight: true
Layout.minimumHeight: 180
Layout.maximumHeight: maxHeight
property int maxHeight: 9999
Connections {
target: viewModel
onReplaceTab: {
if (showValueNavigation && keyIndex === index) {
valueEditor.maxHeight = wrapper.height * 0.4
} else {
valueEditor.maxHeight = 9999
}
Layout.minimumHeight: 180
Layout.maximumHeight: {
if (showValueNavigation) {
return (approot.height - bottomTabView.height - navigationTable.height
- editorButtonsRow.height - 50)
} else {
return approot.height - bottomTabView.height - editorButtonsRow.height - 50
}
}
@@ -618,6 +605,7 @@ Repeater {
}
RowLayout {
id: editorButtonsRow
Layout.fillWidth: true
Layout.minimumHeight: 40
Item { Layout.fillWidth: true}
@@ -16,7 +16,7 @@ AbstractEditor {
id: keyText
fieldLabel: qsTr("Key:")
Layout.fillWidth: true
Layout.minimumHeight: 80
Layout.minimumHeight: 30
Layout.preferredHeight: 90
value: ""