diff --git a/src/libs/qmuparser/qmuparserbase.cpp b/src/libs/qmuparser/qmuparserbase.cpp index 68c38b245..dbd6e4600 100644 --- a/src/libs/qmuparser/qmuparserbase.cpp +++ b/src/libs/qmuparser/qmuparserbase.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #ifdef QMUP_USE_OPENMP #include @@ -1898,7 +1899,11 @@ void QmuParserBase::StackDump(const QStack &a_stVal, const QStackpixmapLabel->pixmap()) +#if QT_VERSION <= QT_VERSION_CHECK(5, 15, 0) + if (const QPixmap *p = d->pixmapLabel->pixmap()) { return QPixmap(*p); } return QPixmap(); +#else + return d->pixmapLabel->pixmap(Qt::ReturnByValueConstant); +#endif } void CheckableMessageBox::setIconPixmap(const QPixmap &p)