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 Class Reference

#include <qtestelement_p.h>

+ Inheritance diagram for QTestElement:
+ Collaboration diagram for QTestElement:

Public Member Functions

 QTestElement (QTest::LogElementType type=QTest::LET_Undefined)
 
 ~QTestElement ()
 
bool addChild (QTestElement *element)
 
const std::vector< QTestElement * > & childElements () const
 
const QTestElementparentElement () const
 
void setParent (const QTestElement *p)
 
- Public Member Functions inherited from QTestCoreElement< QTestElement >
 QTestCoreElement (QTest::LogElementType type=QTest::LET_Undefined)
 
virtual ~QTestCoreElement ()
 
void addAttribute (const QTest::AttributeIndex index, const char *value)
 
const std::vector< QTestElementAttribute * > & attributes () const
 
const char * attributeValue (QTest::AttributeIndex index) const
 
const char * attributeName (QTest::AttributeIndex index) const
 
const QTestElementAttributeattribute (QTest::AttributeIndex index) const
 
const char * elementName () const
 
QTest::LogElementType elementType () const
 

Detailed Description

Definition at line 24 of file qtestelement_p.h.

Constructor & Destructor Documentation

◆ QTestElement()

QT_BEGIN_NAMESPACE QTestElement::QTestElement ( QTest::LogElementType type = QTest::LET_Undefined)

Definition at line 8 of file qtestelement.cpp.

◆ ~QTestElement()

QTestElement::~QTestElement ( )

Definition at line 13 of file qtestelement.cpp.

References child.

Member Function Documentation

◆ addChild()

bool QTestElement::addChild ( QTestElement * element)

Definition at line 19 of file qtestelement.cpp.

References QTestCoreElement< ElementType >::elementType(), QTest::LET_Undefined, and setParent().

Referenced by QJUnitTestLogger::addIncident(), QJUnitTestLogger::startLogging(), and QJUnitTestLogger::stopLogging().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ childElements()

const std::vector< QTestElement * > & QTestElement::childElements ( ) const

Definition at line 33 of file qtestelement.cpp.

Referenced by QTestJUnitStreamer::formatAfterAttributes(), QTestJUnitStreamer::formatEnd(), and QTestJUnitStreamer::output().

+ Here is the caller graph for this function:

◆ parentElement()

const QTestElement * QTestElement::parentElement ( ) const

Definition at line 38 of file qtestelement.cpp.

Referenced by QTestJUnitStreamer::output().

+ Here is the caller graph for this function:

◆ setParent()

void QTestElement::setParent ( const QTestElement * p)

Definition at line 43 of file qtestelement.cpp.

Referenced by addChild().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: