QTfrontend/model/ThemeModel.h
branchui-scaling
changeset 15288 c4fd2813b127
parent 14833 8ed0c3761640
equal deleted inserted replaced
13395:0135e64c6c66 15288:c4fd2813b127
    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();