feat: use WordRefList instead of std::foward_list for results
This commit is contained in:
parent
b53a4edeee
commit
a6146415df
19 changed files with 78 additions and 86 deletions
|
@ -122,8 +122,7 @@ void MainWindow::createSelectedFinder() {
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindow::showResults(
|
||||
const std::forward_list<const std::string *> &results) {
|
||||
void MainWindow::showResults(const WordRefList &results) {
|
||||
QStringList ui_results;
|
||||
for (auto word : results) {
|
||||
ui_results.append(QString::fromStdString(*word));
|
||||
|
|
|
@ -36,7 +36,7 @@ private:
|
|||
void loadWordList(std::filesystem::path path);
|
||||
void search(const QString &search_term);
|
||||
void createSelectedFinder();
|
||||
void showResults(const std::forward_list<const std::string *> &results);
|
||||
void showResults(const WordRefList &results);
|
||||
|
||||
private slots:
|
||||
void on_searchInput_textChanged(const QString &search_term);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue