Fix Qt4 build for another error

This commit is contained in:
Olivier Goffart 2015-02-12 20:16:02 +01:00
parent 86c480ee09
commit a7c97388a9

View file

@ -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;
}