aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/stylehelper.cpp
diff options
context:
space:
mode:
authorEl Mehdi Fekari <mfekari@blackberry.com>2014-07-10 10:20:59 +0200
committerMehdi Fekari <mfekari@blackberry.com>2014-07-10 11:58:29 +0200
commit0d61cf7cf06d57876fdd971b2e100cea4b245aaf (patch)
tree20183724d5a7240f05bbb2e0de533affe4c1ba48 /src/libs/utils/stylehelper.cpp
parentc5687da7523fe81e2fc5d4bfb57638a95e41b883 (diff)
Utils: Fix compile error with Qt5.x < Qt5.2
The QFileInfo::exists(const QString &) seems to be introduced in 5.2 Change-Id: I9289994bd0a38ba026656cb8cd6ed60b9df0c3fc Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/utils/stylehelper.cpp')
-rw-r--r--src/libs/utils/stylehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/stylehelper.cpp b/src/libs/utils/stylehelper.cpp
index 4513f9117cc..7dd0bade6b1 100644
--- a/src/libs/utils/stylehelper.cpp
+++ b/src/libs/utils/stylehelper.cpp
@@ -548,7 +548,7 @@ QPixmap StyleHelper::dpiSpecificPixmap(const QString &fileName)
const QFileInfo fi(fileName);
const QString at2xfileName = fi.path() + QLatin1Char('/')
+ fi.completeBaseName() + QStringLiteral("@2x.") + fi.suffix();
- if (QFileInfo::exists(at2xfileName)) {
+ if (QFile::exists(at2xfileName)) {
pixmapFileName = at2xfileName;
pixmapDevicePixelRatio = 2.0;
}