summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/AuthorModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/AuthorModel.cpp')
-rw-r--r--sigmodr/tree/AuthorModel.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/sigmodr/tree/AuthorModel.cpp b/sigmodr/tree/AuthorModel.cpp
index 20eb0491..14d7d9df 100644
--- a/sigmodr/tree/AuthorModel.cpp
+++ b/sigmodr/tree/AuthorModel.cpp
@@ -30,12 +30,15 @@
// KDE includes
#include <KMenu>
-Sigmodr::Tree::AuthorModel::AuthorModel(BaseModel* parent, Sigmod::Author* author) :
+using namespace Sigmodr::Widgets;
+using namespace Sigmodr::Tree;
+
+AuthorModel::AuthorModel(BaseModel* parent, Sigmod::Author* author) :
ObjectModel(parent, author)
{
}
-QVariant Sigmodr::Tree::AuthorModel::data(int role) const
+QVariant AuthorModel::data(int role) const
{
if (role == Qt::DisplayRole)
return qobject_cast<Sigmod::Author*>(m_object)->name();
@@ -59,7 +62,7 @@ QVariant Sigmodr::Tree::AuthorModel::data(int role) const
return ObjectModel::data(role);
}
-void Sigmodr::Tree::AuthorModel::deleteSelf()
+void AuthorModel::deleteSelf()
{
qobject_cast<GroupModel*>(m_parent)->deleteObject(this);
}