diff options
Diffstat (limited to 'sigmodr/tree/WeatherModel.cpp')
-rw-r--r-- | sigmodr/tree/WeatherModel.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sigmodr/tree/WeatherModel.cpp b/sigmodr/tree/WeatherModel.cpp index a482da3d..383c31f6 100644 --- a/sigmodr/tree/WeatherModel.cpp +++ b/sigmodr/tree/WeatherModel.cpp @@ -30,12 +30,15 @@ // KDE includes #include <KMenu> -Sigmodr::Tree::WeatherModel::WeatherModel(BaseModel* parent, Sigmod::Weather* weather) : +using namespace Sigmodr::Widgets; +using namespace Sigmodr::Tree; + +WeatherModel::WeatherModel(BaseModel* parent, Sigmod::Weather* weather) : ObjectModel(parent, weather) { } -QVariant Sigmodr::Tree::WeatherModel::data(int role) const +QVariant WeatherModel::data(int role) const { if (role == Qt::DisplayRole) return qobject_cast<Sigmod::Weather*>(m_object)->name(); @@ -59,7 +62,7 @@ QVariant Sigmodr::Tree::WeatherModel::data(int role) const return ObjectModel::data(role); } -void Sigmodr::Tree::WeatherModel::deleteSelf() +void WeatherModel::deleteSelf() { qobject_cast<GroupModel*>(m_parent)->deleteObject(this); } |