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

Method onConnectionUpdate

bt_editor/mainwindow.cpp:723–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void MainWindow::onConnectionUpdate(bool connected)
724{
725 if(connected)
726 {
727 ui->toolButtonConnect->setStyleSheet("background-color: rgb(50, 150, 0); color:white");
728 ui->toolButtonConnect->setText("Disconnect");
729 }
730 else{
731 ui->toolButtonConnect->setStyleSheet(
732 "QToolButton {color:white; }"
733 "QToolButton:hover{ background-color: rgb(110, 110, 110); }"
734 "QToolButton:pressed{ background-color: rgb(50, 150, 0) }"
735 "QToolButton:disabled{color:gray; background-color: rgb(50, 50, 50) }");
736 ui->toolButtonConnect->setText("Connect");
737 }
738}
739
740void MainWindow::onRequestSubTreeExpand(GraphicContainer& container,
741 QtNodes::Node& node)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected