From c81259d5ea3cf4659affdb51b7622c61685a82ff Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 28 Feb 2009 01:08:35 -0500 Subject: Added the Sigmod namespace to the sigmodrtree sources --- sigmodr/tree/WeatherModel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sigmodr/tree/WeatherModel.cpp') 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 +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(m_object)->name(); + return qobject_cast(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(m_object), NULL); + QWidget* widget = new WeatherUI(qobject_cast(m_object), NULL); return QVariant::fromValue(widget); } else if (role == BaseModel::ContextMenuRole) -- cgit