From 2c7456ccd3a26c62607d50ef6a35fc4992259f1d Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 6 Jul 2020 16:35:54 +0300 Subject: [PATCH] Try another approach. --- src/libs/vpropertyexplorer/checkablemessagebox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vpropertyexplorer/checkablemessagebox.cpp b/src/libs/vpropertyexplorer/checkablemessagebox.cpp index f3089e95e..7a7abf5e3 100644 --- a/src/libs/vpropertyexplorer/checkablemessagebox.cpp +++ b/src/libs/vpropertyexplorer/checkablemessagebox.cpp @@ -157,13 +157,13 @@ void CheckableMessageBox::setText(const QString &t) QPixmap CheckableMessageBox::iconPixmap() const { #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) - if (const QPixmap *p = d->pixmapLabel->pixmap()) + if (const QPixmap *p = d->pixmapLabel->pixmap()) { return QPixmap(*p); } return QPixmap(); #else - return d->pixmapLabel->pixmap(Qt::ReturnByValueConstant); + return d->pixmapLabel->pixmap(Qt::ReturnByValue); #endif }