Skip to content
Snippets Groups Projects

Fix: skill gui live search

Merged Peter Albrecht requested to merge feature/skillMemoryGUI into master
2 files
+ 19
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -12,6 +12,13 @@ namespace armarx::skills::gui
emit searchRequest(search);
}
void
SkillGroupBox::filterAndFetch()
{
memory->updateFromMemory();
handleSearch();
}
void
SkillGroupBox::connectGui(std::string observerName)
{
@@ -55,7 +62,12 @@ namespace armarx::skills::gui
// text
this->searchBar->setPlaceholderText(QString::fromStdString("Search ..."));
this->acceptSearchButton->setText(QString::fromStdString("Search"));
this->acceptSearchButton->setText(QString::fromStdString("Update and Search"));
// some further information to explain the search bar
this->searchBar->setToolTip(
QString::fromStdString("Accepting the search (with Enter) searches all currently known "
"skills. This is not the same as 'Update & Search'!"));
connectSignals();
}
@@ -64,7 +76,7 @@ namespace armarx::skills::gui
SkillGroupBox::connectSignals()
{
connect(
this->acceptSearchButton, &QPushButton::clicked, this, &SkillGroupBox::handleSearch);
this->acceptSearchButton, &QPushButton::clicked, this, &SkillGroupBox::filterAndFetch);
connect(this->searchBar, &QLineEdit::editingFinished, this, &SkillGroupBox::handleSearch);
connect(this,
&SkillGroupBox::searchRequest,
Loading