summaryrefslogtreecommitdiffstats
path: root/qtserialbluetooth.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-08 10:58:31 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-08 10:59:40 -0700
commit33a7e5cd73f12199d932665c6e59bb242167345f (patch)
tree9f7425ff7c5547e61abc9c85b4f6eaaf430e47ab /qtserialbluetooth.cpp
parent127f3b7da18a362465e33f051ede058ec2d428ab (diff)
downloadsubsurface-33a7e5cd73f12199d932665c6e59bb242167345f.tar.gz
Build fix for older Qt5
This breaks for example on Ubuntu Trusty. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qtserialbluetooth.cpp')
-rw-r--r--qtserialbluetooth.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtserialbluetooth.cpp b/qtserialbluetooth.cpp
index 0e344f5eb..f06f24e89 100644
--- a/qtserialbluetooth.cpp
+++ b/qtserialbluetooth.cpp
@@ -93,8 +93,10 @@ static int qt_serial_open(serial_t **out, dc_context_t *context, const char* dev
return DC_STATUS_NODEVICE;
case QBluetoothSocket::UnsupportedProtocolError:
return DC_STATUS_PROTOCOL;
+#if QT_VERSION >= 0x050400
case QBluetoothSocket::OperationError:
return DC_STATUS_UNSUPPORTED;
+#endif
case QBluetoothSocket::NetworkError:
return DC_STATUS_IO;
default: