diff options
Diffstat (limited to 'sigmodr/tree/MapWarpModel.cpp')
-rw-r--r-- | sigmodr/tree/MapWarpModel.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sigmodr/tree/MapWarpModel.cpp b/sigmodr/tree/MapWarpModel.cpp index e87fac4b..6d319783 100644 --- a/sigmodr/tree/MapWarpModel.cpp +++ b/sigmodr/tree/MapWarpModel.cpp @@ -31,12 +31,15 @@ // KDE includes #include <KMenu> -Sigmodr::Tree::MapWarpModel::MapWarpModel(BaseModel* parent, Sigmod::MapWarp* warp) : +using namespace Sigmodr::Widgets; +using namespace Sigmodr::Tree; + +MapWarpModel::MapWarpModel(BaseModel* parent, Sigmod::MapWarp* warp) : ObjectModel(parent, warp) { } -QVariant Sigmodr::Tree::MapWarpModel::data(int role) const +QVariant MapWarpModel::data(int role) const { if (role == Qt::DisplayRole) return qobject_cast<Sigmod::MapWarp*>(m_object)->name(); @@ -60,7 +63,7 @@ QVariant Sigmodr::Tree::MapWarpModel::data(int role) const return ObjectModel::data(role); } -void Sigmodr::Tree::MapWarpModel::deleteSelf() +void MapWarpModel::deleteSelf() { qobject_cast<GroupModel*>(m_parent)->deleteObject(this); } |