MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / onHighlightPortValue

Method onHighlightPortValue

bt_editor/models/BehaviorTreeNodeModel.cpp:498–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497
498void BehaviorTreeDataModel::onHighlightPortValue(QString value)
499{
500 for( const auto& it: _ports_widgets)
501 {
502 if( auto line_edit = dynamic_cast<QLineEdit*>(it.second) )
503 {
504 QString line_str = line_edit->text();
505 if( !value.isEmpty() && line_str == value )
506 {
507 line_edit->setStyleSheet("color: rgb(30,30,30); "
508 "background-color: #ffef0b; "
509 "border: 0px; ");
510 }
511 else{
512 line_edit->setStyleSheet("color: rgb(30,30,30); "
513 "background-color: rgb(200,200,200); "
514 "border: 0px; ");
515 }
516 }
517 }
518}
519
520void GrootLineEdit::mouseDoubleClickEvent(QMouseEvent *ev)
521{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected