Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
variablenode.cpp
Go to the documentation of this file.
1
// Copyright (C) 2020 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4
#
include
"variablenode.h"
5
6
QT_BEGIN_NAMESPACE
7
8
/*!
9
Clone this node on the heap and make the clone a child of
10
\a parent.
11
12
Returns a pointer to the clone.
13
*/
14
Node
*
VariableNode
::
clone
(
Aggregate
*parent)
15
{
16
auto
*vn =
new
VariableNode
(*
this
);
// shallow copy
17
vn
->
setParent
(
nullptr
);
18
parent
->
addChild
(vn);
19
20
return
vn;
21
}
22
23
QT_END_NAMESPACE
Aggregate
Definition
aggregate.h:23
Aggregate::addChild
void addChild(Node *child)
Adds the child to this node's child list and sets the child's parent pointer to this Aggregate.
Definition
aggregate.cpp:529
VariableNode
Definition
variablenode.h:17
VariableNode::clone
Node * clone(Aggregate *parent) override
Clone this node on the heap and make the clone a child of parent.
Definition
variablenode.cpp:14
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Node
The Node class is the base class for all the nodes in QDoc's parse tree.
Definition
src_corelib_text_qstring.cpp:10
Node::setParent
void setParent(Aggregate *n)
Sets the node's parent pointer to n.
Definition
node.h:182
qttools
src
qdoc
qdoc
src
qdoc
variablenode.cpp
Generated on
for Qt by
1.18.0