20 m_warningIcon = warningIcon;
30 m_indexToPartMap[partIndex].partWidget = partTreeWidget;
31 m_indexToPartMap[partIndex].partWidgetParent = newPart;
38 PartPointers& partPointers = m_indexToPartMap[index];
43 bool foundFaultPart =
false;
45 auto* jointNode = partWidget->
getJoint(i);
49 foundFaultPart =
true;
65 for (
auto& part : m_indexToPartMap)
67 maxSize = maxSize.expandedTo(part.second.partWidget->getMaxElementSize());
70 for (
auto& part : m_indexToPartMap)
72 part.second.partWidget->setDesiredElementSize(maxSize);
75 QWidget::resizeEvent(event);
79void RobotWidgetTree::onRobotTitleDoubleClick()
84void RobotWidgetTree::onPartTitleDoubleClick(
int index)
int SIGNAL(int pid, int signum)
void setTitleIcon(const QIcon &icon)
void sig_titleDoubleClick()
void toggle(bool visible)
void setTitleBackgroundColor(const QColor &backgroundColor)
void addWidget(QWidget *widget)
void setTitle(const QString &string)
void removeTitleBackground()
void setJointMode(const JointItem::JointState &mode)
JointItemTree * getJoint(int index)
int numberOfJoints() const
const QColor hwFaultColor