diff --git a/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.cpp b/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.cpp index cff01b05994a06a53604380a14e95ee3bde687fb..20295978a7ea67e75136277af2a1e617e5a9aae5 100644 --- a/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.cpp +++ b/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.cpp @@ -34,8 +34,9 @@ namespace armarx::skills::gui setArgsFromClipboard->setText(QString::fromStdString(SET_ARGS_BUTTON_TEXT)); copyArgsToClipboard->setText(QString::fromStdString(COPY_ARGS_BUTTON_TEXT)); resetArgsToProfile->setText(QString::fromStdString(RESET_ARGS_BUTTON_TEXT)); - profileSelector->setCurrentText(QString::fromStdString(DEFAULT_PROFILE_TEXT)); + profileSelector->addItem(QString::fromStdString(DEFAULT_PROFILE_TEXT)); profileSelector->setDisabled(true); + profileSelector->setToolTip(QString::fromStdString(PROFILE_NOT_IMPLEMENTED)); } diff --git a/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.h b/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.h index 2041c2e9fc72e1b0a0e340e085ae3940b73cb57a..32dc1f278649060b97d58f680f2a8c74d5e1f75a 100644 --- a/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.h +++ b/source/RobotAPI/libraries/skills_gui/skill_details/ProfileMenuWidget.h @@ -17,6 +17,8 @@ namespace armarx::skills::gui static const constexpr char* COPY_ARGS_BUTTON_TEXT = "Copy Args to Clipboard"; static const constexpr char* RESET_ARGS_BUTTON_TEXT = "Reset Args to Profile"; static const constexpr char* DEFAULT_PROFILE_TEXT = "<No Profile selected. Using root>"; + static const constexpr char* PROFILE_NOT_IMPLEMENTED = + "Profiles other than the root profile are currently not supported."; // contents are public, as this class is just a convenience wrapper QPushButton* setArgsFromClipboard = nullptr; diff --git a/source/RobotAPI/libraries/skills_gui/skill_details/SkillDetailsGroupBox.cpp b/source/RobotAPI/libraries/skills_gui/skill_details/SkillDetailsGroupBox.cpp index 95c1d5a9b7cdb4748475ed8bdb2c3b7137a3845d..b54d55c8a21b3ef8f1eb912e52473a9bcfbd230f 100644 --- a/source/RobotAPI/libraries/skills_gui/skill_details/SkillDetailsGroupBox.cpp +++ b/source/RobotAPI/libraries/skills_gui/skill_details/SkillDetailsGroupBox.cpp @@ -59,14 +59,6 @@ namespace armarx::skills::gui // description widget skillDescriptionWidget->setSkillDescription(descr); - // select root profile - profileMenuWidget->profileSelector->setCurrentIndex(0); - - // remove any profile - while (profileMenuWidget->profileSelector->count() > 1) - { - profileMenuWidget->profileSelector->removeItem(1); - } // add new profiles for this skill // TODO: Where stored?