summaryrefslogtreecommitdiffstats
path: root/actorcountmodel.h
blob: aa605aa91190e07aef512de8b9269185c48300f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version
  2 of the License, or (at your option) any later version.
*/

#ifndef ACTORCOUNTMODEL_H
#define ACTORCOUNTMODEL_H

#include <QAbstractItemModel>

class ActorCountModel : public QAbstractItemModel {
	Q_OBJECT
	public:
		ActorCountModel(QObject *parent = 0);
		virtual ~ActorCountModel();
		QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
		int rowCount(const QModelIndex &idx) const;
		int columnCount(const QModelIndex &idx) const;
		QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const;
		QVariant headerData(int section, Qt::Orientation o, int role = Qt::DisplayRole) const;
		QModelIndex parent(const QModelIndex &) const { return QModelIndex(); };

	private:
		QList<QList<QVariant*> >mItems;
		QList<QVariant> mHeaderData;
};

#endif