5 SkillExecutionTreeWidgetItem*
18 for (
int i = 0; i < haystack->childCount(); ++i)
45 for (std::pair<skills::SkillStatus, std::string> i : EXECUTION_STATUS_TO_STRING)
47 if (i.first == skillStatus)
49 this->setText(3, QString::fromStdString(i.second));
52 updateButtonState(skillStatus);
62 SkillExecutionTreeWidgetItem::setupUi()
64 parentTree->insertTopLevelItem(0,
this);
65 abortButton =
new QPushButton();
66 abortButton->setMinimumHeight(20);
67 abortButton->setMaximumHeight(20);
68 parentTree->setItemWidget(
this, 4, abortButton);
70 QPixmap pix(
":/icons/process-stop-7.ico");
73 abortButton->setIcon(icon);
80 SkillExecutionTreeWidgetItem::connectSignals()
83 &QPushButton::clicked,
89 SkillExecutionTreeWidgetItem::updateButtonState(
SkillStatus& skillStatus)