Try another approach.

This commit is contained in:
Roman Telezhynskyi 2020-07-06 16:35:54 +03:00
parent 43db94f4b0
commit 2c7456ccd3

View File

@ -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
}