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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sigmodr/tree/AuthorModel.cpp b/sigmodr/tree/AuthorModel.cpp
index 14d7d9df..5d379649 100644
--- a/sigmodr/tree/AuthorModel.cpp
+++ b/sigmodr/tree/AuthorModel.cpp
@@ -30,10 +30,11 @@
// KDE includes
#include <KMenu>
+using namespace Sigmod;
using namespace Sigmodr::Widgets;
using namespace Sigmodr::Tree;
-AuthorModel::AuthorModel(BaseModel* parent, Sigmod::Author* author) :
+AuthorModel::AuthorModel(BaseModel* parent, Author* author) :
ObjectModel(parent, author)
{
}
@@ -41,7 +42,7 @@ AuthorModel::AuthorModel(BaseModel* parent, Sigmod::Author* author) :
QVariant AuthorModel::data(int role) const
{
if (role == Qt::DisplayRole)
- return qobject_cast<Sigmod::Author*>(m_object)->name();
+ return qobject_cast<Author*>(m_object)->name();
else if (role == BaseModel::XmlRole)
{
QDomDocument xml(m_object->className());
@@ -50,7 +51,7 @@ QVariant AuthorModel::data(int role) const
}
else if (role == BaseModel::WidgetRole)
{
- QWidget* widget = new AuthorUI(qobject_cast<Sigmod::Author*>(m_object), NULL);
+ QWidget* widget = new AuthorUI(qobject_cast<Author*>(m_object), NULL);
return QVariant::fromValue(widget);
}
else if (role == BaseModel::ContextMenuRole)