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
QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType > Class Template Reference

#include <dialogstestutils_p.h>

+ Collaboration diagram for QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >:

Public Member Functions

 DialogTestHelper (QQmlDataTest *testCase, const QString &testFilePath, const QStringList &qmlImportPaths={}, const QVariantMap &initialProperties={})
 
Q_REQUIRED_RESULT bool isWindowInitialized () const
 
Q_REQUIRED_RESULT bool waitForWindowActive ()
 
virtual bool openDialog ()
 
bool isQuickDialogOpen () const
 
QQuickWindowwindow () const
 
const char * failureMessage () const
 

Public Attributes

QQuickVisualTestUtils::QQuickApplicationHelper appHelper
 
DialogType * dialog = nullptr
 
QuickDialogType * quickDialog = nullptr
 

Detailed Description

template<typename DialogType, typename QuickDialogType>
class QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >

Definition at line 72 of file dialogstestutils_p.h.

Constructor & Destructor Documentation

◆ DialogTestHelper()

template<typename DialogType , typename QuickDialogType >
QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::DialogTestHelper ( QQmlDataTest * testCase,
const QString & testFilePath,
const QStringList & qmlImportPaths = {},
const QVariantMap & initialProperties = {} )
inline

Definition at line 75 of file dialogstestutils_p.h.

Member Function Documentation

◆ failureMessage()

template<typename DialogType , typename QuickDialogType >
const char * QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::failureMessage ( ) const
inline

Definition at line 137 of file dialogstestutils_p.h.

References QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::appHelper, QByteArray::constData(), and QQuickVisualTestUtils::QQuickApplicationHelper::errorMessage.

+ Here is the call graph for this function:

◆ isQuickDialogOpen()

template<typename DialogType , typename QuickDialogType >
bool QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::isQuickDialogOpen ( ) const
inline

◆ isWindowInitialized()

template<typename DialogType , typename QuickDialogType >
Q_REQUIRED_RESULT bool QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::isWindowInitialized ( ) const
inline

◆ openDialog()

template<typename DialogType , typename QuickDialogType >
virtual bool QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::openDialog ( )
inlinevirtual

◆ waitForWindowActive()

template<typename DialogType , typename QuickDialogType >
Q_REQUIRED_RESULT bool QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::waitForWindowActive ( )
inline

Definition at line 97 of file dialogstestutils_p.h.

References QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::appHelper, QTest::qWaitForWindowActive(), and QQuickVisualTestUtils::QQuickApplicationHelper::window.

+ Here is the call graph for this function:

◆ window()

template<typename DialogType , typename QuickDialogType >
QQuickWindow * QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::window ( ) const
inline

Member Data Documentation

◆ appHelper

◆ dialog

template<typename DialogType , typename QuickDialogType >
DialogType* QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::dialog = nullptr

◆ quickDialog

template<typename DialogType , typename QuickDialogType >
QuickDialogType* QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::quickDialog = nullptr

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