QTfrontend/model/ThemeModel.h
branchwebgl
changeset 8833 c13ebed437cb
parent 8475 f605bc59c603
child 9080 9b42757d7e71
equal deleted inserted replaced
8450:404ddce27b23 8833:c13ebed437cb
    37 class ThemeModel : public QAbstractListModel
    37 class ThemeModel : public QAbstractListModel
    38 {
    38 {
    39         Q_OBJECT
    39         Q_OBJECT
    40 
    40 
    41     public:
    41     public:
       
    42         enum Roles { ActualNameRole = Qt::UserRole, IsDlcRole, IconPathRole };
    42         explicit ThemeModel(QObject *parent = 0);
    43         explicit ThemeModel(QObject *parent = 0);
    43 
    44 
    44         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    45         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    45         QVariant data(const QModelIndex &index, int role) const;
    46         QVariant data(const QModelIndex &index, int role) const;
    46 
    47