Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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={})
 ~DialogTestHelper ()
Q_REQUIRED_RESULT bool isWindowInitialized () const
Q_REQUIRED_RESULT bool waitForWindowActive ()
virtual bool openDialog ()
QQuickWindowpopupWindow () const
Q_REQUIRED_RESULT bool waitForPopupWindowActiveAndPolished ()
bool isQuickDialogOpen () const
QQuickWindowwindow () const
const char * failureMessage () const

Public Attributes

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

Detailed Description

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

Definition at line 77 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 80 of file dialogstestutils_p.h.

◆ ~DialogTestHelper()

template<typename DialogType, typename QuickDialogType>
QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::~DialogTestHelper ( )
inline

Definition at line 103 of file dialogstestutils_p.h.

References dialog.

Member Function Documentation

◆ failureMessage()

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

Definition at line 175 of file dialogstestutils_p.h.

◆ isQuickDialogOpen()

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

Definition at line 165 of file dialogstestutils_p.h.

References quickDialog.

Referenced by waitForPopupWindowActiveAndPolished().

Here is the caller graph for this function:

◆ isWindowInitialized()

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

Definition at line 108 of file dialogstestutils_p.h.

◆ openDialog()

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

Definition at line 122 of file dialogstestutils_p.h.

References dialog, and quickDialog.

◆ popupWindow()

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

Definition at line 143 of file dialogstestutils_p.h.

References quickDialog.

◆ waitForPopupWindowActiveAndPolished()

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

Definition at line 148 of file dialogstestutils_p.h.

References isQuickDialogOpen().

Here is the call graph for this function:

◆ waitForWindowActive()

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

Definition at line 113 of file dialogstestutils_p.h.

◆ window()

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

Definition at line 170 of file dialogstestutils_p.h.

Member Data Documentation

◆ appHelper

template<typename DialogType, typename QuickDialogType>
QQuickVisualTestUtils::QQuickApplicationHelper QQuickDialogTestUtils::DialogTestHelper< DialogType, QuickDialogType >::appHelper

Definition at line 180 of file dialogstestutils_p.h.

◆ dialog

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

Definition at line 181 of file dialogstestutils_p.h.

Referenced by ~DialogTestHelper(), and openDialog().

◆ fileSelector

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

Definition at line 183 of file dialogstestutils_p.h.

◆ quickDialog

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

Definition at line 182 of file dialogstestutils_p.h.

Referenced by isQuickDialogOpen(), openDialog(), and popupWindow().


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