Skip to content
Snippets Groups Projects
Commit e412f30c authored by Peter Albrecht's avatar Peter Albrecht
Browse files

StatusLabel: "Reset" -> "Clear"; Hide button when not needed

parent 3d5fc90c
No related branches found
No related tags found
1 merge request!406Refactor skill memory GUI
Pipeline #17028 passed
......@@ -8,7 +8,7 @@ namespace armarx::skills::gui
StatusLabel::StatusLabel()
{
this->label = new QLabel("");
this->resetButton = new QPushButton("Reset");
this->resetButton = new QPushButton("Clear");
this->setupUi();
}
......@@ -16,12 +16,14 @@ namespace armarx::skills::gui
StatusLabel::handleMessage(const std::string& message)
{
this->label->setText(QString::fromStdString(message));
this->resetButton->setHidden(false);
}
void
StatusLabel::resetLabel()
{
this->label->setText(QString::fromStdString(""));
this->resetButton->setHidden(true);
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment