diff edres.h @ 403:d34922e6a244

Even more work towards the editor.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 19 Oct 2012 21:52:16 +0300
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/edres.h	Fri Oct 19 21:52:16 2012 +0300
@@ -0,0 +1,26 @@
+#ifndef RESOURCEMODEL_H
+#define RESOURCEMODEL_H
+
+#include <QAbstractTableModel>
+#include <QPair>
+#include <QList>
+
+class QEDResourceModel : public QAbstractTableModel
+{
+    Q_OBJECT
+    
+public:
+    QEDResourceModel(QObject *parent = 0);
+
+    int rowCount(const QModelIndex &parent) const;
+    int columnCount(const QModelIndex &parent) const;
+    QVariant data(const QModelIndex &index, int role) const;
+    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
+    Qt::ItemFlags flags(const QModelIndex &index) const;
+//    bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
+//    QList< QPair<QString, QString> > getList();
+
+private:
+};
+
+#endif