summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-08-26 11:40:54 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-08-30 12:25:48 +0000
commit4469fbecd4e004979dada2da72573c06719fee3c (patch)
tree425c37ad9a151bf6667562e2758077d29eefb7de /tests
parent55825068ab0e3102bf5f8843c0cccab1ff120ae1 (diff)
downloadqtsvg-4469fbecd4e004979dada2da72573c06719fee3c.tar.gz
QSvgIconEngine::addFile(): Use QMimeDatabase to determine file type
Introduce an enumeration to describe the file type and use QMimeDatbase to determine the type. This will detect SVG files also in the case resource aliases without suffixes are used. As a drive by, do not pass compressed SVG files to QPixmap when QT_NO_COMPRESS is defined, as this likely results in garbage. Task-number: QTBUG-55388 Change-Id: Ib8bafca60e9238412a5c7edf560d487e512b8fd0 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions