summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qlocalsocket_unix.cpp
diff options
context:
space:
mode:
authorAndreas Hartmetz <andreas@ixgreen.de>2025-11-30 00:07:41 +0100
committerAndreas Hartmetz <andreas@ixgreen.de>2025-11-30 17:07:33 +0100
commit3714b7feabea8134045ab9d45972a9aae68a5666 (patch)
tree121fda0b074518fd1bb9dd6109d6ec5eddfa6437 /src/network/socket/qlocalsocket_unix.cpp
parent4eb4462b14cc8065e098412d9dd8a1ade90897e2 (diff)
Add missing forwarding for channel signals in QLocalSocket / Unix
QLocalSocket internally uses a QTcpSocket that actually operates on a local socket file descriptor. The forwarding of what that socket does was missing for the channelReadyRead() and channelBytesWritten() signals. [ChangeLog][QtNetwork][QLocalSocket][Unix] Fixed QLocalSocket not emitting channelReadyRead() and channelBytesWritten() signals Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Iacf736374e026ddb475522d4a8e8fd8c5b5564bb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/socket/qlocalsocket_unix.cpp')
-rw-r--r--src/network/socket/qlocalsocket_unix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/socket/qlocalsocket_unix.cpp b/src/network/socket/qlocalsocket_unix.cpp
index 76928bfb2c4..4e2a4e34e0e 100644
--- a/src/network/socket/qlocalsocket_unix.cpp
+++ b/src/network/socket/qlocalsocket_unix.cpp
@@ -68,7 +68,11 @@ void QLocalSocketPrivate::init()
// QIODevice signals
q->connect(&unixSocket, SIGNAL(bytesWritten(qint64)),
q, SIGNAL(bytesWritten(qint64)));
+ q->connect(&unixSocket, SIGNAL(channelBytesWritten(int, qint64)),
+ q, SIGNAL(channelBytesWritten(int, qint64)));
q->connect(&unixSocket, SIGNAL(readyRead()), q, SIGNAL(readyRead()));
+ q->connect(&unixSocket, SIGNAL(channelReadyRead(int)),
+ q, SIGNAL(channelReadyRead(int)));
// QAbstractSocket signals
q->connect(&unixSocket, SIGNAL(connected()), q, SIGNAL(connected()));
q->connect(&unixSocket, SIGNAL(disconnected()), q, SIGNAL(disconnected()));