diff options
Diffstat (limited to 'sigmodr/tree/WeatherModel.cpp')
-rw-r--r-- | sigmodr/tree/WeatherModel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sigmodr/tree/WeatherModel.cpp b/sigmodr/tree/WeatherModel.cpp index 383c31f6..fec5ad84 100644 --- a/sigmodr/tree/WeatherModel.cpp +++ b/sigmodr/tree/WeatherModel.cpp @@ -30,10 +30,11 @@ // KDE includes #include <KMenu> +using namespace Sigmod; using namespace Sigmodr::Widgets; using namespace Sigmodr::Tree; -WeatherModel::WeatherModel(BaseModel* parent, Sigmod::Weather* weather) : +WeatherModel::WeatherModel(BaseModel* parent, Weather* weather) : ObjectModel(parent, weather) { } @@ -41,7 +42,7 @@ WeatherModel::WeatherModel(BaseModel* parent, Sigmod::Weather* weather) : QVariant WeatherModel::data(int role) const { if (role == Qt::DisplayRole) - return qobject_cast<Sigmod::Weather*>(m_object)->name(); + return qobject_cast<Weather*>(m_object)->name(); else if (role == BaseModel::XmlRole) { QDomDocument xml(m_object->className()); @@ -50,7 +51,7 @@ QVariant WeatherModel::data(int role) const } else if (role == BaseModel::WidgetRole) { - QWidget* widget = new WeatherUI(qobject_cast<Sigmod::Weather*>(m_object), NULL); + QWidget* widget = new WeatherUI(qobject_cast<Weather*>(m_object), NULL); return QVariant::fromValue(widget); } else if (role == BaseModel::ContextMenuRole) |