summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/TreeItem.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-02 03:34:58 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-02 03:34:58 -0400
commit2cebcade26ef7e6ad0876ce5fb0d4bb66f8aa046 (patch)
tree097e2cbc6c5dd106e0e103dfc6d60d268309530d /sigmodr/tree/TreeItem.cpp
parent367ee0998f66eddce99a710a09de58378d163d28 (diff)
downloadsigen-2cebcade26ef7e6ad0876ce5fb0d4bb66f8aa046.tar.gz
sigen-2cebcade26ef7e6ad0876ce5fb0d4bb66f8aa046.tar.xz
sigen-2cebcade26ef7e6ad0876ce5fb0d4bb66f8aa046.zip
Deal with QDomElement, not QMimeData and QByteArray
Diffstat (limited to 'sigmodr/tree/TreeItem.cpp')
-rw-r--r--sigmodr/tree/TreeItem.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/sigmodr/tree/TreeItem.cpp b/sigmodr/tree/TreeItem.cpp
index c2ff7583..f8e39f54 100644
--- a/sigmodr/tree/TreeItem.cpp
+++ b/sigmodr/tree/TreeItem.cpp
@@ -21,9 +21,6 @@
// Sigmod includes
#include <sigmod/Object.h>
-// Qt includes
-#include <QtCore/QTextStream>
-
using namespace Sigmod;
using namespace Sigmodr::Tree;
@@ -129,19 +126,14 @@ QString TreeItem::mimeType() const
// TODO
}
-QByteArray TreeItem::copyData() const
+QDomElement TreeItem::copyData() const
{
if (canEdit())
- {
- QByteArray data;
- QTextStream stream(&data, QIODevice::WriteOnly);
- m_object->save().save(stream, 1);
- return data;
- }
- return QByteArray();
+ return m_object->save();
+ return QDomElement();
}
-bool TreeItem::dropData(QMimeData* data)
+bool TreeItem::dropData(const QDomElement& element)
{
// TODO
}