From 03d492e49e74eefa1c83e37e833d862f4b9f1e45 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Sat, 13 Feb 2016 16:14:26 +0300 Subject: Deprecate QSPI::isBusy() method It is impossible to implement this method properly on all platforms. Its implementation is complicated and introduces a side-effects, related to the race-conditions, permissions and so on. The user can implement QSPI::isBusy() himself just trying to open a desired device, what is equivalent to the current implementation. Change-Id: I71ef69a1a8edb7c4df23c8b2816add40475e00b5 Reviewed-by: Sergey Belyashov Reviewed-by: Denis Shienkov --- src/serialport/qserialportinfo_osx.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/serialport/qserialportinfo_osx.cpp') diff --git a/src/serialport/qserialportinfo_osx.cpp b/src/serialport/qserialportinfo_osx.cpp index 4e73025..912d880 100644 --- a/src/serialport/qserialportinfo_osx.cpp +++ b/src/serialport/qserialportinfo_osx.cpp @@ -213,6 +213,7 @@ QList QSerialPortInfo::standardBaudRates() return QSerialPortPrivate::standardBaudRates(); } +#if QT_DEPRECATED_SINCE(5, 6) bool QSerialPortInfo::isBusy() const { QString lockFilePath = serialPortLockFilePath(portName()); @@ -235,6 +236,7 @@ bool QSerialPortInfo::isBusy() const return true; } +#endif // QT_DEPRECATED_SINCE(5, 6) #if QT_DEPRECATED_SINCE(5, 2) bool QSerialPortInfo::isValid() const -- cgit v1.2.1