QTfrontend/model/roomslistmodel.h
author unc0rr
Thu, 23 Feb 2012 00:46:03 +0400
changeset 6732 c906dc78091f
child 6733 5abbc345a82f
permissions -rw-r--r--
Start switching to rooms list model. To be continued.

#ifndef ROOMSLISTMODEL_H
#define ROOMSLISTMODEL_H

#include <QAbstractTableModel>
#include <QStringList>

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<QStringList> m_data;
    QStringList m_headerData;
};

#endif // ROOMSLISTMODEL_H