summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2012-01-23 13:49:35 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-31 04:55:00 +0100
commit8f6ee81ee97bd89df9bbc6d4353df05542c3ac64 (patch)
tree0ce4f7c5871508568dc486227b4b440023003603 /src/testlib
parente03386945f42fdb4d0dc6a98d1883ebb2d034aff (diff)
directfb: Use QPlatformPixmap::fromFile for Qt resources
Move to fromFile to load Qt resources for two reasons. The first is that ::fromData creates a QBuffer on our raw data and is passing that to the QImageReaders. Right now we there is a QFile -> QByteArray -> QBuffer transition that wastes cycles. The other reason is that QPlatformPixmap::fromData did/does not check if the decoded image is null and might cause a crash because of that. Change-Id: I7cb92d84874323e7205ab28883cc0fe9ecca1e27 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/testlib')
0 files changed, 0 insertions, 0 deletions