mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Fix Qt4 build for another error
This commit is contained in:
parent
86c480ee09
commit
a7c97388a9
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue