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
textbuilder.cpp
Go to the documentation of this file.
1
// Copyright (C) 2020 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
// Qt-Security score:significant reason:default
4
5
#
include
"textbuilder_p.h"
6
#
include
"ui4_p.h"
7
#
include
<
QtCore
/
qvariant
.
h
>
8
9
QT_BEGIN_NAMESPACE
10
11
#
ifdef
QFORMINTERNAL_NAMESPACE
12
namespace
QFormInternal {
13
#
endif
14
15
QTextBuilder::QTextBuilder() =
default
;
16
17
QTextBuilder::~QTextBuilder() =
default
;
18
19
QVariant QTextBuilder::loadText(
const
DomProperty *property)
const
20
{
21
if
(property->kind() == DomProperty::String)
22
return
property->elementString()->text();
23
return
{};
24
}
25
26
QVariant QTextBuilder::toNativeValue(
const
QVariant &value)
const
27
{
28
return
value;
29
}
30
31
DomProperty *QTextBuilder::saveText(
const
QVariant &value)
const
32
{
33
Q_UNUSED(value);
34
return
nullptr
;
35
}
36
37
#
ifdef
QFORMINTERNAL_NAMESPACE
38
}
// namespace QFormInternal
39
#
endif
40
41
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qttools
src
designer
src
lib
uilib
textbuilder.cpp
Generated on
for Qt by
1.16.1