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