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/StoreModel.cpp | |
| parent | efb2daeb653694f29e12ee09348ccf68c904cc83 (diff) | |
Added the Sigmod namespace to the sigmodrtree sources
Diffstat (limited to 'sigmodr/tree/StoreModel.cpp')
| -rw-r--r-- | sigmodr/tree/StoreModel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sigmodr/tree/StoreModel.cpp b/sigmodr/tree/StoreModel.cpp index 51c5ad2b..3c0fee8d 100644 --- a/sigmodr/tree/StoreModel.cpp +++ b/sigmodr/tree/StoreModel.cpp @@ -31,10 +31,11 @@ // KDE includes #include <KMenu> +using namespace Sigmod; using namespace Sigmodr::Widgets; using namespace Sigmodr::Tree; -StoreModel::StoreModel(BaseModel* parent, Sigmod::Store* store) : +StoreModel::StoreModel(BaseModel* parent, Store* store) : ObjectModel(parent, store) { } @@ -42,7 +43,7 @@ StoreModel::StoreModel(BaseModel* parent, Sigmod::Store* store) : QVariant StoreModel::data(int role) const { if (role == Qt::DisplayRole) - return qobject_cast<Sigmod::Store*>(m_object)->name(); + return qobject_cast<Store*>(m_object)->name(); else if (role == BaseModel::XmlRole) { QDomDocument xml(m_object->className()); @@ -51,7 +52,7 @@ QVariant StoreModel::data(int role) const } else if (role == BaseModel::WidgetRole) { - QWidget* widget = new StoreUI(qobject_cast<Sigmod::Store*>(m_object), NULL); + QWidget* widget = new StoreUI(qobject_cast<Store*>(m_object), NULL); return QVariant::fromValue(widget); } else if (role == BaseModel::ContextMenuRole) |
