QTfrontend/model/themesmodel.h
changeset 6616 f77bb02b669f
parent 6061 15b4b485a1c5
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
     5 #include <QStringList>
     5 #include <QStringList>
     6 #include <QHash>
     6 #include <QHash>
     7 
     7 
     8 class ThemesModel : public QAbstractListModel
     8 class ThemesModel : public QAbstractListModel
     9 {
     9 {
    10     Q_OBJECT
    10         Q_OBJECT
    11 public:
    11     public:
    12     explicit ThemesModel(QStringList themes, QObject *parent = 0);
    12         explicit ThemesModel(QStringList themes, QObject *parent = 0);
    13 
    13 
    14     int rowCount(const QModelIndex &parent = QModelIndex()) const;
    14         int rowCount(const QModelIndex &parent = QModelIndex()) const;
    15     QVariant data(const QModelIndex &index, int role) const;
    15         QVariant data(const QModelIndex &index, int role) const;
    16     bool setData(const QModelIndex &index, const QVariant &value,
    16         bool setData(const QModelIndex &index, const QVariant &value,
    17                  int role = Qt::EditRole);
    17                      int role = Qt::EditRole);
    18 
    18 
    19 signals:
    19     signals:
    20 
    20 
    21 public slots:
    21     public slots:
    22 
    22 
    23 private:
    23     private:
    24 
    24 
    25     QList<QHash<int, QVariant> > m_data;
    25         QList<QHash<int, QVariant> > m_data;
    26 };
    26 };
    27 
    27 
    28 #endif // THEMESMODEL_H
    28 #endif // THEMESMODEL_H