diff options
Diffstat (limited to 'sigmodr/tree/WeatherGroupModel.cpp')
-rw-r--r-- | sigmodr/tree/WeatherGroupModel.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <KMenu> -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<Sigmod::Sigmod*>(m_object)->newWeather(); @@ -81,7 +81,7 @@ void Sigmodr::WeatherGroupModel::addObject(Sigmod::Object* object) addChild(new WeatherModel(this, qobject_cast<Sigmod::Weather*>(object))); } -void Sigmodr::WeatherGroupModel::deleteObject(BaseModel* model) +void Sigmodr::Tree::WeatherGroupModel::deleteObject(BaseModel* model) { const int index = find(model); if (0 <= index) |