summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/GroupModel.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-24 00:36:46 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-24 00:37:19 -0500
commit7ccc2e3c73637e771c08b2c82539d6c4a7a5f0d7 (patch)
treee8e28b88e60e7f0790333b88fd9f6c9206da3e89 /sigmodr/tree/GroupModel.cpp
parent1f54a4e8a8a662664355b8e2775d6e0d019399b5 (diff)
downloadsigen-7ccc2e3c73637e771c08b2c82539d6c4a7a5f0d7.tar.gz
sigen-7ccc2e3c73637e771c08b2c82539d6c4a7a5f0d7.tar.xz
sigen-7ccc2e3c73637e771c08b2c82539d6c4a7a5f0d7.zip
Moved sigmodrtree into namespace Sigmodr::Tree
Diffstat (limited to 'sigmodr/tree/GroupModel.cpp')
-rw-r--r--sigmodr/tree/GroupModel.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/sigmodr/tree/GroupModel.cpp b/sigmodr/tree/GroupModel.cpp
index b37cfad4..186c5e86 100644
--- a/sigmodr/tree/GroupModel.cpp
+++ b/sigmodr/tree/GroupModel.cpp
@@ -21,52 +21,52 @@
// Sigmodr tree includes
#include "BaseObjectModel.h"
-Sigmodr::GroupModel::GroupModel(BaseModel* parent, Sigmod::Object* object, const QString& name) :
+Sigmodr::Tree::GroupModel::GroupModel(BaseModel* parent, Sigmod::Object* object, const QString& name) :
BaseModel(parent, object, name),
Grouping()
{
}
-Sigmodr::GroupModel::~GroupModel()
+Sigmodr::Tree::GroupModel::~GroupModel()
{
clearData();
}
-QVariant Sigmodr::GroupModel::data(int role) const
+QVariant Sigmodr::Tree::GroupModel::data(int role) const
{
if (role == Qt::DisplayRole)
return m_name;
return BaseModel::data(role);
}
-int Sigmodr::GroupModel::rowCount() const
+int Sigmodr::Tree::GroupModel::rowCount() const
{
return m_objects.size();
}
-Qt::ItemFlags Sigmodr::GroupModel::flags() const
+Qt::ItemFlags Sigmodr::Tree::GroupModel::flags() const
{
return Qt::ItemIsDropEnabled | Qt::ItemIsEnabled;
}
-Sigmodr::BaseModel* Sigmodr::GroupModel::childItem(const int row)
+Sigmodr::Tree::BaseModel* Sigmodr::Tree::GroupModel::childItem(const int row)
{
if (row < m_objects.size())
return m_objects[row];
return NULL;
}
-Qt::DropActions Sigmodr::GroupModel::supportedDragActions() const
+Qt::DropActions Sigmodr::Tree::GroupModel::supportedDragActions() const
{
return 0;
}
-Qt::DropActions Sigmodr::GroupModel::supportedDropActions() const
+Qt::DropActions Sigmodr::Tree::GroupModel::supportedDropActions() const
{
return Qt::CopyAction | Qt::MoveAction;
}
-void Sigmodr::GroupModel::addChild(BaseModel* model)
+void Sigmodr::Tree::GroupModel::addChild(BaseModel* model)
{
connect(model, SIGNAL(rowChanged(int)), this, SLOT(childRowChanged(int)));
connect(model, SIGNAL(rowsChanged(QList<int>)), this, SLOT(childRowsChanged(QList<int>)));
@@ -74,7 +74,7 @@ void Sigmodr::GroupModel::addChild(BaseModel* model)
emit(rowChanged(m_objects.size() - 1));
}
-int Sigmodr::GroupModel::findChild(BaseModel* model) const
+int Sigmodr::Tree::GroupModel::findChild(BaseModel* model) const
{
return find(model);
}