diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:38:27 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-25 01:38:27 -0500 |
commit | b90f2dc771801bcfadef322cea8ddc402283d4eb (patch) | |
tree | 81e102282933abe87e43a0932d593331aac1d4f5 /sigmodr/tree/SoundModel.cpp | |
parent | 560054e99ecd692b89fd8fbedcf69d08e45f41bd (diff) | |
download | sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.tar.gz sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.tar.xz sigen-b90f2dc771801bcfadef322cea8ddc402283d4eb.zip |
Fixed namespacing in sigmodr tree
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); } |