Skip to content

Commit b3310bd

Browse files
author
Davide Faconti
committed
seems to work
1 parent 06743f7 commit b3310bd

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

bt_editor/custom_node_dialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ CustomNodeDialog::CustomNodeDialog(const NodeModels &models,
6969
else if( model.type == NodeType::SUBTREE )
7070
{
7171
ui->comboBox->setCurrentIndex(2);
72+
ui->comboBox->setEnabled(false);
7273
}
7374
}
7475
}

bt_editor/resources/stylesheet.qss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ QComboBox {
2929
padding-left: 4px;
3030
padding-right: 4px;
3131
}
32+
33+
QComboBox:disabled {
34+
color: blue;
35+
background-color: grey;
36+
selection-background-color: grey;
37+
}

test_data/subtree_test_fail.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,7 @@
1010
<!-- compact syntax -->
1111
<SubTree ID="ThisOne" target="{goal}" result="{out}" />
1212
<SubTree ID="TheOther" target="{goal}" result="{out}" />
13-
14-
<!-- veebose syntax -->
15-
<SubTree ID="ThisOne">
16-
<remap internal="target" external="{goal}"/>
17-
<remap internal="result" external="{out}"/>
18-
</SubTree>
19-
<SubTree ID="TheOther">
20-
<remap internal="target" external="{goal}"/>
21-
<remap internal="result" external="{out}"/>
22-
</SubTree>
23-
13+
2414
</Sequence>
2515
</BehaviorTree>
2616
<!-- ////////// -->

0 commit comments

Comments
 (0)