qhandjoob add search button

Signed-off-by: sebastien <sebastien@perso>
Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
sebastien 2013-07-16 13:49:06 +02:00 committed by Romain Bignon
commit 3fbe113e61
2 changed files with 14 additions and 1 deletions

View file

@ -57,6 +57,7 @@ class MainWindow(QtMainWindow):
self.connect(self.ui.actionBackends, SIGNAL("triggered()"), self.backendsConfig)
self.connect(self.ui.searchEdit, SIGNAL('returnPressed()'), self.doSearch)
self.connect(self.ui.jobList, SIGNAL('currentItemChanged(QListWidgetItem*, QListWidgetItem*)'), self.jobSelected)
self.connect(self.ui.searchButton, SIGNAL('clicked()'), self.doSearch)
if self.weboob.count_backends() == 0:
self.backendsConfig()

View file

@ -35,7 +35,18 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLineEdit" name="searchEdit"/>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="searchEdit"/>
</item>
<item>
<widget class="QToolButton" name="searchButton">
<property name="text">
<string>search</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QListWidget" name="jobList">
@ -405,6 +416,7 @@
<tabstop>jobList</tabstop>
<tabstop>descriptionEdit</tabstop>
<tabstop>searchEdit</tabstop>
<tabstop>searchButton</tabstop>
</tabstops>
<resources/>
<connections/>