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