summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/modbus
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-06-20 11:41:05 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-06-24 09:51:01 +0200
commit65329501805b45765fbade4418f73d9e04c984c0 (patch)
tree9df267de66ba5c05a57cd9787fa0c5bea32fcfec /examples/serialbus/modbus
parent0c8a6c80e489e6ee4592f5dd5ca9a8bd568d9997 (diff)
Fix Qt6 build
Added 'Qt::' prefixes where missing. Change-Id: I97d5d9fa78d7c1feaef4caae72b735ea0625a081 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/serialbus/modbus')
-rw-r--r--examples/serialbus/modbus/adueditor/mainwindow.cpp4
-rw-r--r--examples/serialbus/modbus/adueditor/modbustcpclient_p.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/serialbus/modbus/adueditor/mainwindow.cpp b/examples/serialbus/modbus/adueditor/mainwindow.cpp
index 995cfc9..4a0931e 100644
--- a/examples/serialbus/modbus/adueditor/mainwindow.cpp
+++ b/examples/serialbus/modbus/adueditor/mainwindow.cpp
@@ -136,11 +136,11 @@ void MainWindow::on_sendButton_clicked()
if (!reply->isFinished()) {
connect(reply, &QModbusReply::finished, [reply, this]() {
sendButton->setEnabled(true);
- qDebug() << "Receive: Asynchronous response PDU: " << reply->rawResult() << endl;
+ qDebug() << "Receive: Asynchronous response PDU: " << reply->rawResult() << Qt::endl;
});
} else {
sendButton->setEnabled(true);
- qDebug() << "Receive: Synchronous response pdu: " << reply->rawResult() << endl;
+ qDebug() << "Receive: Synchronous response pdu: " << reply->rawResult() << Qt::endl;
}
}
}
diff --git a/examples/serialbus/modbus/adueditor/modbustcpclient_p.h b/examples/serialbus/modbus/adueditor/modbustcpclient_p.h
index c4a1c13..a9170f9 100644
--- a/examples/serialbus/modbus/adueditor/modbustcpclient_p.h
+++ b/examples/serialbus/modbus/adueditor/modbustcpclient_p.h
@@ -82,7 +82,7 @@ public:
return false;
}
qDebug() << "Sent TCP ADU:" << buffer.toHex();
- qDebug() << "Sent TCP PDU:" << request << "with tId:" << hex << m_tId;
+ qDebug() << "Sent TCP PDU:" << request << "with tId:" << Qt::hex << m_tId;
return true;
};
@@ -111,9 +111,9 @@ public:
return;
m_transactionStore.insert(m_tId, elem);
elem.timer->start();
- qDebug() << "Resend request with tId:" << hex << m_tId;
+ qDebug() << "Resend request with tId:" << Qt::hex << m_tId;
} else {
- qDebug() << "Timeout of request with tId:" << hex << m_tId;
+ qDebug() << "Timeout of request with tId:" << Qt::hex << m_tId;
elem.reply->setError(QModbusDevice::TimeoutError,
QModbusClient::tr("Request timeout."));
}