From f1c119a45032385a0841b3c7a36cdf0669cb57da Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 23 Apr 2021 18:58:38 +0200 Subject: [PATCH] APT Demod: fixed Qt < 5.13 compilation issue --- plugins/channelrx/demodapt/aptdemodgui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/channelrx/demodapt/aptdemodgui.cpp b/plugins/channelrx/demodapt/aptdemodgui.cpp index 54c8978b0..fcbc9c175 100644 --- a/plugins/channelrx/demodapt/aptdemodgui.cpp +++ b/plugins/channelrx/demodapt/aptdemodgui.cpp @@ -144,7 +144,11 @@ bool APTDemodGUI::handleMessage(const Message& message) m_pixmap.convertFromImage(m_image); m_pixmap.scroll(0, 1, 0, 0, m_image.width(), m_image.height()-1); // scroll down 1 line m_image = m_pixmap.toImage(); +#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0) m_image.convertTo(imageFormat); // restore format +#else + m_image = m_image.convertToFormat(imageFormat); +#endif } }