Commit 8df1ea33 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against qt5.15

parent 165448bc
Pipeline #184405 passed with stage
in 6 minutes and 32 seconds
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment