QTfrontend/model/ThemeModel.h
changeset 14828 8ed0c3761640
parent 13267 48b23e6f26d9
equal deleted inserted replaced
14827:266f973745b8 14828:8ed0c3761640
    39 class ThemeModel : public QAbstractListModel
    39 class ThemeModel : public QAbstractListModel
    40 {
    40 {
    41         Q_OBJECT
    41         Q_OBJECT
    42 
    42 
    43     public:
    43     public:
    44         enum Roles { ActualNameRole = Qt::UserRole, IsDlcRole, IconPathRole, IsHiddenRole };
    44         enum Roles { ActualNameRole = Qt::UserRole, IsDlcRole, IconPathRole, IsHiddenRole, IsBackgroundThemeRole };
    45         explicit ThemeModel(QObject *parent = 0);
    45         explicit ThemeModel(QObject *parent = 0);
    46 
    46 
    47         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    47         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    48         QVariant data(const QModelIndex &index, int role) const;
    48         QVariant data(const QModelIndex &index, int role) const;
    49         ThemeFilterProxyModel * withoutDLC();
    49         ThemeFilterProxyModel * withoutDLC();