--- a/Helpviewer/QtHelpDocumentationDialog.py Sat Dec 31 13:40:26 2016 +0100 +++ b/Helpviewer/QtHelpDocumentationDialog.py Sat Dec 31 17:52:23 2016 +0100 @@ -85,8 +85,10 @@ """ from .QtHelpDocumentationSelectionDialog import \ QtHelpDocumentationSelectionDialog - dlg = QtHelpDocumentationSelectionDialog(self.__pluginHelpDocuments, - self) + dlg = QtHelpDocumentationSelectionDialog( + self.__pluginHelpDocuments, + QtHelpDocumentationSelectionDialog.AddMode, + self) if dlg.exec_() == QDialog.Accepted: documents = dlg.getData() if not documents: @@ -94,6 +96,19 @@ self.__registerDocumentations(documents) + @pyqtSlot() + def on_managePluginButton_clicked(self): + """ + Private slot to manage the QtHelp documents provided by plug-ins. + """ + from .QtHelpDocumentationSelectionDialog import \ + QtHelpDocumentationSelectionDialog + dlg = QtHelpDocumentationSelectionDialog( + self.__pluginHelpDocuments, + QtHelpDocumentationSelectionDialog.ManageMode, + self) + dlg.exec_() + def __registerDocumentations(self, fileNames): """ Private method to register a given list of documentations.