MCPcopy Create free account
hub / github.com/IJHack/QtPass / focusInput

Method focusInput

src/mainwindow.cpp:146–149  ·  view source on GitHub ↗

* @brief MainWindow::focusInput selects any text (if applicable) in the search * box and sets focus to it. Allows for easy searching, called at application * start and when receiving empty message in MainWindow::messageAvailable when * compiled with SINGLE_APP=1 (default). */

Source from the content-addressed store, hash-verified

144 * compiled with SINGLE_APP=1 (default).
145 */
146void MainWindow::focusInput() {
147 ui->lineEdit->selectAll();
148 ui->lineEdit->setFocus();
149}
150
151/**
152 * @brief MainWindow::changeEvent sets focus to the search box

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected