From 2799382c21641eb2737dad195d48b32f9b70ca45 Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Wed, 30 Aug 2023 00:24:09 +0200 Subject: [PATCH] Drop code for Qt < 6.5.0 ...now that we depend on Qt >= 6.5.0. --- src/imageformats/exr.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/imageformats/exr.cpp b/src/imageformats/exr.cpp index a219ee0..c3c57a3 100644 --- a/src/imageformats/exr.cpp +++ b/src/imageformats/exr.cpp @@ -54,9 +54,7 @@ #include #include -#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) #include -#endif // Allow the code to works on all QT versions supported by KDE // project (Qt 5.15 and Qt 6.x) to easy backports fixes. @@ -194,11 +192,7 @@ bool EXRHandler::read(QImage *outImage) } auto dateTime = QDateTime::fromString(QString::fromStdString(capDate->value()), QStringLiteral("yyyy:MM:dd HH:mm:ss")); if (dateTime.isValid()) { -#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) dateTime.setTimeZone(QTimeZone::fromSecondsAheadOfUtc(off)); -#else - dateTime.setOffsetFromUtc(off); -#endif image.setText(QStringLiteral("Date"), dateTime.toString(Qt::ISODate)); } }