diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:38:27 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:38:27 -0500 |
commit | b90f2dc771801bcfadef322cea8ddc402283d4eb (patch) | |
tree | 81e102282933abe87e43a0932d593331aac1d4f5 /sigmodr/tree/ObjectModel.cpp | |
parent | 560054e99ecd692b89fd8fbedcf69d08e45f41bd (diff) | |
download | sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.tar.gz sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.tar.xz sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.zip |
Fixed namespacing in sigmodr tree
Diffstat (limited to 'sigmodr/tree/ObjectModel.cpp')
-rw-r--r-- | sigmodr/tree/ObjectModel.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sigmodr/tree/ObjectModel.cpp b/sigmodr/tree/ObjectModel.cpp index 1476a1b0..ceaa5898 100644 --- a/sigmodr/tree/ObjectModel.cpp +++ b/sigmodr/tree/ObjectModel.cpp @@ -24,26 +24,28 @@ // Qt includes #include <QtXml/QDomDocument> -Sigmodr::Tree::ObjectModel::ObjectModel(BaseModel* parent, Sigmod::Object* object) : +using namespace Sigmodr::Tree; + +ObjectModel::ObjectModel(BaseModel* parent, Sigmod::Object* object) : BaseObjectModel(parent, object) { } -Sigmodr::Tree::ObjectModel::~ObjectModel() +ObjectModel::~ObjectModel() { } -int Sigmodr::Tree::ObjectModel::rowCount() const +int ObjectModel::rowCount() const { return 0; } -QVariant Sigmodr::Tree::ObjectModel::data(int role) const +QVariant ObjectModel::data(int role) const { return BaseObjectModel::data(role); } -bool Sigmodr::Tree::ObjectModel::setData(const QVariant& value, int role) +bool ObjectModel::setData(const QVariant& value, int role) { if (role == BaseModel::XmlRole) { @@ -61,13 +63,13 @@ bool Sigmodr::Tree::ObjectModel::setData(const QVariant& value, int role) return false; } -Sigmodr::Tree::BaseModel* Sigmodr::Tree::ObjectModel::childItem(const int row) +BaseModel* ObjectModel::childItem(const int row) { Q_UNUSED(row) return NULL; } -QString Sigmodr::Tree::ObjectModel::types() const +QString ObjectModel::types() const { return type(); } |