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 0800f99e67e05edf91b047f84650a7f91aa5388c..2a34d7563785fbd4da3f52c28b8eed961b1574fd 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);
 }