mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +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
|
||||
{
|
||||
#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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue