diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-05 01:35:06 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-05 01:41:22 +0200 |
commit | f297e9ff22b245ca5050d63a727b1d1e59840709 (patch) | |
tree | 69f93c7f2bd5f8ca268593b910f2fd7862b44deb | |
parent | yuzu/configure_service: Silence -Wswitch (diff) | |
download | yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.tar yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.tar.gz yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.tar.bz2 yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.tar.lz yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.tar.xz yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.tar.zst yuzu-f297e9ff22b245ca5050d63a727b1d1e59840709.zip |
-rw-r--r-- | src/yuzu/game_list.cpp | 8 | ||||
-rw-r--r-- | src/yuzu/game_list_p.h | 9 |
2 files changed, 12 insertions, 5 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index d5fab2f1f..a2b88c787 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -172,9 +172,7 @@ void GameList::onTextChanged(const QString& new_text) { const int folder_count = tree_view->model()->rowCount(); QString edit_filter_text = new_text.toLower(); QStandardItem* folder; - QStandardItem* child; int children_total = 0; - QModelIndex root_index = item_model->invisibleRootItem()->index(); // If the searchfield is empty every item is visible // Otherwise the filter gets applied @@ -272,6 +270,8 @@ void GameList::onUpdateThemedIcons() { .scaled(icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), Qt::DecorationRole); break; + default: + break; } } } @@ -392,6 +392,8 @@ void GameList::ValidateEntry(const QModelIndex& item) { case GameListItemType::AddDir: emit AddDirectory(); break; + default: + break; } } @@ -462,6 +464,8 @@ void GameList::PopupContextMenu(const QPoint& menu_location) { case GameListItemType::SysNandDir: AddPermDirPopup(context_menu, selected); break; + default: + break; } context_menu.exec(tree_view->viewport()->mapToGlobal(menu_location)); } diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index a8d888fee..1c2b37afd 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h @@ -247,7 +247,7 @@ public: Qt::DecorationRole); setData(QObject::tr("System Titles"), Qt::DisplayRole); break; - case GameListItemType::CustomDir: + case GameListItemType::CustomDir: { const QString icon_name = QFileInfo::exists(game_dir->path) ? QStringLiteral("folder") : QStringLiteral("bad_folder"); @@ -256,8 +256,11 @@ public: Qt::DecorationRole); setData(game_dir->path, Qt::DisplayRole); break; - }; - }; + } + default: + break; + } + } int type() const override { return static_cast<int>(dir_type); |