Skip to content

Commit

Permalink
Remove loader for GraphEditor so it isn't reset when switching tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeertsen committed Sep 6, 2019
1 parent 9dc0cdb commit 326f45d
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions meshroom/ui/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -561,19 +561,21 @@ ApplicationWindow {
}
}

Loader {
id: mainTabLoader
clip: true
anchors.fill: parent
property var components: [graphEditorComponent, taskManagerComponent]
sourceComponent: components[graphEditorPanel.currentTab]
}

Component {
id: graphEditorComponent
// Loader {
// id: mainTabLoader
// clip: true
// anchors.fill: parent
// property var components: [graphEditorComponent, taskManagerComponent]
// sourceComponent: components[graphEditorPanel.currentTab]
// }

// Component {
// id: graphEditorComponent
GraphEditor {
id: graphEditor

visible: graphEditorPanel.currentTab === 0

anchors.fill: parent
uigraph: _reconstruction
nodeTypesModel: _nodeTypes
Expand Down Expand Up @@ -605,18 +607,21 @@ ApplicationWindow {
onComputeRequest: computeManager.compute(node)
onSubmitRequest: computeManager.submit(node)
}
}
// }

Component {
id: taskManagerComponent
// Component {
// id: taskManagerComponent
TaskManager {
id: taskManager

visible: graphEditorPanel.currentTab === 1

uigraph: _reconstruction
taskManager: _reconstruction.taskManager

anchors.fill: parent
}
}
// }

}

Expand Down

0 comments on commit 326f45d

Please sign in to comment.