diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-01-21 14:32:08 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-01-23 15:09:22 +0100 |
commit | 4d76e4fd35e90356b3115fb64df853849f4ffcbc (patch) | |
tree | 57981f5d26125a133400229c589e833a6d4ba2cf /src/quick/items/qquickimagebase.cpp | |
parent | 6b3ac8e2e0944fb6025371c2ff37db350fef69fd (diff) |
Image: Fix that HiDPI image was not found with QRC alias
When using images in QRC and giving the 1x and 2x image files
respective aliases but without any file extension
(for example 'myimage' and 'myimage@2x'),
then Image would fail to find the 2x variant.
Task-number: QTBUG-44049
Change-Id: I20d0cb2eb48b909775b0ba737b850bc1b6697b35
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/quick/items/qquickimagebase.cpp')
-rw-r--r-- | src/quick/items/qquickimagebase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickimagebase.cpp b/src/quick/items/qquickimagebase.cpp index a4c4af4e45..bdd0ef0ce4 100644 --- a/src/quick/items/qquickimagebase.cpp +++ b/src/quick/items/qquickimagebase.cpp @@ -310,7 +310,7 @@ static QString image2xPath(const QString &path) { const int dotIndex = path.lastIndexOf(QLatin1Char('.')); if (dotIndex == -1) - return path; + return path + QLatin1String("@2x"); if (path.contains(QLatin1String("@2x."))) return path; |