97 from .QtHelpDocumentationSelectionDialog import ( |
97 from .QtHelpDocumentationSelectionDialog import ( |
98 QtHelpDocumentationSelectionDialog, |
98 QtHelpDocumentationSelectionDialog, |
99 ) |
99 ) |
100 |
100 |
101 dlg = QtHelpDocumentationSelectionDialog( |
101 dlg = QtHelpDocumentationSelectionDialog( |
102 self.__pluginHelpDocuments, QtHelpDocumentationSelectionDialog.AddMode, self |
102 self.__pluginHelpDocuments, |
|
103 QtHelpDocumentationSelectionDialog.AddMode, |
|
104 parent=self, |
103 ) |
105 ) |
104 if dlg.exec() == QDialog.DialogCode.Accepted: |
106 if dlg.exec() == QDialog.DialogCode.Accepted: |
105 documents = dlg.getData() |
107 documents = dlg.getData() |
106 if documents: |
108 if documents: |
107 self.__registerDocumentation(documents) |
109 self.__registerDocumentation(documents) |
150 ) |
152 ) |
151 |
153 |
152 dlg = QtHelpDocumentationSelectionDialog( |
154 dlg = QtHelpDocumentationSelectionDialog( |
153 self.__pluginHelpDocuments, |
155 self.__pluginHelpDocuments, |
154 QtHelpDocumentationSelectionDialog.ManageMode, |
156 QtHelpDocumentationSelectionDialog.ManageMode, |
155 self, |
157 parent=self, |
156 ) |
158 ) |
157 dlg.exec() |
159 dlg.exec() |
158 |
160 |
159 @pyqtSlot() |
161 @pyqtSlot() |
160 def on_documentsList_itemSelectionChanged(self): |
162 def on_documentsList_itemSelectionChanged(self): |