diff options
Diffstat (limited to 'sigmodr/models/SoundModel.cpp')
| -rw-r--r-- | sigmodr/models/SoundModel.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sigmodr/models/SoundModel.cpp b/sigmodr/models/SoundModel.cpp index 4412bd35..f907513d 100644 --- a/sigmodr/models/SoundModel.cpp +++ b/sigmodr/models/SoundModel.cpp @@ -31,9 +31,6 @@ // KDE includes #include <KMenu> -// Qt includes -#include <QtCore/QFile> - Sigmodr::SoundModel::SoundModel(BaseModel* parent, Sigmod::Sound* sound) : ObjectModel(parent, sound) { @@ -67,28 +64,6 @@ QVariant Sigmodr::SoundModel::data(int role) const return Sigmodr::ObjectModel::data(role); } -bool Sigmodr::SoundModel::setData(const QVariant& value, int role) -{ - if (role == Sigmodr::BaseModel::XmlRole) - { - if (value.canConvert<QString>()) - { - QFile file(value.toString()); - QDomDocument xml; - if ((file.open(QIODevice::ReadOnly) && xml.setContent(&file)) || xml.setContent(value.toString())) - { - if (xml.doctype().name() == m_object->className()) - { - m_object->load(xml.documentElement()); - return true; - } - file.close(); - } - } - } - return false; -} - void Sigmodr::SoundModel::deleteSelf() { qobject_cast<GroupModel*>(m_parent)->deleteObject(this); |
