QTfrontend/model/ThemeModel.h
changeset 8475 f605bc59c603
parent 6952 7f70f37bbf08
child 9080 9b42757d7e71
equal deleted inserted replaced
8473:555235e90010 8475:f605bc59c603
    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