From c81259d5ea3cf4659affdb51b7622c61685a82ff Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 28 Feb 2009 01:08:35 -0500 Subject: Added the Sigmod namespace to the sigmodrtree sources --- sigmodr/tree/AuthorModel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sigmodr/tree/AuthorModel.cpp') 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 +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(m_object)->name(); + return qobject_cast(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(m_object), NULL); + QWidget* widget = new AuthorUI(qobject_cast(m_object), NULL); return QVariant::fromValue(widget); } else if (role == BaseModel::ContextMenuRole) -- cgit