diff options
author | abcd <qt-info@nokia.com> | 2009-09-09 00:55:15 (GMT) |
---|---|---|
committer | abcd <qt-info@nokia.com> | 2009-09-09 00:55:15 (GMT) |
commit | 03050f1495a9071a7123ed70caff83466df8c6e5 (patch) | |
tree | f96e3af0b0d9389626b826f7030cdeac71dc74e8 /src/network/socket | |
parent | f52dc5bf1e885c9a4d226c2484249e7d9faf0a99 (diff) | |
download | Qt-03050f1495a9071a7123ed70caff83466df8c6e5.zip Qt-03050f1495a9071a7123ed70caff83466df8c6e5.tar.gz Qt-03050f1495a9071a7123ed70caff83466df8c6e5.tar.bz2 |
Fix windows implemetation of QLocalSocket to emit bytesWritten() signal
Have QWindowsPipeWriter emit a bytesWritten signal and have
QLocalSocket connect this to its own bytesWritten signal.
This change contains an autotest to check for the signal emission.
Previously there was no implementation to emit the signal.
Diffstat (limited to 'src/network/socket')
-rw-r--r-- | src/network/socket/qlocalsocket_win.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp index 96dfa6e..e15ac65 100644 --- a/src/network/socket/qlocalsocket_win.cpp +++ b/src/network/socket/qlocalsocket_win.cpp @@ -302,8 +302,9 @@ qint64 QLocalSocket::writeData(const char *data, qint64 maxSize) Q_D(QLocalSocket); if (!d->pipeWriter) { d->pipeWriter = new QWindowsPipeWriter(d->handle, this); - d->pipeWriter->start(); connect(d->pipeWriter, SIGNAL(canWrite()), this, SLOT(_q_canWrite())); + connect(d->pipeWriter, SIGNAL(bytesWritten(qint64)), this, SIGNAL(bytesWritten(qint64))); + d->pipeWriter->start(); } return d->pipeWriter->write(data, maxSize); } |