Misc cleanups.
[tagua/yd.git] / src / core / taguaobject.cpp
blob5179ba04cb91c8a2d600be4f7fde9c5c700e507a
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #include "taguaobject.h"
13 QVariant TaguaObject::get(const QString& key) const {
14 return m_prop[key];
17 void TaguaObject::set(const QString& key, const QVariant& value) {
18 m_prop[key] = value;
21 bool TaguaObject::operator==(const TaguaObject& other) const {
22 return m_prop == other.m_prop;
25 bool TaguaObject::operator!=(const TaguaObject& other) const {
26 return !(operator==(other));