summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/ItemModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/ItemModel.cpp')
-rw-r--r--sigmodr/tree/ItemModel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sigmodr/tree/ItemModel.cpp b/sigmodr/tree/ItemModel.cpp
index eb9402d3..11343a91 100644
--- a/sigmodr/tree/ItemModel.cpp
+++ b/sigmodr/tree/ItemModel.cpp
@@ -30,10 +30,11 @@
// KDE includes
#include <KMenu>
+using namespace Sigmod;
using namespace Sigmodr::Widgets;
using namespace Sigmodr::Tree;
-ItemModel::ItemModel(BaseModel* parent, Sigmod::Item* item) :
+ItemModel::ItemModel(BaseModel* parent, Item* item) :
ObjectModel(parent, item)
{
}
@@ -41,7 +42,7 @@ ItemModel::ItemModel(BaseModel* parent, Sigmod::Item* item) :
QVariant ItemModel::data(int role) const
{
if (role == Qt::DisplayRole)
- return qobject_cast<Sigmod::Item*>(m_object)->name();
+ return qobject_cast<Item*>(m_object)->name();
else if (role == BaseModel::XmlRole)
{
QDomDocument xml(m_object->className());
@@ -50,7 +51,7 @@ QVariant ItemModel::data(int role) const
}
else if (role == BaseModel::WidgetRole)
{
- QWidget* widget = new ItemUI(qobject_cast<Sigmod::Item*>(m_object), NULL);
+ QWidget* widget = new ItemUI(qobject_cast<Item*>(m_object), NULL);
return QVariant::fromValue(widget);
}
else if (role == BaseModel::ContextMenuRole)