summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorJøger Hansegård <joger.hansegard@qt.io>2024-02-23 17:09:58 +0100
committerJøger Hansegård <joger.hansegard@qt.io>2024-02-26 10:39:42 +0100
commit2f830a63f13c307d97fe61adc7cdfe38be16fd1e (patch)
treed1d5364ea2c64d74c6dcc80cac587b30adc5838c /src/multimedia
parent1e7adcc64b3b17618e833764294759b49bae8ea1 (diff)
Clarify documentation for QMediaMetaData::Key::ThumbnailImage
QMediaMetaData will only return a QImage for the key QMediaMetaData::Key::ThumbnailImage if the media contains an embedded thumbnail image. Specifically, Qt Multimedia will not generate an image if it is not already part of the metadata on the media. This is already documented in the Common attributes, but this patch makes it more explicit, also for the QMediaMetaData::Key::ThumbnailImage doc string. Task-number: QTBUG-116324 Pick-to: 6.7 6.6 6.5 Change-Id: I537c7349aa08ecaf72f0a3b449744a6261f975aa Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Tim Blechmann <tim@klingt.org>
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/qmediametadata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/qmediametadata.cpp b/src/multimedia/qmediametadata.cpp
index 96568f167..9c2b1cf9d 100644
--- a/src/multimedia/qmediametadata.cpp
+++ b/src/multimedia/qmediametadata.cpp
@@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE
\row \li Composer \li The composer of the media. \li QStringList
\row \li LeadPerformer \li The lead performer in the media. \li QStringList
- \row \li ThumbnailImage \li An embedded thumbnail image. \li QImage
+ \row \li ThumbnailImage \li An embedded thumbnail image if present in metadata. \li QImage
\row \li CoverArtImage \li An embedded cover art image. \li QImage
\header \li {3,1}
@@ -272,7 +272,7 @@ QMetaType QMediaMetaData::keyType(Key key)
\value TrackNumber
\value Composer Media composer's info.
\value LeadPerformer
- \value ThumbnailImage Media thumbnail image
+ \value ThumbnailImage Media thumbnail image (if embedded in metadata)
\value CoverArtImage Media cover art
\value Orientation
\value Resolution