summaryrefslogtreecommitdiffstats
path: root/logic/BaseVersionList.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/BaseVersionList.h')
-rw-r--r--logic/BaseVersionList.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/logic/BaseVersionList.h b/logic/BaseVersionList.h
index 584d6ca7..6089c31c 100644
--- a/logic/BaseVersionList.h
+++ b/logic/BaseVersionList.h
@@ -41,20 +41,17 @@ class BaseVersionList : public QAbstractListModel
public:
enum ModelRoles
{
- VersionPointerRole = 0x34B1CB48
- };
-
- enum VListColumns
- {
- // First column - Name
- NameColumn = 0,
-
- // Second column - Type
- TypeColumn,
-
- // Third column - Timestamp
- TimeColumn
+ VersionPointerRole = Qt::UserRole,
+ VersionRole,
+ VersionIdRole,
+ ParentGameVersionRole,
+ RecommendedRole,
+ TypeRole,
+ BranchRole,
+ PathRole,
+ ArchitectureRole
};
+ typedef QList<ModelRoles> RoleList;
explicit BaseVersionList(QObject *parent = 0);
@@ -78,10 +75,12 @@ public:
//////// List Model Functions ////////
virtual QVariant data(const QModelIndex &index, int role) const;
- virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
virtual int rowCount(const QModelIndex &parent) const;
virtual int columnCount(const QModelIndex &parent) const;
+ //! which roles are provided by this version list?
+ virtual RoleList providesRoles();
+
/*!
* \brief Finds a version by its descriptor.
* \param The descriptor of the version to find.