summaryrefslogtreecommitdiff
path: root/examples/master
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-02-21 22:46:19 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-23 09:31:59 +0100
commit8dc40a0a9ce84ef8e3e35437f5f4626fcbcde625 (patch)
treed433d23964d57e90a3430b11fc0523aa41412870 /examples/master
parent49e7ecd714ef9c6c176a234aedcaa941dc8b9888 (diff)
downloadqtserialport-8dc40a0a9ce84ef8e3e35437f5f4626fcbcde625.tar.gz
Assign a new method name for the port name setting API
* This is more intuitive as it is not setting the port with all its settings like baud rate, flow control, stop bits, parity, and so forth, but only the port name. * This will allow in upcoming change to establish a property for the port name along with a port name changed signal to be useful from different threads, QML, and so forth. * Clean up the documentation not to provide internal information to the end users, and also make the text a bit more concise and better readable. * Examples are also changed accordingly, to use the new API. Change-Id: Idbaa8ee2dee17c63fc0278f687ccc231c5ab670f Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'examples/master')
-rw-r--r--examples/master/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/master/dialog.cpp b/examples/master/dialog.cpp
index 0a27575..e3a4b66 100644
--- a/examples/master/dialog.cpp
+++ b/examples/master/dialog.cpp
@@ -100,7 +100,7 @@ void Dialog::sendRequest()
{
if (serial.portName() != serialPortComboBox->currentText()) {
serial.close();
- serial.setPort(serialPortComboBox->currentText());
+ serial.setPortName(serialPortComboBox->currentText());
if (!serial.open(QIODevice::ReadWrite)) {
processError(tr("Can't open %1, error code %2")