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