33 #include <ArmarXGui/applications/ArmarXGui/ui_UseCaseSelectorItem.h>
40 const QString& description,
41 const QString& configFilePath,
42 const QString& packageName,
48 this->setToolTip(configFilePath);
49 ui->titleLabel->setText(title);
50 ui->descriptionLabel->setText(description);
51 std::filesystem::path p(configFilePath.toStdString());
53 ui->filenameLabel->setText(QString(p.filename().string().c_str()) +
" in " + packageName +
55 QString finalPath = iconPath;
56 if (!iconPath.isEmpty())
58 if (!QFile::exists(iconPath))
63 if (!QFile::exists(finalPath))
67 if (!QFile::exists(finalPath))
73 finalPath = QString::fromStdString((path / iconPath.toStdString()).string());
76 if (QFile::exists(finalPath))
78 QPixmap pixmap(finalPath);
81 ui->iconLabel->setPixmap(pixmap.scaled(
86 ARMARX_INFO_S <<
"Cannot find image: " << iconPath.toStdString();
100 return configFilePath;
113 QPalette p(palette());
114 setAutoFillBackground(
true);
117 p.setColor(QPalette::Window, p.highlight().color());
121 p = qobject_cast<QWidget*>(parent())->palette();