We depend against qt5.15

This commit is contained in:
Laurent Montel 2022-06-02 07:55:08 +02:00
parent 165448bc7f
commit 8df1ea3327

View file

@ -81,15 +81,9 @@ void DolphinFileMetaDataWidget::setPreview(const QPixmap& pixmap)
QPixmap DolphinFileMetaDataWidget::preview() const
{
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
if (m_preview->pixmap()) {
return *m_preview->pixmap();
}
#else
if (!m_preview->pixmap(Qt::ReturnByValue).isNull()) {
return m_preview->pixmap(Qt::ReturnByValue);
}
#endif
return QPixmap();
}