13 std::optional<skills::ProviderID> provider_opt;
25 if (provider_opt == std::nullopt)
53 this->setTitle(QString::fromStdString(skillId.
toString()));
70 skillDetailsTreeWidget->setEditTriggers(QAbstractItemView::EditTrigger::NoEditTriggers);
74 SkillDetailGroupBox::handleExecutionRequest()
77 auto skillId = skillDetailsTreeWidget->
getShownId();
78 if (skillId.has_value())
80 memory->startExecutionWithParams(skillId.value(),
data);
85 SkillDetailGroupBox::resizeEvent(QResizeEvent* event)
87 QGroupBox::resizeEvent(event);
92 SkillDetailGroupBox::setupUi()
96 this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
99 this->executeSkillButton =
new QPushButton();
100 this->profileMenuWidget =
new ProfileMenuWidget(this->
memory,
this);
101 this->skillDetailsTreeWidget =
new SkillDetailsTreeWidget(this->
memory,
this);
102 this->skillDescriptionWidget =
new SkillDescriptionWidget(
this);
103 this->layout =
new QVBoxLayout();
104 this->splitter =
new QSplitter();
105 splitter->setOrientation(Qt::Orientation::Vertical);
108 this->setLayout(layout);
110 layout->addWidget(this->profileMenuWidget);
111 layout->addWidget(splitter);
112 splitter->addWidget(this->skillDescriptionWidget);
113 splitter->addWidget(this->skillDetailsTreeWidget);
114 layout->addWidget(this->executeSkillButton);
117 this->executeSkillButton->setText(
120 QPixmap pix(QString::fromStdString(
":icons/run.svg"));
122 this->executeSkillButton->setIcon(icon);
130 SkillDetailGroupBox::connectSignals()
132 connect(executeSkillButton,
133 &QPushButton::clicked,
135 &SkillDetailGroupBox::handleExecutionRequest);
138 skillDetailsTreeWidget,
143 &QPushButton::clicked,
144 skillDetailsTreeWidget,
147 &QPushButton::clicked,
148 skillDetailsTreeWidget,
151 &QPushButton::clicked,
152 skillDetailsTreeWidget,