Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.1
-
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"