summaryrefslogtreecommitdiffstats
path: root/mappingtreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-11-17 06:35:40 +0100
committerArno <am@disconnect.de>2012-11-17 06:35:40 +0100
commitc01144b29afc0879ebff89704b10095696721930 (patch)
treed01d833e5cfb1ef5c8ae555623ea53ee883f2b80 /mappingtreemodel.h
parent2defc44300bd18917e6e5e2327ebb72f951ff7b1 (diff)
downloadSheMov-c01144b29afc0879ebff89704b10095696721930.tar.gz
SheMov-c01144b29afc0879ebff89704b10095696721930.tar.bz2
SheMov-c01144b29afc0879ebff89704b10095696721930.zip
Yet another MappingTreeModel fix
Forgot to fix/rename MappingTreeResultModel... Adding pictures works again :)
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r--mappingtreemodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mappingtreemodel.h b/mappingtreemodel.h
index 90eca8c..228adee 100644
--- a/mappingtreemodel.h
+++ b/mappingtreemodel.h
@@ -95,15 +95,15 @@ class MappingTreeModel : public SmTreeModel {
class MappingTreeResultModel : public SmTreeModel {
Q_OBJECT
public:
- enum Roles { NameRole = Qt::UserRole + 1, MappingIdRole = Qt::UserRole + 2, ParentIdRole = Qt::UserRole + 3, MyIdRole = Qt::UserRole + 4 };
- enum Fields { Name = 0, MappingId = 1, ParentId = 2, MyId = 3 };
+ enum Roles { NameRole = Qt::UserRole + 1, MappingIdRole = Qt::UserRole + 2, ParentIdRole = Qt::UserRole + 3, DescIdRole = Qt::UserRole + 4 };
+ enum Fields { Name = 0, MappingId = 1, ParentId = 2, DescId = 3 };
enum { NumFields = 4 };
explicit MappingTreeResultModel(const QStringList &headers, QObject *parent = 0);
//data + flags
Qt::ItemFlags flags(const QModelIndex &index) const;
bool setData(const QModelIndex &index, const QVariant &value, int role);
- QModelIndex insertChild(const QVariant &data, int mappingId, int parentId, int myId, SmTreeItem *parent);
+ QModelIndex insertChild(const QVariant &data, int mappingId, int parentId, int descId, SmTreeItem *parent);
QList<QVariant> columnValues(int column) const;
void clearData();