summaryrefslogtreecommitdiffstats
path: root/actorcountmodel.h
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-11-09 13:53:06 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-11-09 13:53:06 +0000
commitcb507dfbef0e8401c1826a096026c005c50f9784 (patch)
treeeaeeb693c8541e975af5678e5470ffaa7588a96b /actorcountmodel.h
parent7e4fd320c0c74bc45e60de18ac5d2b656aa4d821 (diff)
downloadSheMov-cb507dfbef0e8401c1826a096026c005c50f9784.tar.gz
SheMov-cb507dfbef0e8401c1826a096026c005c50f9784.tar.bz2
SheMov-cb507dfbef0e8401c1826a096026c005c50f9784.zip
-changed editarchiveitemdialog to actorwidget
-added actor statistics git-svn-id: file:///var/svn/repos2/shemov/trunk@423 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'actorcountmodel.h')
-rw-r--r--actorcountmodel.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/actorcountmodel.h b/actorcountmodel.h
new file mode 100644
index 0000000..aa605aa
--- /dev/null
+++ b/actorcountmodel.h
@@ -0,0 +1,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
+