diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2010-11-30 12:39:44 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2010-11-30 13:56:51 (GMT) |
commit | 0211631bb8af96dfe2f6edc2d6c419f496ba89da (patch) | |
tree | 08fbe2a608d7b4cb1827350c63d71d40e80e4161 /src/scripttools/debugging/qscriptdebuggerstackwidgetinterface.cpp | |
parent | b498d78ce5cb62dce740fb366bbd76e3c66c7a85 (diff) | |
download | Qt-0211631bb8af96dfe2f6edc2d6c419f496ba89da.zip Qt-0211631bb8af96dfe2f6edc2d6c419f496ba89da.tar.gz Qt-0211631bb8af96dfe2f6edc2d6c419f496ba89da.tar.bz2 |
QRasterPixmapData: Reuse underlying QImage in fill() if possible.
When switching from a format without alpha channel to one that has it,
reuse the underlying QImage memory if the old & new color depths match.
This avoids one allocation when using the rather common pattern:
QPixmap pixmap(w, h);
pixmap.fill(Qt::transparent);
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerstackwidgetinterface.cpp')
0 files changed, 0 insertions, 0 deletions