mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-05 17:03:45 -04:00
Closes #3480 moves the game list model/worker/private stuff to qt_common for later use in QML - `qt_common/game_list/model.{cpp,h}` is the model - `yuzu/game/game_{grid,tree}.*` are the views - `yuzu/game/game_list.cpp` is the presenter This was done very lazily in a manner that "works" while largely maintaining existing structure as much as possible. Most of it is copy-paste, with some bonus reworks/cleanups thrown in. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4042 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: Lizzie <lizzie@eden-emu.dev>
26 lines
540 B
C++
26 lines
540 B
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QListView>
|
|
#include <QString>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
class GameCard;
|
|
class GameListModel;
|
|
|
|
class GameGrid : public QListView {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit GameGrid(QWidget* parent = nullptr);
|
|
|
|
void SetModel(GameListModel* model);
|
|
void ApplyFilter(const QString& edit_filter_text, GameListModel* model);
|
|
void UpdateIconSize();
|
|
|
|
private:
|
|
GameCard* m_gameCard = nullptr;
|
|
};
|