9 SkillGroupBox::handleSearch()
11 std::string search = this->searchBar->text().toStdString();
16 SkillGroupBox::filterAndFetch()
18 memory->updateFromMemory();
25 setTitle(QString::fromStdString(observerName));
41 SkillGroupBox::setupUi()
45 this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
49 this->searchBar =
new QLineEdit();
50 this->acceptSearchButton =
new QPushButton();
54 QHBoxLayout* searchLayout =
new QHBoxLayout();
55 QVBoxLayout* layout =
new QVBoxLayout();
56 this->setLayout(layout);
57 layout->addLayout(searchLayout);
58 layout->addWidget(this->skillTreeWidget);
60 searchLayout->addWidget(this->searchBar);
61 searchLayout->addWidget(this->acceptSearchButton);
64 this->searchBar->setPlaceholderText(QString::fromStdString(
"Search ..."));
65 this->acceptSearchButton->setText(QString::fromStdString(
"Update and Search"));
68 this->searchBar->setToolTip(
69 QString::fromStdString(
"Accepting the search (with Enter) searches all currently known "
70 "skills. This is not the same as 'Update & Search'!"));
76 SkillGroupBox::connectSignals()
79 this->acceptSearchButton, &QPushButton::clicked,
this, &SkillGroupBox::filterAndFetch);
80 connect(this->searchBar, &QLineEdit::editingFinished,
this, &SkillGroupBox::handleSearch);
81 connect(this->searchBar, &QLineEdit::textChanged,
this, &SkillGroupBox::handleSearch);
91 connect(skillTreeWidget,