Skip to content
Snippets Groups Projects

I173 print help doc in pdf

Merged Lan Dam requested to merge i173_print_help_doc_in_pdf into develop
All threads resolved!
@@ -380,14 +380,6 @@ class HelpBrowser(QtWidgets.QWidget):
"""
url = QtCore.QUrl.fromLocalFile(file_path)
self.help_view.setSource(url)
self._set_default_pdf_file_name(file_path)
def _set_default_pdf_file_name(self, file_path: str) -> str:
"""
Set the default_pdf_file_name for the current help document
:param file_path: absolute path to a document
"""
file_name = file_path.split(' _ ')[1]
file_name = "SOHViewer Help - " + file_name
self.default_pdf_file_name = file_name.replace('.help.md', '')
Loading