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"
Attachments
For Gerrit Dashboard: QTBUG-46066 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
112199,2 | Mark the signal QSP::dataErrorPolicyChanged() as deprecated | 5.5 | qt/qtserialport | Status: MERGED | +2 | 0 |
112234,2 | Mark the signal QSP::dataErrorPolicyChanged() as deprecated | qt4-dev | qt/qtserialport | Status: MERGED | +2 | 0 |