From: Philipp Spitzer Date: Wed, 17 Oct 2012 21:29:36 +0000 (+0000) Subject: The focus is set to the search input field when the search icon is clicked. X-Git-Tag: 0.6.0~27 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/a1e348ce6c0d0a9277187c3525f4f8b58db27c9e The focus is set to the search input field when the search icon is clicked. --- diff --git a/src/gui/searchtabcontainer.cpp b/src/gui/searchtabcontainer.cpp index 0800f99..2a34d75 100644 --- a/src/gui/searchtabcontainer.cpp +++ b/src/gui/searchtabcontainer.cpp @@ -53,6 +53,7 @@ int SearchTabContainer::searchResultCount(const QDate& date) const { void SearchTabContainer::showSearchDialog(bool show) { header->setVisible(show); treeView->setVisible(!show); + if (show) header->searchEdit->setFocus(Qt::OtherFocusReason); }