ZTest¶
Support code for testing widgets.
-
void Tui::ZTest::sendText(Tui::ZTerminal *terminal, const QString &text, Tui::KeyboardModifiers modifiers)¶
Send input text to the focused widget of
terminal
as if input via keyboard.
-
void Tui::ZTest::sendKey(Tui::ZTerminal *terminal, Tui::Key key, Tui::KeyboardModifiers modifiers)¶
Send a key to the focused widget of
terminal
as if input via keyboard.
-
void Tui::ZTest::sendKeyToWidget(Tui::ZWidget *w, Tui::Key key, Tui::KeyboardModifiers modifiers)¶
Send a key directly to the widget
w
as if input via keyboard, bypasses focus handling.
-
void Tui::ZTest::sendPaste(Tui::ZTerminal *terminal, const QString &text)¶
Send pasted text to the focused widget of
terminal
as if pasted into the terminal.