QTfrontend/model/roomslistmodel.h
changeset 6983 ede55af89e78
parent 6973 582ca7e8e338
child 6993 47830cf50574
equal deleted inserted replaced
6982:8d41d22a291d 6983:ede55af89e78
    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