summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/torrent/bdict.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kfile-plugins/torrent/bdict.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/torrent/bdict.cpp')
-rw-r--r--kfile-plugins/torrent/bdict.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kfile-plugins/torrent/bdict.cpp b/kfile-plugins/torrent/bdict.cpp
index 2dd7457e..4819165c 100644
--- a/kfile-plugins/torrent/bdict.cpp
+++ b/kfile-plugins/torrent/bdict.cpp
@@ -16,8 +16,8 @@
* If not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qstringlist.h>
-#include <qiodevice.h>
+#include <tqstringlist.h>
+#include <tqiodevice.h>
#include <kdebug.h>
@@ -27,7 +27,7 @@
#include "bint.h"
#include "blist.h"
-BDict::BDict (QByteArray &dict, int start)
+BDict::BDict (TQByteArray &dict, int start)
: m_map(), m_valid(false)
{
ByteTape tape(dict, start);
@@ -108,7 +108,7 @@ void BDict::init (ByteTape &tape)
BDict::~BDict ()
{
- // QDict will take care of deleting each entry that
+ // TQDict will take care of deleting each entry that
// it holds.
}
@@ -152,7 +152,7 @@ BString *BDict::findStr (const char *key)
return 0;
}
-bool BDict::writeToDevice(QIODevice &device)
+bool BDict::writeToDevice(TQIODevice &device)
{
if (!isValid())
return false;
@@ -172,25 +172,25 @@ bool BDict::writeToDevice(QIODevice &device)
}
// Strings are supposed to be written in the dictionary such that
- // the keys are in sorted order. QDictIterator doesn't support an
+ // the keys are in sorted order. TQDictIterator doesn't support an
// ordering, so we have to get a list of all the keys, sort it, and
// then go by the list.
BBaseHashIterator iter (m_map);
- QStringList key_list;
+ TQStringList key_list;
for ( ; iter.current(); ++iter)
key_list.append(iter.currentKey());
key_list.sort();
- QStringList::Iterator key_iter;
+ TQStringList::Iterator key_iter;
for (key_iter = key_list.begin(); key_iter != key_list.end(); ++key_iter)
{
- QCString utfString = (*key_iter).utf8();
- QString str = QString("%1:").arg(utfString.size() - 1);
+ TQCString utfString = (*key_iter).utf8();
+ TQString str = TQString("%1:").arg(utfString.size() - 1);
- QCString lenString = str.utf8();
+ TQCString lenString = str.utf8();
// Write out length of key
device.writeBlock(lenString.data(), lenString.size() - 1);