]> cloud.milkyroute.net Git - dolphin.git/commitdiff
We depend against qt5.15
authorLaurent Montel <montel@kde.org>
Thu, 2 Jun 2022 05:55:08 +0000 (07:55 +0200)
committerLaurent Montel <montel@kde.org>
Thu, 2 Jun 2022 05:55:08 +0000 (07:55 +0200)
src/views/tooltips/dolphinfilemetadatawidget.cpp

index 01877e4ee823971f74337bba9986c37153cda696..80d22d837f82a722914b4681e20d589d7a27ef8f 100644 (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();
 }