mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
We depend against qt5.15
This commit is contained in:
parent
165448bc7f
commit
8df1ea3327
|
@ -81,15 +81,9 @@ void DolphinFileMetaDataWidget::setPreview(const QPixmap& pixmap)
|
||||||
|
|
||||||
QPixmap DolphinFileMetaDataWidget::preview() const
|
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()) {
|
if (!m_preview->pixmap(Qt::ReturnByValue).isNull()) {
|
||||||
return m_preview->pixmap(Qt::ReturnByValue);
|
return m_preview->pixmap(Qt::ReturnByValue);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return QPixmap();
|
return QPixmap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue