summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqdatastream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqdatastream.cpp')
-rw-r--r--qtinterface/tqdatastream.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/qtinterface/tqdatastream.cpp b/qtinterface/tqdatastream.cpp
index d165c89..3c0ef8b 100644
--- a/qtinterface/tqdatastream.cpp
+++ b/qtinterface/tqdatastream.cpp
@@ -20,4 +20,24 @@ Boston, MA 02110-1301, USA.
*/
#include <tqt.h>
-#include <tqdatastream.h> \ No newline at end of file
+#include <tqdatastream.h>
+
+#ifdef USE_QT4
+
+QDataStream &QDataStream::operator<<(long unsigned int i) {
+ return *this<<((quint64) i);
+}
+
+QDataStream &QDataStream::operator>>(long unsigned int &i) {
+ return *this>>((quint64&) i);
+}
+
+QDataStream &QDataStream::operator<<(long i) {
+ return *this<<((qint64) i);
+}
+
+QDataStream &QDataStream::operator>>(long &i) {
+ return *this>>((qint64&) i);
+}
+
+#endif // USE_QT4 \ No newline at end of file