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
qqmlcontext_source_resolver.cpp
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
#
include
"qqmlcontext_source_resolver_p.h"
5
6
#
include
<
QtQml
/
qqml
.
h
>
7
#
include
<
QtQml
/
qqmlcontext
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
namespace
QMultimediaPrivate
{
12
13
QQmlContextSourceResolver
::
QQmlContextSourceResolver
(
QObject
*
object
) :
m_objectForContext
(
object
)
14
{
15
}
16
17
QUrl
QQmlContextSourceResolver
::
resolve
(
QUrl
url
)
const
18
{
19
const
QQmlContext
*
context
=
qmlContext
(
m_objectForContext
);
20
return
context
?
context
->
resolvedUrl
(
url
) :
url
;
21
}
22
23
}
// namespace QMultimediaPrivate
24
25
QT_END_NAMESPACE
QMultimediaPrivate
Definition
qmultimedia_source_resolver.cpp:10
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtmultimedia
src
multimediaquick
qqmlcontext_source_resolver.cpp
Generated on
for Qt by
1.16.1