summaryrefslogtreecommitdiffstats
path: root/src/translators/pilotdb/pilotdb.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/translators/pilotdb/pilotdb.cpp
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/pilotdb/pilotdb.cpp')
-rw-r--r--src/translators/pilotdb/pilotdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/translators/pilotdb/pilotdb.cpp b/src/translators/pilotdb/pilotdb.cpp
index d7779e4..b42cb6a 100644
--- a/src/translators/pilotdb/pilotdb.cpp
+++ b/src/translators/pilotdb/pilotdb.cpp
@@ -17,7 +17,7 @@
#include <kdebug.h>
-#include <qbuffer.h>
+#include <tqbuffer.h>
using namespace PalmLib;
using Tellico::Export::PilotDB;
@@ -42,8 +42,8 @@ PilotDB::~PilotDB() {
}
}
-QByteArray PilotDB::data() {
- QBuffer b;
+TQByteArray PilotDB::data() {
+ TQBuffer b;
b.open(IO_WriteOnly);
pi_char_t buf[PI_HDR_SIZE];
@@ -53,7 +53,7 @@ QByteArray PilotDB::data() {
for(int i=0; i<32; ++i) {
buf[i] = 0;
}
- memcpy(buf, name().c_str(), QMIN(31, name().length()));
+ memcpy(buf, name().c_str(), TQMIN(31, name().length()));
set_short(buf + 32, flags());
set_short(buf + 34, version());
set_long(buf + 36, creation_time());