From 15c45c7b596e065fe99705e3bc0d7e80aeb2c752 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 5 Aug 2010 22:01:44 +0000 Subject: Additional Qt4 support added Now compiles all of kdelibs/dcop, kdelibs/kdecore/svgicons, and kdelibs/kdecore/network git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1159658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqiodevice.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'qtinterface/tqiodevice.cpp') diff --git a/qtinterface/tqiodevice.cpp b/qtinterface/tqiodevice.cpp index 2af85dc..7a70d3d 100644 --- a/qtinterface/tqiodevice.cpp +++ b/qtinterface/tqiodevice.cpp @@ -21,3 +21,41 @@ Boston, MA 02110-1301, USA. #include #include + +#ifdef USE_QT4 + +void QIODevice::setState( int s ) { + if (s == IO_Open) { + if (isOpen() == false) { + open(openMode()); + } + } +} + +void QIODevice::setFlags( int f ) { + setOpenMode((OpenMode)f); +} + +void QIODevice::setStatus( int s ) { + #warning "QIODevice::setStatus is unimplemented!" +} + +// TQIODevice::TQIODevice() : QIODevice() {} +// +// qint64 TQIODevice::readData(char *data, qint64 maxlen) { +// return read(data, maxlen); +// } +// +// qint64 TQIODevice::writeData(const char *data, qint64 len) { +// return write(data, len); +// } + +// qint64 QIODevice::readData(char *data, qint64 maxlen) { +// return read(data, maxlen); +// } +// +// qint64 QIODevice::writeData(const char *data, qint64 len) { +// return write(data, len); +// } + +#endif // USE_QT4 \ No newline at end of file -- cgit v1.2.1