summaryrefslogtreecommitdiffstats
path: root/src/model.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/model.h')
-rw-r--r--src/model.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/model.h b/src/model.h
new file mode 100644
index 0000000..d5a529a
--- /dev/null
+++ b/src/model.h
@@ -0,0 +1,32 @@
+#ifndef MODEL_H
+#define MODEL_H
+
+#include <QAbstractListModel>
+#include <QFileIconProvider>
+#include <QVector>
+#include "DataEntry.h"
+#include <vector>
+
+class Model : public QAbstractListModel
+{
+ Q_OBJECT
+
+public:
+ Model(std::vector<DataEntry>, QObject *parent = 0);
+ ~Model();
+
+ int rowCount(const QModelIndex &parent) const;
+
+ QVariant data(const QModelIndex &index, int role) const;
+// QVariant headerData(int section, Qt::Orientation orientation, int role) const;
+
+private:
+
+ int rc;
+ std::vector<DataEntry> entries;
+ //QVector<QString> *list;
+ QFileIconProvider iconProvider;
+};
+
+#endif // MODEL_H
+