From 3c3b23b32c6d4a9067363f758aaf4ff9819b7fd8 Mon Sep 17 00:00:00 2001 From: Marcel Krems Date: Mon, 11 Aug 2014 16:51:12 +0200 Subject: Fix compilation of apps with QT_DISABLE_DEPRECATED_BEFORE=0x050300 The enum is already marked as deprecated leading to this error: qserialport.h:267:46: error: no type named 'DataErrorPolicy' in 'QSerialPort' void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy); ~~~~~~~~~~~~~^ Change-Id: I8d178f0d0921b8f5308183e1f09a4c8388448e26 Reviewed-by: Denis Shienkov --- src/serialport/qserialport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serialport/qserialport.h b/src/serialport/qserialport.h index 45b9bbf..d0f65b5 100644 --- a/src/serialport/qserialport.h +++ b/src/serialport/qserialport.h @@ -263,7 +263,9 @@ Q_SIGNALS: void parityChanged(QSerialPort::Parity parity); void stopBitsChanged(QSerialPort::StopBits stopBits); void flowControlChanged(QSerialPort::FlowControl flowControl); +#if QT_DEPRECATED_SINCE(5, 2) void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy); +#endif void dataTerminalReadyChanged(bool set); void requestToSendChanged(bool set); void error(QSerialPort::SerialPortError serialPortError); -- cgit v1.2.1