summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqiodevice.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-21 02:35:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-21 02:35:53 +0000
commit32073e28f0e425c066e65f3fc6a3101feab22598 (patch)
tree7e78a6f72b314bd555a49597c38ecabfc24a8714 /qtinterface/tqiodevice.cpp
parent90cbdd552d7ab58c8534b0f3d0980d5059adc422 (diff)
downloadtqtinterface-32073e28f0e425c066e65f3fc6a3101feab22598.tar.gz
tqtinterface-32073e28f0e425c066e65f3fc6a3101feab22598.zip
More TQt functionality in place for Qt4...
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1166130 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqiodevice.cpp')
-rw-r--r--qtinterface/tqiodevice.cpp9
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