[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kviewshell/shell
From:       Wilfried Huss <Wilfried.Huss () gmx ! at>
Date:       2006-08-27 12:53:45
Message-ID: 1156683225.460033.30918.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 577747 by whuss:

port of commit 577746:

Always select the text in the searchbar when it is shown.
Also enable searching when the searchbar is hidden, but a search phrase
has been entered previously.

CCBUG: 131566

 M  +1 -1      searchWidget.cpp  


--- trunk/KDE/kdegraphics/kviewshell/shell/searchWidget.cpp #577746:577747
@@ -110,6 +110,7 @@
 void SearchWidget::show()
 {
   searchText->setEnabled(true);
+  searchText->selectAll();
   QWidget::show();
   emit searchEnabled(!searchText->text().isEmpty());
 }
@@ -118,7 +119,6 @@
 {
   searchText->setEnabled(false);
   QWidget::hide();
-  emit searchEnabled(false);
 }
 
 void SearchWidget::setFocus()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic