ADTF Qt5
Loading...
Searching...
No Matches
adtf::ui::testing::mega Namespace Reference

Legacy version namespace for all functionality taken over from ADTF v3.12. More...

Functions

tResult wait_for_next_idle (std::chrono::nanoseconds tmTimeout=std::chrono::nanoseconds{-1})
 
QAction * find_action (QMenu *pMenu, const QString &strName, bool bThrow=true)
 
void trigger_action (QAction *pAction, Qt::ConnectionType eConnectionType=Qt::BlockingQueuedConnection)
 
void trigger_action (const QString &strActionObjectName, Qt::ConnectionType eConnectionType=Qt::BlockingQueuedConnection)
 

Detailed Description

Legacy version namespace for all functionality taken over from ADTF v3.12.

Function Documentation

◆ find_action()

QAction * adtf::ui::testing::mega::find_action ( QMenu * pMenu,
const QString & strName,
bool bThrow = true )

Finds an action within a menu

Parameters
[in]pMenuThe menu to search in.
[in]strNameThe name of the action (without '&')
[in]bThrowWhether or not to throw an exception if the action was not found.
Returns
The pointer to the action or nullptr if it was not found and bThrow is false.

◆ trigger_action() [1/2]

void adtf::ui::testing::mega::trigger_action ( const QString & strActionObjectName,
Qt::ConnectionType eConnectionType = Qt::BlockingQueuedConnection )

Trigger an action within the Qt GUI thread.

Parameters
[in]strActionObjectNameThe name of the action to trigger.
[in]eConnectionTypeThe type of call.

◆ trigger_action() [2/2]

void adtf::ui::testing::mega::trigger_action ( QAction * pAction,
Qt::ConnectionType eConnectionType = Qt::BlockingQueuedConnection )

Trigger an action within the Qt GUI thread.

Parameters
[in]pActionThe action to trigger.
[in]eConnectionTypeThe type of call.

◆ wait_for_next_idle()

tResult adtf::ui::testing::mega::wait_for_next_idle ( std::chrono::nanoseconds tmTimeout = std::chrono::nanoseconds{-1})

Wait until at least one more OnIdle() calls have been issued by the X system.

Parameters
[in]tmTimeoutAn optional timeout, -1 => no timeout.
Return values
ERR_TIMEOUTIf no OnTimer call has been issued during the timeout period.