|
|
|
@ -27,9 +27,8 @@ static QPixmap GetDefaultIcon(bool large) {
|
|
|
|
|
class GameListItem : public QStandardItem {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
GameListItem() : QStandardItem() {}
|
|
|
|
|
GameListItem(const QString& string) : QStandardItem(string) {}
|
|
|
|
|
virtual ~GameListItem() override {}
|
|
|
|
|
GameListItem() = default;
|
|
|
|
|
explicit GameListItem(const QString& string) : QStandardItem(string) {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -45,9 +44,8 @@ public:
|
|
|
|
|
static const int TitleRole = Qt::UserRole + 2;
|
|
|
|
|
static const int ProgramIdRole = Qt::UserRole + 3;
|
|
|
|
|
|
|
|
|
|
GameListItemPath() : GameListItem() {}
|
|
|
|
|
GameListItemPath(const QString& game_path, const std::vector<u8>& smdh_data, u64 program_id)
|
|
|
|
|
: GameListItem() {
|
|
|
|
|
GameListItemPath() = default;
|
|
|
|
|
GameListItemPath(const QString& game_path, const std::vector<u8>& smdh_data, u64 program_id) {
|
|
|
|
|
setData(game_path, FullPathRole);
|
|
|
|
|
setData(qulonglong(program_id), ProgramIdRole);
|
|
|
|
|
}
|
|
|
|
@ -75,8 +73,8 @@ class GameListItemSize : public GameListItem {
|
|
|
|
|
public:
|
|
|
|
|
static const int SizeRole = Qt::UserRole + 1;
|
|
|
|
|
|
|
|
|
|
GameListItemSize() : GameListItem() {}
|
|
|
|
|
GameListItemSize(const qulonglong size_bytes) : GameListItem() {
|
|
|
|
|
GameListItemSize() = default;
|
|
|
|
|
explicit GameListItemSize(const qulonglong size_bytes) {
|
|
|
|
|
setData(size_bytes, SizeRole);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|