Legacy version namespace for all functionality taken over from ADTF v3.12.
More...
|
| 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) |
| |
Legacy version namespace for all functionality taken over from ADTF v3.12.
◆ 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] | pMenu | The menu to search in. |
| [in] | strName | The name of the action (without '&') |
| [in] | bThrow | Whether 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] | strActionObjectName | The name of the action to trigger. |
| [in] | eConnectionType | The 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] | pAction | The action to trigger. |
| [in] | eConnectionType | The 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] | tmTimeout | An optional timeout, -1 => no timeout. |
- Return values
-
| ERR_TIMEOUT | If no OnTimer call has been issued during the timeout period. |