mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-18 20:00:34 +01:00
[desktop] Add basic carousel view (#4112)
Adds a basic carousel view, or essentially a horizontal list a la Android/Qt Quick. Lacks a lot of niceties like autoscroll, smooth shifts, etc. Will work on those later Also fixed a bug introduced recently that capped game icon size to 8 at the low end, breaking the None option Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4112 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: Shinmegumi <shinmegumi@eden-emu.dev> Reviewed-by: Lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
68aaea6085
commit
39be450fa3
16 changed files with 300 additions and 45 deletions
|
|
@ -15,12 +15,12 @@
|
|||
#include <QVBoxLayout>
|
||||
#include <QVector>
|
||||
#include <QWidget>
|
||||
#include <qabstractitemview.h>
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "core/core.h"
|
||||
#include "frontend_common/play_time_manager.h"
|
||||
#include "qt_common/config/uisettings.h"
|
||||
#include "qt_common/game_list/model.h"
|
||||
#include "qt_common/util/game.h"
|
||||
#include "yuzu/compatibility_list.h"
|
||||
|
||||
|
|
@ -38,6 +38,9 @@ class MainWindow;
|
|||
enum class AmLaunchType;
|
||||
enum class StartGameType;
|
||||
|
||||
class GameCarousel;
|
||||
|
||||
class QAbstractItemView;
|
||||
namespace Core {
|
||||
class System;
|
||||
}
|
||||
|
|
@ -151,7 +154,9 @@ private:
|
|||
|
||||
GameTree* tree_view = nullptr;
|
||||
GameGrid* grid_view = nullptr;
|
||||
GameCarousel* carousel_view = nullptr;
|
||||
GameListModel* item_model = nullptr;
|
||||
Settings::GameListMode game_list_mode;
|
||||
|
||||
ControllerNavigation* controller_navigation = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue