summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/yuzu/game_list.cpp4
-rw-r--r--src/yuzu/game_list.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index fffa57ce1..fae5be372 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -141,7 +141,7 @@ GameList::SearchField::SearchField(GameList* parent) : QWidget{parent} {
141 * @param userinput String containing all words getting checked 141 * @param userinput String containing all words getting checked
142 * @return true if the haystack contains all words of userinput 142 * @return true if the haystack contains all words of userinput
143 */ 143 */
144bool GameList::containsAllWords(const QString& haystack, const QString& userinput) const { 144bool GameList::ContainsAllWords(const QString& haystack, const QString& userinput) const {
145 const QStringList userinput_split = 145 const QStringList userinput_split =
146 userinput.split(' ', QString::SplitBehavior::SkipEmptyParts); 146 userinput.split(' ', QString::SplitBehavior::SkipEmptyParts);
147 147
@@ -180,7 +180,7 @@ void GameList::onTextChanged(const QString& newText) {
180 // The search is case insensitive because of toLower() 180 // The search is case insensitive because of toLower()
181 // I decided not to use Qt::CaseInsensitive in containsAllWords to prevent 181 // I decided not to use Qt::CaseInsensitive in containsAllWords to prevent
182 // multiple conversions of edit_filter_text for each game in the gamelist 182 // multiple conversions of edit_filter_text for each game in the gamelist
183 if (containsAllWords(file_name.append(" ").append(file_title), edit_filter_text) || 183 if (ContainsAllWords(file_name.append(' ').append(file_title), edit_filter_text) ||
184 (file_programmid.count() == 16 && edit_filter_text.contains(file_programmid))) { 184 (file_programmid.count() == 16 && edit_filter_text.contains(file_programmid))) {
185 tree_view->setRowHidden(i, root_index, false); 185 tree_view->setRowHidden(i, root_index, false);
186 ++result_count; 186 ++result_count;
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h
index bf8486b54..14db3956d 100644
--- a/src/yuzu/game_list.h
+++ b/src/yuzu/game_list.h
@@ -89,7 +89,7 @@ private:
89 89
90 void PopupContextMenu(const QPoint& menu_location); 90 void PopupContextMenu(const QPoint& menu_location);
91 void RefreshGameDirectory(); 91 void RefreshGameDirectory();
92 bool containsAllWords(const QString& haystack, const QString& userinput) const; 92 bool ContainsAllWords(const QString& haystack, const QString& userinput) const;
93 93
94 SearchField* search_field; 94 SearchField* search_field;
95 GMainWindow* main_window = nullptr; 95 GMainWindow* main_window = nullptr;