88 self.__index.customContextMenuRequested.connect(self.__showContextMenu) |
88 self.__index.customContextMenuRequested.connect(self.__showContextMenu) |
89 self.__searchEdit.returnPressed.connect(self.__index.activateCurrentItem) |
89 self.__searchEdit.returnPressed.connect(self.__index.activateCurrentItem) |
90 self.__layout.addWidget(self.__index) |
90 self.__layout.addWidget(self.__index) |
91 |
91 |
92 @pyqtSlot(QHelpLink, str) |
92 @pyqtSlot(QHelpLink, str) |
93 def __documentActivated(self, document, keyword, modifiers=None): |
93 def __documentActivated(self, document, _keyword, modifiers=None): |
94 """ |
94 """ |
95 Private slot to handle the activation of a keyword entry. |
95 Private slot to handle the activation of a keyword entry. |
96 |
96 |
97 @param document reference to a data structure containing the |
97 @param document reference to a data structure containing the |
98 document info |
98 document info |
99 @type QHelpLink |
99 @type QHelpLink |
100 @param keyword keyword for the URL |
100 @param _keyword keyword for the URL (unused) |
101 @type str |
101 @type str |
102 @param modifiers keyboard modifiers |
102 @param modifiers keyboard modifiers |
103 @type Qt.KeyboardModifiers or None |
103 @type Qt.KeyboardModifiers or None |
104 """ |
104 """ |
105 if modifiers is None: |
105 if modifiers is None: |