Changeset View
Changeset View
Standalone View
Standalone View
src/PackageModel/PackageModel.h
Show All 31 Lines | 31 | public: | |||
---|---|---|---|---|---|
32 | enum { | 32 | enum { | ||
33 | NameRole = Qt::UserRole, | 33 | NameRole = Qt::UserRole, | ||
34 | IconRole = Qt::UserRole + 1, | 34 | IconRole = Qt::UserRole + 1, | ||
35 | DescriptionRole = Qt::UserRole + 2, | 35 | DescriptionRole = Qt::UserRole + 2, | ||
36 | ActionRole = Qt::UserRole + 3, | 36 | ActionRole = Qt::UserRole + 3, | ||
37 | StatusRole = Qt::UserRole + 4, | 37 | StatusRole = Qt::UserRole + 4, | ||
38 | SupportRole = Qt::UserRole + 5, | 38 | SupportRole = Qt::UserRole + 5, | ||
39 | InstalledSizeRole = Qt::UserRole + 6, | 39 | InstalledSizeRole = Qt::UserRole + 6, | ||
40 | InstalledVersionRole = Qt::UserRole + 7, | 40 | InstalledSizeDisplayRole = Qt::UserRole + 7, | ||
41 | AvailableVersionRole = Qt::UserRole + 8 | 41 | InstalledVersionRole = Qt::UserRole + 8, | ||
42 | AvailableVersionRole = Qt::UserRole + 9 | ||||
42 | }; | 43 | }; | ||
43 | explicit PackageModel(QObject *parent = 0); | 44 | explicit PackageModel(QObject *parent = 0); | ||
44 | 45 | | |||
45 | int rowCount(const QModelIndex &parent = QModelIndex()) const; | 46 | int rowCount(const QModelIndex &parent = QModelIndex()) const; | ||
46 | int columnCount(const QModelIndex &parent = QModelIndex()) const; | 47 | int columnCount(const QModelIndex &parent = QModelIndex()) const; | ||
47 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | 48 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | ||
48 | QVariant headerData(int section, Qt::Orientation orientation, int role) const; | 49 | QVariant headerData(int section, Qt::Orientation orientation, int role) const; | ||
49 | 50 | | |||
Show All 13 Lines |