From 87eba9bb89fa1b1fc2e247f31bff9387cde356ef Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 9 Sep 2023 14:22:47 -0500 Subject: [PATCH] Fix build on Qt 5.13 and earlier --- app/streaming/input/input.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/streaming/input/input.cpp b/app/streaming/input/input.cpp index a28b2c9a..fb11938b 100644 --- a/app/streaming/input/input.cpp +++ b/app/streaming/input/input.cpp @@ -138,7 +138,11 @@ SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, int streamWidth, i // ,,,... // QString streamIgnoreDeviceGuids = qgetenv("STREAM_IGNORE_DEVICE_GUIDS"); +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) m_IgnoreDeviceGuids = streamIgnoreDeviceGuids.split(',', Qt::SkipEmptyParts); +#else + m_IgnoreDeviceGuids = streamIgnoreDeviceGuids.split(',', QString::SkipEmptyParts); +#endif // For SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES, we use the union of SDL_GAMECONTROLLER_IGNORE_DEVICES // and STREAM_GAMECONTROLLER_IGNORE_DEVICES while streaming. STREAM_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT