Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QTest::Internal Namespace Reference

Classes

class  HasInitMain
 
struct  QCborValueFormatter
 

Functions

template<typename T >
std::enable_if< HasInitMain< T >::value, void >::type callInitMain ()
 
template<typename T >
std::enable_if<!HasInitMain< T >::value, void >::type callInitMain ()
 
const char * toString (QSizePolicy::Policy p)
 
QByteArray toString (QSizePolicy::ControlTypes ct)
 
QByteArray toString (QSizePolicy sp)
 
Q_TESTLIB_EXPORT QString formatTryTimeoutDebugMessage (q_no_char8_t::QUtf8StringView expr, int timeout, int actual)
 
template<typename T >
std::enable_if< QtPrivate::IsQEnumHelper< T >::Value, char * >::type toString (T e)
 
template<typename T >
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&std::is_enum_v< T >, char * >::type toString (const T &e)
 
template<typename T >
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&!std::is_enum_v< T >, char * >::type toString (const T &t)
 
template<typename F >
std::enable_if< QtPrivate::IsQEnumHelper< F >::Value, char * >::type toString (QFlags< F > f)
 
template<typename F >
std::enable_if<!QtPrivate::IsQEnumHelper< F >::Value, char * >::type toString (QFlags< F > f)
 

Variables

static bool failed = false
 

Detailed Description

Function Documentation

◆ callInitMain() [1/2]

template<typename T >
std::enable_if< HasInitMain< T >::value, void >::type QTest::Internal::callInitMain ( )

Definition at line 570 of file qtest.h.

◆ callInitMain() [2/2]

template<typename T >
std::enable_if<!HasInitMain< T >::value, void >::type QTest::Internal::callInitMain ( )

Definition at line 576 of file qtest.h.

◆ formatTryTimeoutDebugMessage()

QString QTest::Internal::formatTryTimeoutDebugMessage ( q_no_char8_t::QUtf8StringView  expr,
int  timeout,
int  actual 
)

Definition at line 457 of file qtestcase.cpp.

References QString::arg(), and QString::number().

+ Here is the call graph for this function:

◆ toString() [1/8]

template<typename T >
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&std::is_enum_v< T >, char * >::type QTest::Internal::toString ( const T &  e)
inline

Definition at line 310 of file qtestcase.h.

References e, QByteArray::number(), and qstrdup().

+ Here is the call graph for this function:

◆ toString() [2/8]

template<typename T >
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&!std::is_enum_v< T >, char * >::type QTest::Internal::toString ( const T &  t)
inline

Definition at line 316 of file qtestcase.h.

References qstrdup().

+ Here is the call graph for this function:

◆ toString() [3/8]

template<typename F >
std::enable_if< QtPrivate::IsQEnumHelper< F >::Value, char * >::type QTest::Internal::toString ( QFlags< F >  f)
inline

Definition at line 332 of file qtestcase.h.

References QByteArray::constData(), qstrdup(), and QMetaEnum::valueToKeys().

+ Here is the call graph for this function:

◆ toString() [4/8]

template<typename F >
std::enable_if<!QtPrivate::IsQEnumHelper< F >::Value, char * >::type QTest::Internal::toString ( QFlags< F >  f)
inline

Definition at line 339 of file qtestcase.h.

References qsnprintf().

+ Here is the call graph for this function:

◆ toString() [5/8]

QByteArray QTest::Internal::toString ( QSizePolicy  sp)
inline

Definition at line 49 of file qtest_widgets.h.

References QByteArray::number(), sp, and toString().

+ Here is the call graph for this function:

◆ toString() [6/8]

QByteArray QTest::Internal::toString ( QSizePolicy::ControlTypes  ct)
inline

Definition at line 43 of file qtest_widgets.h.

References QMetaEnum::valueToKeys().

+ Here is the call graph for this function:

◆ toString() [7/8]

const char * QTest::Internal::toString ( QSizePolicy::Policy  p)
inline

Definition at line 37 of file qtest_widgets.h.

References QMetaEnum::valueToKey().

Referenced by QTest::toString(), toString(), QTest::toString(), QTest::toString(), and QTest::toString().

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

◆ toString() [8/8]

template<typename T >
std::enable_if< QtPrivate::IsQEnumHelper< T >::Value, char * >::type QTest::Internal::toString ( e)
inline

Definition at line 303 of file qtestcase.h.

References e, qstrdup(), and QMetaEnum::valueToKey().

+ Here is the call graph for this function:

Variable Documentation

◆ failed

bool QTest::Internal::failed = false
static

Definition at line 26 of file qtestresult.cpp.

Referenced by QTest::hasFailed(), and QTest::setFailed().