mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
Add FilterComboBox.qml and update AttributeItemDelegate.qml
This commit is contained in:
parent
9edfc39b48
commit
c439c5a06e
3 changed files with 109 additions and 12 deletions
|
@ -4,6 +4,7 @@ import QtQuick.Controls 2.2
|
|||
import QtQuick.Dialogs 1.3
|
||||
import MaterialIcons 2.2
|
||||
import Utils 1.0
|
||||
import Controls 1.0
|
||||
|
||||
/**
|
||||
Instantiate a control to visualize and edit an Attribute based on its type.
|
||||
|
@ -342,18 +343,9 @@ RowLayout {
|
|||
|
||||
Component {
|
||||
id: comboBox_component
|
||||
ComboBox {
|
||||
id: combo
|
||||
enabled: root.editable
|
||||
model: attribute.values
|
||||
Component.onCompleted: currentIndex = find(attribute.value)
|
||||
onActivated: _reconstruction.setAttribute(attribute, currentText)
|
||||
Connections {
|
||||
target: attribute
|
||||
function onValueChanged() {
|
||||
combo.currentIndex = combo.find(attribute.value)
|
||||
}
|
||||
}
|
||||
|
||||
FilterComboBox {
|
||||
inputModel: attribute.desc.values
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue