From 7ccc2e3c73637e771c08b2c82539d6c4a7a5f0d7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 24 Feb 2009 00:36:46 -0500 Subject: Moved sigmodrtree into namespace Sigmodr::Tree --- sigmodr/tree/WeatherGroupModel.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sigmodr/tree/WeatherGroupModel.cpp') diff --git a/sigmodr/tree/WeatherGroupModel.cpp b/sigmodr/tree/WeatherGroupModel.cpp index ab798b6f..bfdbaefa 100644 --- a/sigmodr/tree/WeatherGroupModel.cpp +++ b/sigmodr/tree/WeatherGroupModel.cpp @@ -28,18 +28,18 @@ // KDE includes #include -Sigmodr::WeatherGroupModel::WeatherGroupModel(BaseModel* parent, Sigmod::Sigmod* sigmod) : +Sigmodr::Tree::WeatherGroupModel::WeatherGroupModel(BaseModel* parent, Sigmod::Sigmod* sigmod) : GroupModel(parent, sigmod, "Weathers") { for (int i = 0; i < sigmod->weatherCount(); ++i) addObject(sigmod->weather(i)); } -Sigmodr::WeatherGroupModel::~WeatherGroupModel() +Sigmodr::Tree::WeatherGroupModel::~WeatherGroupModel() { } -QVariant Sigmodr::WeatherGroupModel::data(const int role) const +QVariant Sigmodr::Tree::WeatherGroupModel::data(const int role) const { if (role == BaseModel::ContextMenuRole) { @@ -50,7 +50,7 @@ QVariant Sigmodr::WeatherGroupModel::data(const int role) const return GroupModel::data(role); } -bool Sigmodr::WeatherGroupModel::setData(const QVariant& value, int role) +bool Sigmodr::Tree::WeatherGroupModel::setData(const QVariant& value, int role) { if (role == BaseModel::XmlRole) { @@ -68,12 +68,12 @@ bool Sigmodr::WeatherGroupModel::setData(const QVariant& value, int role) return false; } -QString Sigmodr::WeatherGroupModel::types() const +QString Sigmodr::Tree::WeatherGroupModel::types() const { return "Weather"; } -void Sigmodr::WeatherGroupModel::addObject(Sigmod::Object* object) +void Sigmodr::Tree::WeatherGroupModel::addObject(Sigmod::Object* object) { if (!object) object = qobject_cast(m_object)->newWeather(); @@ -81,7 +81,7 @@ void Sigmodr::WeatherGroupModel::addObject(Sigmod::Object* object) addChild(new WeatherModel(this, qobject_cast(object))); } -void Sigmodr::WeatherGroupModel::deleteObject(BaseModel* model) +void Sigmodr::Tree::WeatherGroupModel::deleteObject(BaseModel* model) { const int index = find(model); if (0 <= index) -- cgit