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
qqmljsusercontextproperties.cpp
Go to the documentation of this file.
1
// Copyright (C) 2025 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
// Qt-Security score:significant
4
5
#
include
"qqmljsusercontextproperties_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
namespace
QQmlJS
{
10
11
using
namespace
Qt
::
StringLiterals
;
12
13
UserContextProperties
::
UserContextProperties
(
const
QQmlToolingSettings
&
settings
)
14
{
15
auto
listFromSettings
= [
settings
](
QLatin1String
key
) ->
QStringList
{
16
if
(!
settings
.
isSet
(
key
))
17
return
{};
18
return
settings
.
value
(
key
).
toString
().
split
(u',',
Qt
::
SkipEmptyParts
);
19
};
20
21
setUnqualifiedAccessDisabled
(
listFromSettings
(
s_unqualifiedAccessDisabledKey
));
22
setOnUsagedWarned
(
listFromSettings
(
s_onUsageWarnedKey
));
23
24
if
(
settings
.
isSet
(
s_disableHeuristic
))
25
setIsHeuristicDisabled
(
settings
.
value
(
s_disableHeuristic
).
toBool
());
26
}
27
28
}
// namespace QQmlJS
29
30
QT_END_NAMESPACE
QPlatformGraphicsBufferHelper
\inmodule QtGui
QQmlJS
Definition
qv4bytecodegenerator_p.h:26
qtdeclarative
src
qmlcompiler
qqmljsusercontextproperties.cpp
Generated on
for Qt by
1.14.0