summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/StoreModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/StoreModel.cpp')
-rw-r--r--sigmodr/tree/StoreModel.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/sigmodr/tree/StoreModel.cpp b/sigmodr/tree/StoreModel.cpp
index b0053a34..51c5ad2b 100644
--- a/sigmodr/tree/StoreModel.cpp
+++ b/sigmodr/tree/StoreModel.cpp
@@ -31,12 +31,15 @@
// KDE includes
#include <KMenu>
-Sigmodr::Tree::StoreModel::StoreModel(BaseModel* parent, Sigmod::Store* store) :
+using namespace Sigmodr::Widgets;
+using namespace Sigmodr::Tree;
+
+StoreModel::StoreModel(BaseModel* parent, Sigmod::Store* store) :
ObjectModel(parent, store)
{
}
-QVariant Sigmodr::Tree::StoreModel::data(int role) const
+QVariant StoreModel::data(int role) const
{
if (role == Qt::DisplayRole)
return qobject_cast<Sigmod::Store*>(m_object)->name();
@@ -60,7 +63,7 @@ QVariant Sigmodr::Tree::StoreModel::data(int role) const
return ObjectModel::data(role);
}
-void Sigmodr::Tree::StoreModel::deleteSelf()
+void StoreModel::deleteSelf()
{
qobject_cast<GroupModel*>(m_parent)->deleteObject(this);
}