Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtestelement.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 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 <QtTest/private/qtestelement_p.h>
5
7
12
14{
15 for (auto *child : listOfChildren)
16 delete child;
17}
18
20{
21 if (!element)
22 return false;
23
24 if (element->elementType() != QTest::LET_Undefined) {
25 listOfChildren.push_back(element);
26 element->setParent(this);
27 return true;
28 }
29
30 return false;
31}
32
33const std::vector<QTestElement*> &QTestElement::childElements() const
34{
35 return listOfChildren;
36}
37
39{
40 return parent;
41}
42
44{
45 parent = p;
46}
47
49
QTest::LogElementType elementType() const
const std::vector< QTestElement * > & childElements() const
QTestElement(QTest::LogElementType type=QTest::LET_Undefined)
const QTestElement * parentElement() const
bool addChild(QTestElement *element)
void setParent(const QTestElement *p)
Combined button and popup list for selecting options.
GLenum type
GLfloat GLfloat p
[1]
QLayoutItem * child
[0]