diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-12 15:53:27 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-12 15:54:15 (GMT) |
commit | 8a4934d8b97b55b80b2709dba04346e068251906 (patch) | |
tree | 5e3fdacedf3dc14bac004be75bf4e189b9ddaabf /src/gui/image | |
parent | e58b7a29206bf81735ce45c964285de2e94ccc70 (diff) | |
download | Qt-8a4934d8b97b55b80b2709dba04346e068251906.zip Qt-8a4934d8b97b55b80b2709dba04346e068251906.tar.gz Qt-8a4934d8b97b55b80b2709dba04346e068251906.tar.bz2 |
Document a gotcha with QIcon::addFile
addFile makes a QIcon not null, which may be a surprise if the path
given is bad.
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qicon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qicon.cpp b/src/gui/image/qicon.cpp index 3c71f15..53430ab 100644 --- a/src/gui/image/qicon.cpp +++ b/src/gui/image/qicon.cpp @@ -854,6 +854,9 @@ void QIcon::addPixmap(const QPixmap &pixmap, Mode mode, State state) QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats. + Note: When you add a non-empty filename to a QIcon, the icon becomes + non-null, even if the file doesn't exist or points to a corrupt file. + \sa addPixmap() */ void QIcon::addFile(const QString &fileName, const QSize &size, Mode mode, State state) |