Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.4.1
-
Component/s: Serial Port
-
Labels:None
Description
When compiling a file including qserialport.h with #define QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION, the following error occur:
include\QtSerialPort/qserialport.h:258:46: error: 'QSerialPort::DataErrorPolicy' has not been declared
void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);
This is because the signal "void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);" is not protected by "#if QT_DEPRECATED_SINCE(5, 2)", contrary to "enum DataErrorPolicy"