diff options
Diffstat (limited to 'sigmodr/models/BaseModel.cpp')
| -rw-r--r-- | sigmodr/models/BaseModel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sigmodr/models/BaseModel.cpp b/sigmodr/models/BaseModel.cpp index 12c88711..643e62d3 100644 --- a/sigmodr/models/BaseModel.cpp +++ b/sigmodr/models/BaseModel.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * 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 @@ -31,6 +31,12 @@ #include <QtCore/QFile> #include <QtXml/QDomDocument> +const int Sigmodr::BaseModel::TypeRole = Qt::UserRole; +const int Sigmodr::BaseModel::DropAcceptRole = Qt::UserRole + 1; +const int Sigmodr::BaseModel::XmlRole = Qt::UserRole + 2; +const int Sigmodr::BaseModel::WidgetRole = Qt::UserRole + 3; +const int Sigmodr::BaseModel::ContextMenuRole = Qt::UserRole + 4; + Sigmodr::BaseModel::BaseModel(BaseModel* parent, Sigmod::Object* object, const QString& name) : m_parent(parent), m_object(object), |
