From a7c97388a945aa811272f66807fff4d4820f22ca Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 12 Feb 2015 20:16:02 +0100 Subject: [PATCH] Fix Qt4 build for another error --- src/libsync/utility.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsync/utility.cpp b/src/libsync/utility.cpp index 803ab368c..98c1b945a 100644 --- a/src/libsync/utility.cpp +++ b/src/libsync/utility.cpp @@ -448,6 +448,7 @@ quint64 Utility::StopWatch::durationOfLap( const QString& lapName ) const QString Utility::hidpiFileName(const QString &fileName, QPaintDevice *dev) { +#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0) qreal devicePixelRatio = dev ? dev->devicePixelRatio() : qApp->primaryScreen()->devicePixelRatio(); if (devicePixelRatio <= 1.0) { @@ -465,6 +466,7 @@ QString Utility::hidpiFileName(const QString &fileName, QPaintDevice *dev) return at2xfileName; } } +#endif return fileName; }