The focus is set to the search input field when the search icon is clicked.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 17 Oct 2012 21:29:36 +0000 (21:29 +0000)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 17 Oct 2012 21:29:36 +0000 (21:29 +0000)
src/gui/searchtabcontainer.cpp

index 0800f99..2a34d75 100644 (file)
@@ -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);
 }