diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/parts/kafka/kafkadragobject.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/parts/kafka/kafkadragobject.cpp')
-rw-r--r-- | quanta/parts/kafka/kafkadragobject.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/quanta/parts/kafka/kafkadragobject.cpp b/quanta/parts/kafka/kafkadragobject.cpp index 652ea6f2..7d546036 100644 --- a/quanta/parts/kafka/kafkadragobject.cpp +++ b/quanta/parts/kafka/kafkadragobject.cpp @@ -17,8 +17,8 @@ #include <kdebug.h> -#include <qdom.h> -#include <qtextstream.h> +#include <tqdom.h> +#include <tqtextstream.h> #include "kafkadragobject.h" #include "node.h" @@ -26,24 +26,24 @@ char const* KafkaDragObject::m_mimetype = "application/kafka-nodeselection"; -KafkaDragObject::KafkaDragObject(Node const* item, QWidget* dragSource, const char* name) - : QStoredDrag(m_mimetype, dragSource, name), m_item(item) +KafkaDragObject::KafkaDragObject(Node const* item, TQWidget* dragSource, const char* name) + : TQStoredDrag(m_mimetype, dragSource, name), m_item(item) { - QDomDocument doc("KafkaSelection"); - QString docstart = "<KafkaSelection/>"; + TQDomDocument doc("KafkaSelection"); + TQString docstart = "<KafkaSelection/>"; doc.setContent(docstart); - QDomElement itemsElement = doc.createElement("Items"); + TQDomElement itemsElement = doc.createElement("Items"); doc.documentElement().appendChild(itemsElement); //kdDebug(25001) << doc.toString() << endl; item->save(itemsElement); - //QDataStream s(m_array, IO_WriteOnly); - QTextStream s(m_array, IO_WriteOnly); + //TQDataStream s(m_array, IO_WriteOnly); + TQTextStream s(m_array, IO_WriteOnly); s << doc.toString(); //s << "biltre"; /* kdDebug(25001) << m_array.size() << endl; kdDebug(25001) << doc.toString() << endl; - kdDebug(25001) << QString(m_array) << endl; + kdDebug(25001) << TQString(m_array) << endl; */ //setEncodedData(m_array); } @@ -51,12 +51,12 @@ KafkaDragObject::KafkaDragObject(Node const* item, QWidget* dragSource, const ch KafkaDragObject::~KafkaDragObject() {} -QByteArray KafkaDragObject::encodedData(const char* mimetype) const +TQByteArray KafkaDragObject::encodedData(const char* mimetype) const { if(m_mimetype == mimetype) return m_array; - return QByteArray(); + return TQByteArray(); } Node const* KafkaDragObject::getItem() const @@ -64,19 +64,19 @@ Node const* KafkaDragObject::getItem() const return m_item; } -bool KafkaDragObject::canDecode(QMimeSource *e) +bool KafkaDragObject::canDecode(TQMimeSource *e) { return e->provides(m_mimetype); } -bool KafkaDragObject::decode(QMimeSource* e, Node* node) +bool KafkaDragObject::decode(TQMimeSource* e, Node* node) { if(!node || !e->provides(m_mimetype)) return false; - QByteArray data = e->encodedData(m_mimetype); - //kdDebug(25001) << QString(data) << endl; - QDomDocument doc; + TQByteArray data = e->encodedData(m_mimetype); + //kdDebug(25001) << TQString(data) << endl; + TQDomDocument doc; doc.setContent(data, false); //kdDebug(25001) << doc.toString() << endl; node->load(doc.documentElement().firstChild().toElement()); |