From e412f30c2c8209ce1d563e5a449517eafc903127 Mon Sep 17 00:00:00 2001 From: Peter Albrecht <albrecpe@gmail.com> Date: Tue, 9 Jan 2024 10:28:05 +0100 Subject: [PATCH] StatusLabel: "Reset" -> "Clear"; Hide button when not needed --- source/RobotAPI/libraries/skills_gui/StatusLabel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/RobotAPI/libraries/skills_gui/StatusLabel.cpp b/source/RobotAPI/libraries/skills_gui/StatusLabel.cpp index 6affe9671..61b2aef2c 100644 --- a/source/RobotAPI/libraries/skills_gui/StatusLabel.cpp +++ b/source/RobotAPI/libraries/skills_gui/StatusLabel.cpp @@ -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 -- GitLab