equal
deleted
inserted
replaced
13 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
13 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
14 int rowCount(const QModelIndex & parent) const; |
14 int rowCount(const QModelIndex & parent) const; |
15 int columnCount(const QModelIndex & parent) const; |
15 int columnCount(const QModelIndex & parent) const; |
16 QVariant data(const QModelIndex &index, int role) const; |
16 QVariant data(const QModelIndex &index, int role) const; |
17 |
17 |
|
18 public slots: |
|
19 void setRoomsList(const QStringList & rooms); |
|
20 void addRoom(const QStringList & info); |
|
21 void removeRoom(const QString & name); |
|
22 void updateRoom(const QString & name, const QStringList & info); |
|
23 |
18 private: |
24 private: |
19 QList<QStringList> m_data; |
25 QList<QStringList> m_data; |
20 QStringList m_headerData; |
26 QStringList m_headerData; |
|
27 |
|
28 QStringList roomInfo2RoomRecord(const QStringList & info); |
21 }; |
29 }; |
22 |
30 |
23 #endif // ROOMSLISTMODEL_H |
31 #endif // ROOMSLISTMODEL_H |