diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 01:08:35 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 01:08:35 -0500 |
| commit | c81259d5ea3cf4659affdb51b7622c61685a82ff (patch) | |
| tree | 7d00b36089fe22b1b6659b89c93d5b51e3337d09 /sigmodr/tree/SkinModel.cpp | |
| parent | efb2daeb653694f29e12ee09348ccf68c904cc83 (diff) | |
Added the Sigmod namespace to the sigmodrtree sources
Diffstat (limited to 'sigmodr/tree/SkinModel.cpp')
| -rw-r--r-- | sigmodr/tree/SkinModel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sigmodr/tree/SkinModel.cpp b/sigmodr/tree/SkinModel.cpp index a74c7440..4ef3e183 100644 --- a/sigmodr/tree/SkinModel.cpp +++ b/sigmodr/tree/SkinModel.cpp @@ -30,10 +30,11 @@ // KDE includes #include <KMenu> +using namespace Sigmod; using namespace Sigmodr::Widgets; using namespace Sigmodr::Tree; -SkinModel::SkinModel(BaseModel* parent, Sigmod::Skin* skin) : +SkinModel::SkinModel(BaseModel* parent, Skin* skin) : ObjectModel(parent, skin) { } @@ -41,7 +42,7 @@ SkinModel::SkinModel(BaseModel* parent, Sigmod::Skin* skin) : QVariant SkinModel::data(int role) const { if (role == Qt::DisplayRole) - return qobject_cast<Sigmod::Skin*>(m_object)->name(); + return qobject_cast<Skin*>(m_object)->name(); else if (role == BaseModel::XmlRole) { QDomDocument xml(m_object->className()); @@ -50,7 +51,7 @@ QVariant SkinModel::data(int role) const } else if (role == BaseModel::WidgetRole) { - QWidget* widget = new SkinUI(qobject_cast<Sigmod::Skin*>(m_object), NULL); + QWidget* widget = new SkinUI(qobject_cast<Skin*>(m_object), NULL); return QVariant::fromValue(widget); } else if (role == BaseModel::ContextMenuRole) |
