diff -r ddd391083f50 -r c906dc78091f QTfrontend/model/roomslistmodel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/QTfrontend/model/roomslistmodel.h Thu Feb 23 00:46:03 2012 +0400 @@ -0,0 +1,23 @@ +#ifndef ROOMSLISTMODEL_H +#define ROOMSLISTMODEL_H + +#include +#include + +class RoomsListModel : public QAbstractTableModel +{ + Q_OBJECT +public: + explicit RoomsListModel(QObject *parent = 0); + + QVariant headerData(int section, Qt::Orientation orientation, int role) const; + int rowCount(const QModelIndex & parent) const; + int columnCount(const QModelIndex & parent) const; + QVariant data(const QModelIndex &index, int role) const; + +private: + QList m_data; + QStringList m_headerData; +}; + +#endif // ROOMSLISTMODEL_H