equal
deleted
inserted
replaced
25 #define HEDGEWARS_ROOMSLISTMODEL_H |
25 #define HEDGEWARS_ROOMSLISTMODEL_H |
26 |
26 |
27 #include <QAbstractTableModel> |
27 #include <QAbstractTableModel> |
28 #include <QStringList> |
28 #include <QStringList> |
29 |
29 |
|
30 #include "DataManager.h" |
|
31 |
30 class RoomsListModel : public QAbstractTableModel |
32 class RoomsListModel : public QAbstractTableModel |
31 { |
33 { |
32 Q_OBJECT |
34 Q_OBJECT |
33 public: |
35 public: |
34 explicit RoomsListModel(QObject *parent = 0); |
36 explicit RoomsListModel(QObject *parent = 0); |
47 |
49 |
48 private: |
50 private: |
49 const int c_nColumns; |
51 const int c_nColumns; |
50 QList<QStringList> m_data; |
52 QList<QStringList> m_data; |
51 QStringList m_headerData; |
53 QStringList m_headerData; |
|
54 MapModel * m_mapModel; |
52 |
55 |
53 QStringList roomInfo2RoomRecord(const QStringList & info); |
56 QStringList roomInfo2RoomRecord(const QStringList & info); |
54 }; |
57 }; |
55 |
58 |
56 #endif // HEDGEWARS_ROOMSLISTMODEL_H |
59 #endif // HEDGEWARS_ROOMSLISTMODEL_H |