diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-02-10 15:37:12 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-02-27 18:03:33 +0000 |
commit | 7a717aaf459476f4a1f091b0e1d832c592f2caf1 (patch) | |
tree | e0da8753771dc7b117125c49f5c314bfd131c7c3 /src/widgets/kernel/qwindowcontainer.cpp | |
parent | 1631384c278620597323b0b78abce3ef7022db26 (diff) |
QImageWriter: Detect failure due to trying to write a QImage()
This is not a bug in QImageWriter, but caller code. We should be
explicit about what the problem was so it can be fixed.
[ChangeLog][QtGui][QImageWriter] Add QImageWriter::InvalidImageError to
communicate invalid attempts to write a bad QImage (for instance, a null
QImage).
Change-Id: I0333b8263f1da1c672bed17dab48bfd6cafe41a2
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwindowcontainer.cpp')
0 files changed, 0 insertions, 0 deletions