| 496 | |
| 497 | |
| 498 | void 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 | |
| 520 | void GrootLineEdit::mouseDoubleClickEvent(QMouseEvent *ev) |
| 521 | { |
no outgoing calls
no test coverage detected