diff options
-rw-r--r-- | src/serialport/qserialport.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/serialport/qserialport.cpp b/src/serialport/qserialport.cpp index 9d2fcef..ffc763e 100644 --- a/src/serialport/qserialport.cpp +++ b/src/serialport/qserialport.cpp @@ -79,7 +79,9 @@ QSerialPortPrivateData::QSerialPortPrivateData(QSerialPort *q) , policy(QSerialPort::IgnorePolicy) , dataTerminalReady(false) , requestToSend(false) +#if QT_DEPRECATED_SINCE(5,3) , settingsRestoredOnClose(true) +#endif , q_ptr(q) { } @@ -580,6 +582,7 @@ void QSerialPort::close() The default state of the QSerialPort class is to restore the settings. */ +#if QT_DEPRECATED_SINCE(5,3) void QSerialPort::setSettingsRestoredOnClose(bool restore) { Q_D(QSerialPort); @@ -595,9 +598,10 @@ bool QSerialPort::settingsRestoredOnClose() const Q_D(const QSerialPort); return d->settingsRestoredOnClose; } - +#endif // QT_DEPRECATED_SINCE(5,3) /*! \fn void QSerialPort::settingsRestoredOnCloseChanged(bool restore) + \obsolete This signal is emitted after the flag which specifies to restore the previous settings while closing the serial port has been changed. The new @@ -1077,6 +1081,7 @@ bool QSerialPort::atEnd() const with the kernel and hardware. Hence, the two scenarios cannot be completely compared to each other. */ +#if QT_DEPRECATED_SINCE(5, 2) bool QSerialPort::setDataErrorPolicy(DataErrorPolicy policy) { Q_D(QSerialPort); @@ -1101,7 +1106,7 @@ QSerialPort::DataErrorPolicy QSerialPort::dataErrorPolicy() const Q_D(const QSerialPort); return d->policy; } - +#endif // QT_DEPRECATED_SINCE(5, 2) /*! \fn void QSerialPort::dataErrorPolicyChanged(DataErrorPolicy policy) \obsolete |