diff options
author | Martin Pley <qt@pley.org> | 2014-06-10 10:53:59 (GMT) |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2014-09-11 08:58:56 (GMT) |
commit | 5f0f5dd371cb5fbd1ae1cb8f7b6f03c0109d2d6c (patch) | |
tree | 64b91882e68c7ed8d1775ebb797975bfe4dbf199 /src/gui/widgets | |
parent | ba3ca7585ea0bef493e4aa492cbe5b738e65f6aa (diff) | |
download | Qt-5f0f5dd371cb5fbd1ae1cb8f7b6f03c0109d2d6c.zip Qt-5f0f5dd371cb5fbd1ae1cb8f7b6f03c0109d2d6c.tar.gz Qt-5f0f5dd371cb5fbd1ae1cb8f7b6f03c0109d2d6c.tar.bz2 |
QPdf::addImage(): avoid a QImage detach when it's in an acceptable Format
Don't detach QImage, when it's in Format_Mono or Format_ARG32.
Use QImage::constScanLine() instead of QImage::scanLine().
Change-Id: I30fcafb576aea3189637a40fd75f77c70017ba46
Reviewed-by: John Layt <jlayt@kde.org>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
(cherry picked from qtbase/1a32cc0ae42a4a49f2d45b8ad8251ec40a30bf76)
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/widgets')
0 files changed, 0 insertions, 0 deletions