Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmediametadata_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
//
5
// W A R N I N G
6
// -------------
7
//
8
// This file is not part of the Qt API. It exists purely as an
9
// implementation detail. This header file may change from version to
10
// version without notice, or even be removed.
11
//
12
// We mean it.
13
//
14
15
#
ifndef
QMEDIAMETADATA_P_H
16
#
define
QMEDIAMETADATA_P_H
17
18
#
include
<
QtMultimedia
/
qmediametadata
.
h
>
19
#
include
<
QtGui
/
qimage
.
h
>
20
21
QT_BEGIN_NAMESPACE
22
23
namespace
QtMultimediaPrivate
{
24
25
#
if
QT_DEPRECATED_SINCE
(
6
,
12
)
26
QT_WARNING_PUSH
27
QT_WARNING_DISABLE_DEPRECATED
28
constexpr
auto
deprecatedThumbnailImage
=
QMediaMetaData
::
Key
::
ThumbnailImage
;
29
QT_WARNING_POP
30
#
endif
31
32
inline
void
setCoverArtImage
(QMediaMetaData &metadata,
const
QImage &image)
33
{
34
if
(image.isNull())
35
return
;
36
37
metadata.insert(QMediaMetaData::CoverArtImage, image);
38
#
if
QT_DEPRECATED_SINCE
(
6
,
12
)
39
metadata.insert(deprecatedThumbnailImage, image);
40
#
endif
41
}
42
43
}
// namespace QtMultimediaPrivate
44
QT_END_NAMESPACE
45
46
#
endif
// QMEDIAMETADATA_P_H
QtMultimediaPrivate
Definition
qaudiosystem_p.h:51
QtMultimediaPrivate::setCoverArtImage
void setCoverArtImage(QMediaMetaData &metadata, const QImage &image)
Definition
qmediametadata_p.h:32
qtmultimedia
src
multimedia
qmediametadata_p.h
Generated on
for Qt by
1.16.1