diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 00:18:06 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 00:18:06 -0500 |
commit | 160143d7232a46b7709c927f1cd99a6ad537ad1e (patch) | |
tree | 063c9c578d2c1e5f60f192be75207da37ad854d8 /sigmodr/tree/CoinListModel.cpp | |
parent | 29d5614a7adc53df57e666a8cab40c0dbf5dab0a (diff) | |
download | sigen-160143d7232a46b7709c927f1cd99a6ad537ad1e.tar.gz sigen-160143d7232a46b7709c927f1cd99a6ad537ad1e.tar.xz sigen-160143d7232a46b7709c927f1cd99a6ad537ad1e.zip |
Cleaned up namespacing in sigmodrtree
Diffstat (limited to 'sigmodr/tree/CoinListModel.cpp')
-rw-r--r-- | sigmodr/tree/CoinListModel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sigmodr/tree/CoinListModel.cpp b/sigmodr/tree/CoinListModel.cpp index 161bac1d..8363f040 100644 --- a/sigmodr/tree/CoinListModel.cpp +++ b/sigmodr/tree/CoinListModel.cpp @@ -47,18 +47,18 @@ QVariant Sigmodr::CoinListModel::data(int role) const { if (role == Qt::DisplayRole) return qobject_cast<Sigmod::CoinList*>(m_object)->name(); - else if (role == Sigmodr::BaseModel::XmlRole) + else if (role == BaseModel::XmlRole) { QDomDocument xml(m_object->className()); xml.appendChild(m_object->save()); return xml.toString(); } - else if (role == Sigmodr::BaseModel::WidgetRole) + else if (role == BaseModel::WidgetRole) { QWidget* widget = new CoinListUI(qobject_cast<Sigmod::CoinList*>(m_object), NULL); return QVariant::fromValue(widget); } - else if (role == Sigmodr::BaseModel::ContextMenuRole) + else if (role == BaseModel::ContextMenuRole) { KMenu* menu = new KMenu; menu->addAction("&Add Object", this, SLOT(addObject())); @@ -66,12 +66,12 @@ QVariant Sigmodr::CoinListModel::data(int role) const menu->addAction("&Delete Coin List", this, SLOT(deleteSelf())); return QVariant::fromValue(menu); } - return Sigmodr::GroupObjectModel::data(role); + return GroupObjectModel::data(role); } bool Sigmodr::CoinListModel::setData(const QVariant& value, int role) { - if (role == Sigmodr::BaseModel::XmlRole) + if (role == BaseModel::XmlRole) { QString data = value.toString(); if (!data.isEmpty()) |