From 2124d406af6e50ae5c7fbb88ab5b1e0a9bb08ca2 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 3 Feb 2009 02:59:27 -0500 Subject: Moved const values in BaseModel to the source file --- sigmodr/models/BaseModel.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sigmodr/models/BaseModel.cpp') 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 + * Copyright 2008-2009 Ben Boeckel * * 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 #include +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), -- cgit