QTfrontend/themesmodel.h
branchhedgeroid
changeset 6224 42b256eca362
parent 6055 88cfcd9161d3
parent 6223 cc3eb9b7230f
child 6226 3106add9a5bf
equal deleted inserted replaced
6055:88cfcd9161d3 6224:42b256eca362
     1 #ifndef THEMESMODEL_H
       
     2 #define THEMESMODEL_H
       
     3 
       
     4 #include <QAbstractListModel>
       
     5 #include <QStringList>
       
     6 #include <QHash>
       
     7 
       
     8 class ThemesModel : public QAbstractListModel
       
     9 {
       
    10     Q_OBJECT
       
    11 public:
       
    12     explicit ThemesModel(QStringList themes, QObject *parent = 0);
       
    13 
       
    14     int rowCount(const QModelIndex &parent = QModelIndex()) const;
       
    15     QVariant data(const QModelIndex &index, int role) const;
       
    16     bool setData(const QModelIndex &index, const QVariant &value,
       
    17                  int role = Qt::EditRole);
       
    18 
       
    19 signals:
       
    20 
       
    21 public slots:
       
    22 
       
    23 private:
       
    24 
       
    25     QList<QHash<int, QVariant> > m_data;
       
    26 };
       
    27 
       
    28 #endif // THEMESMODEL_H