src/eric7/QtHelpInterface/HelpSearchWidget.py

branch
eric7
changeset 10069
435cc5875135
parent 9686
2eee7a645cba
child 10439
21c28b0f9e41
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
71 self.__browser = self.__result.findChildren(QTextBrowser)[0] 71 self.__browser = self.__result.findChildren(QTextBrowser)[0]
72 72
73 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) 73 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
74 self.customContextMenuRequested.connect(self.__showContextMenu) 74 self.customContextMenuRequested.connect(self.__showContextMenu)
75 75
76 @pyqtSlot()
76 def __search(self): 77 def __search(self):
77 """ 78 """
78 Private slot to perform a search of the database. 79 Private slot to perform a search of the database.
79 """ 80 """
80 query = self.__query.searchInput() 81 query = self.__query.searchInput()
81 self.__engine.search(query) 82 self.__engine.search(query)
82 83
84 @pyqtSlot()
83 def __searchingStarted(self): 85 def __searchingStarted(self):
84 """ 86 """
85 Private slot to handle the start of a search. 87 Private slot to handle the start of a search.
86 """ 88 """
87 QApplication.setOverrideCursor(Qt.CursorShape.WaitCursor) 89 QApplication.setOverrideCursor(Qt.CursorShape.WaitCursor)
88 90
91 @pyqtSlot(int)
89 def __searchingFinished(self, hits): 92 def __searchingFinished(self, hits):
90 """ 93 """
91 Private slot to handle the end of the search. 94 Private slot to handle the end of the search.
92 95
93 @param hits number of hits (unused) 96 @param hits number of hits (unused)

eric ide

mercurial