summaryrefslogtreecommitdiffstats
path: root/smtreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-06-03 21:06:30 +0200
committerArno <am@disconnect.de>2010-06-03 21:06:30 +0200
commit4d78abefd76d7d828a4ac078b80e8891ddb975e6 (patch)
tree77168d0a74272b0be7e8d78cf3c9322f6c9aed55 /smtreemodel.h
parentdaa5c2eb9148b9175302228a6bae257e84881846 (diff)
downloadSheMov-4d78abefd76d7d828a4ac078b80e8891ddb975e6.tar.gz
SheMov-4d78abefd76d7d828a4ac078b80e8891ddb975e6.tar.bz2
SheMov-4d78abefd76d7d828a4ac078b80e8891ddb975e6.zip
Started Treemodel for Archive
Implemented generic SmTreeItem, started on generic SmTreeModel.
Diffstat (limited to 'smtreemodel.h')
-rw-r--r--smtreemodel.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/smtreemodel.h b/smtreemodel.h
new file mode 100644
index 0000000..ede4b39
--- /dev/null
+++ b/smtreemodel.h
@@ -0,0 +1,27 @@
+/*
+ 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 SMTREEMODEL_H
+#define SMTREEMODEL_H
+
+#include <QAbstractItemModel>
+#include <QStringList>
+
+class SmTreeItem;
+
+class SmTreeModel : public QAbstractItemModel {
+ Q_OBJECT
+ public:
+ explicit SmTreeModel(const QStringList &headers, QObject *parent = 0);
+ ~SmTreeModel();
+
+ private:
+ QStringList mHeaders;
+ SmTreeItem *mRootItem;
+};
+
+#endif