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