summaryrefslogtreecommitdiffstats
path: root/examples/serialbus
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2019-03-29 11:35:02 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2019-04-01 09:03:18 +0000
commitcbd814d6fa46a488be2edac6a4944d2df6a9382c (patch)
tree482b0d384235415f52bcc4b1dda27acf2d19e2c6 /examples/serialbus
parenta40fcae40fdc4d7cd658c4b8ab38aad7572f2ecf (diff)
Add context information to QObject::connect(...) calls
Change-Id: I3888da16e5152c479deeb3e5bfbb8d0dd587cea8 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'examples/serialbus')
-rw-r--r--examples/serialbus/modbus/adueditor/modbustcpclient_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/serialbus/modbus/adueditor/modbustcpclient_p.h b/examples/serialbus/modbus/adueditor/modbustcpclient_p.h
index 9d091d8..c1b37a8 100644
--- a/examples/serialbus/modbus/adueditor/modbustcpclient_p.h
+++ b/examples/serialbus/modbus/adueditor/modbustcpclient_p.h
@@ -98,7 +98,7 @@ public:
using TypeId = void (QTimer::*)(int);
q->connect(q, &QModbusClient::timeoutChanged,
element.timer.data(), static_cast<TypeId>(&QTimer::setInterval));
- QObject::connect(element.timer.data(), &QTimer::timeout, [this, writeToSocket]() {
+ QObject::connect(element.timer.data(), &QTimer::timeout, q, [this, writeToSocket]() {
if (!m_transactionStore.contains(m_tId))
return;