From 78e7fdc473bb28234c0262633c5007d0e118677b Mon Sep 17 00:00:00 2001 From: srcejon Date: Tue, 18 Jun 2024 16:28:43 +0100 Subject: [PATCH] Fix for Qt5 --- plugins/channelrx/heatmap/heatmapgui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/channelrx/heatmap/heatmapgui.cpp b/plugins/channelrx/heatmap/heatmapgui.cpp index 13f4cdb0a..1cef5d381 100644 --- a/plugins/channelrx/heatmap/heatmapgui.cpp +++ b/plugins/channelrx/heatmap/heatmapgui.cpp @@ -558,8 +558,11 @@ HeatMapGUI::HeatMapGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandS m_heatMap = reinterpret_cast(rxChannel); m_heatMap->setMessageQueueToGUI(getInputMessageQueue()); + +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) // Disable 256MB limit on image size QImageReader::setAllocationLimit(0); +#endif connect(&MainCore::instance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick())); // 50 ms