mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-20 14:09:58 +00:00
game_list: Join declarations and assignments in onTextChanged()
There's no need to keep these separate from one another.
This commit is contained in:
parent
1ac45342dd
commit
251e92513a
1 changed files with 7 additions and 7 deletions
|
@ -162,15 +162,15 @@ void GameList::onTextChanged(const QString& newText) {
|
||||||
}
|
}
|
||||||
search_field->setFilterResult(rowCount, rowCount);
|
search_field->setFilterResult(rowCount, rowCount);
|
||||||
} else {
|
} else {
|
||||||
QStandardItem* child_file;
|
|
||||||
QString file_path, file_name, file_title, file_programmid;
|
|
||||||
int result_count = 0;
|
int result_count = 0;
|
||||||
for (int i = 0; i < rowCount; ++i) {
|
for (int i = 0; i < rowCount; ++i) {
|
||||||
child_file = item_model->item(i, 0);
|
const QStandardItem* child_file = item_model->item(i, 0);
|
||||||
file_path = child_file->data(GameListItemPath::FullPathRole).toString().toLower();
|
const QString file_path =
|
||||||
file_name = file_path.mid(file_path.lastIndexOf("/") + 1);
|
child_file->data(GameListItemPath::FullPathRole).toString().toLower();
|
||||||
file_title = child_file->data(GameListItemPath::TitleRole).toString().toLower();
|
QString file_name = file_path.mid(file_path.lastIndexOf('/') + 1);
|
||||||
file_programmid =
|
const QString file_title =
|
||||||
|
child_file->data(GameListItemPath::TitleRole).toString().toLower();
|
||||||
|
const QString file_programmid =
|
||||||
child_file->data(GameListItemPath::ProgramIdRole).toString().toLower();
|
child_file->data(GameListItemPath::ProgramIdRole).toString().toLower();
|
||||||
|
|
||||||
// Only items which filename in combination with its title contains all words
|
// Only items which filename in combination with its title contains all words
|
||||||
|
|
Loading…
Reference in a new issue