mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[ui] Add PushButton component to AttributeItemDelegate
This commit is contained in:
parent
eb1a0faf97
commit
c5f440b8a8
1 changed files with 13 additions and 0 deletions
|
@ -179,6 +179,8 @@ RowLayout {
|
|||
|
||||
sourceComponent: {
|
||||
switch (attribute.type) {
|
||||
case "PushButtonParam":
|
||||
return pushButton_component
|
||||
case "ChoiceParam":
|
||||
return attribute.desc.exclusive ? comboBox_component : multiChoice_component
|
||||
case "IntParam": return slider_component
|
||||
|
@ -203,6 +205,17 @@ RowLayout {
|
|||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: pushButton_component
|
||||
Button {
|
||||
text: attribute.desc.label
|
||||
enabled: root.editable
|
||||
onClicked: {
|
||||
attribute.clicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: textField_component
|
||||
TextField {
|
||||
|
|
Loading…
Add table
Reference in a new issue