559 @pyqtSlot() |
559 @pyqtSlot() |
560 def on_searchEditName_returnPressed(self): |
560 def on_searchEditName_returnPressed(self): |
561 """ |
561 """ |
562 Private slot initiating a search via a press of the Return key. |
562 Private slot initiating a search via a press of the Return key. |
563 """ |
563 """ |
564 self.__search() |
564 if ( |
|
565 (bool(self.searchEditName.text()) or |
|
566 bool(self.searchEditSummary.text())) and |
|
567 self.__isPipAvailable() |
|
568 ): |
|
569 self.__search() |
565 |
570 |
566 @pyqtSlot(str) |
571 @pyqtSlot(str) |
567 def on_searchEditSummary_textChanged(self, txt): |
572 def on_searchEditSummary_textChanged(self, txt): |
568 """ |
573 """ |
569 Private slot handling a change of the search term. |
574 Private slot handling a change of the search term. |
576 @pyqtSlot() |
581 @pyqtSlot() |
577 def on_searchEditSummary_returnPressed(self): |
582 def on_searchEditSummary_returnPressed(self): |
578 """ |
583 """ |
579 Private slot initiating a search via a press of the Return key. |
584 Private slot initiating a search via a press of the Return key. |
580 """ |
585 """ |
581 self.__search() |
586 if ( |
|
587 (bool(self.searchEditName.text()) or |
|
588 bool(self.searchEditSummary.text())) and |
|
589 self.__isPipAvailable() |
|
590 ): |
|
591 self.__search() |
582 |
592 |
583 @pyqtSlot() |
593 @pyqtSlot() |
584 def on_searchButton_clicked(self): |
594 def on_searchButton_clicked(self): |
585 """ |
595 """ |
586 Private slot handling a press of the search button. |
596 Private slot handling a press of the search button. |