summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-09-02 21:57:45 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-09-02 18:59:32 +0000
commit3f645a6f0c1d1efb37d6c943035867485f707bea (patch)
treee89885f76060682ab7a040c48608c7a8599ada98
parentbb9104d441db325b74b5c1008f0b8c87243d3d23 (diff)
downloadqtserialport-3f645a6f0c1d1efb37d6c943035867485f707bea.tar.gz
Fix the QSerialPort::ParityError error string
Change-Id: I518e1a4db36c21e04b1f52435f82ad447ff9ea03 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
-rw-r--r--src/serialport/qserialport_win.cpp2
-rw-r--r--src/serialport/qserialport_wince.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp
index 2b4cfd4..b63368d 100644
--- a/src/serialport/qserialport_win.cpp
+++ b/src/serialport/qserialport_win.cpp
@@ -694,7 +694,7 @@ void QSerialPortPrivate::handleLineStatusErrors()
if (errors & CE_FRAME) {
setError(QSerialPortErrorInfo(QSerialPort::FramingError, QSerialPort::tr("Framing error detected while reading")));
} else if (errors & CE_RXPARITY) {
- setError(QSerialPortErrorInfo(QSerialPort::ParityError, QSerialPort::tr("ParityError error detected while reading")));
+ setError(QSerialPortErrorInfo(QSerialPort::ParityError, QSerialPort::tr("Parity error detected while reading")));
parityErrorOccurred = true;
} else if (errors & CE_BREAK) {
setError(QSerialPortErrorInfo(QSerialPort::BreakConditionError, QSerialPort::tr("Break condition detected while reading")));
diff --git a/src/serialport/qserialport_wince.cpp b/src/serialport/qserialport_wince.cpp
index 150072f..c27435f 100644
--- a/src/serialport/qserialport_wince.cpp
+++ b/src/serialport/qserialport_wince.cpp
@@ -591,7 +591,7 @@ void QSerialPortPrivate::processIoErrors(bool hasError)
if (errors & CE_FRAME) {
setError(QSerialPortErrorInfo(QSerialPort::FramingError, QSerialPort::tr("Framing error detected while reading")));
} else if (errors & CE_RXPARITY) {
- setError(QSerialPortErrorInfo(QSerialPort::ParityError, QSerialPort::tr("ParityError error detected while reading")));
+ setError(QSerialPortErrorInfo(QSerialPort::ParityError, QSerialPort::tr("Parity error detected while reading")));
parityErrorOccurred = true;
} else if (errors & CE_BREAK) {
setError(QSerialPortErrorInfo(QSerialPort::BreakConditionError, QSerialPort::tr("Break condition detected while reading")));