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