57 self.__parseTimer = QTimer(self) |
57 self.__parseTimer = QTimer(self) |
58 self.__parseTimer.setSingleShot(True) |
58 self.__parseTimer.setSingleShot(True) |
59 self.__parseTimer.setInterval(5 * 1000) |
59 self.__parseTimer.setInterval(5 * 1000) |
60 self.__parseTimer.timeout.connect(self.__parseEditor) |
60 self.__parseTimer.timeout.connect(self.__parseEditor) |
61 self.__editor.textChanged.connect(self.__resetParseTimer) |
61 self.__editor.textChanged.connect(self.__resetParseTimer) |
|
62 self.__editor.refreshed.connect(self.__resetParseTimer) |
62 |
63 |
63 self.__selectedGlobal = "" |
64 self.__selectedGlobal = "" |
64 self.__selectedMember = "" |
65 self.__selectedMember = "" |
65 |
66 |
66 QTimer.singleShot(0, self.__parseEditor) |
67 QTimer.singleShot(0, self.__parseEditor) |
70 Public method to stop and disconnect the timer. |
71 Public method to stop and disconnect the timer. |
71 """ |
72 """ |
72 self.__parseTimer.stop() |
73 self.__parseTimer.stop() |
73 self.__parseTimer.timeout.disconnect(self.__parseEditor) |
74 self.__parseTimer.timeout.disconnect(self.__parseEditor) |
74 self.__editor.textChanged.disconnect(self.__resetParseTimer) |
75 self.__editor.textChanged.disconnect(self.__resetParseTimer) |
|
76 self.__editor.refreshed.disconnect(self.__resetParseTimer) |
75 |
77 |
76 def getEditor(self): |
78 def getEditor(self): |
77 """ |
79 """ |
78 Public method to get the reference to the editor widget. |
80 Public method to get the reference to the editor widget. |
79 |
81 |