diff options
Diffstat (limited to 'qtinterface/tqiodevice.cpp')
-rw-r--r-- | qtinterface/tqiodevice.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qtinterface/tqiodevice.cpp b/qtinterface/tqiodevice.cpp index 7a70d3d..1038fc4 100644 --- a/qtinterface/tqiodevice.cpp +++ b/qtinterface/tqiodevice.cpp @@ -58,4 +58,13 @@ void QIODevice::setStatus( int s ) { // return write(data, len); // } +qint64 QIODevice::readLine(QString & s, qint64 maxlen) { + qint64 ret; + QByteArray q; + + readLine(q.data(), maxlen); + s.setAscii(q); + return ret; +} + #endif // USE_QT4
\ No newline at end of file |