equal
deleted
inserted
replaced
|
1 #ifndef ROOMSLISTMODEL_H |
|
2 #define ROOMSLISTMODEL_H |
|
3 |
|
4 #include <QAbstractTableModel> |
|
5 #include <QStringList> |
|
6 |
|
7 class RoomsListModel : public QAbstractTableModel |
|
8 { |
|
9 Q_OBJECT |
|
10 public: |
|
11 explicit RoomsListModel(QObject *parent = 0); |
|
12 |
|
13 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
|
14 int rowCount(const QModelIndex & parent) const; |
|
15 int columnCount(const QModelIndex & parent) const; |
|
16 QVariant data(const QModelIndex &index, int role) const; |
|
17 |
|
18 private: |
|
19 QList<QStringList> m_data; |
|
20 QStringList m_headerData; |
|
21 }; |
|
22 |
|
23 #endif // ROOMSLISTMODEL_H |