mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-12 14:18:49 -04:00
Edit game_list_p.h
This commit is contained in:
@@ -278,6 +278,26 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class GameListItemOnline : public GameListItem {
|
||||||
|
public:
|
||||||
|
static constexpr int OnlineRole = SortRole;
|
||||||
|
|
||||||
|
GameListItemOnline() {
|
||||||
|
|
||||||
|
setData(QStringLiteral("N/A"), Qt::DisplayRole);
|
||||||
|
setData(QStringLiteral("N/A"), OnlineRole);
|
||||||
|
}
|
||||||
|
|
||||||
|
explicit GameListItemOnline(const QString& online_status) {
|
||||||
|
setData(online_status, Qt::DisplayRole);
|
||||||
|
setData(online_status, OnlineRole);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool operator<(const QStandardItem& other) const override {
|
||||||
|
return data(OnlineRole).toString() < other.data(OnlineRole).toString();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class GameListDir : public GameListItem {
|
class GameListDir : public GameListItem {
|
||||||
public:
|
public:
|
||||||
static constexpr int GameDirRole = Qt::UserRole + 2;
|
static constexpr int GameDirRole = Qt::UserRole + 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user