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
qqmllintsettings.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 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
"qqmllintsettings_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
using
namespace
Qt::StringLiterals;
10
11
QQmlLintSettings::QQmlLintSettings(
const
QString &name)
12
: QQmlToolingSettings(name, {
"General"_L1
,
"Warnings"_L1
})
13
{
14
addOption(s_maxWarnings, -1);
15
}
16
17
qsizetype QQmlLintSettings::maxWarnings()
const
18
{
19
if
(!isSet(QQmlLintSettings::s_maxWarnings))
20
return
-1;
21
bool
ok =
false
;
22
qsizetype result = value(QQmlLintSettings::s_maxWarnings).toLongLong(&ok);
23
return
ok ? result : -1;
24
}
25
26
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
qmllint
qqmllintsettings.cpp
Generated on
for Qt by
1.16.1