mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added backrwards compatibility for PyQt4
This commit is contained in:
parent
7f53339071
commit
4641cb5bae
2 changed files with 6 additions and 2 deletions
|
|
@ -44,8 +44,10 @@ class HelpWidget(QtWidgets.QWidget):
|
|||
if commonmark:
|
||||
html = commonmark.commonmark(text)
|
||||
self._detail_description_input.setHtml(html)
|
||||
else:
|
||||
elif hasattr(self._detail_description_input, "setMarkdown"):
|
||||
self._detail_description_input.setMarkdown(text)
|
||||
else:
|
||||
self._detail_description_input.setText(text)
|
||||
|
||||
|
||||
class HelpDialog(QtWidgets.QDialog):
|
||||
|
|
|
|||
|
|
@ -709,5 +709,7 @@ class ValidationsWidget(QtWidgets.QFrame):
|
|||
if commonmark:
|
||||
html = commonmark.commonmark(description)
|
||||
self._error_details_input.setHtml(html)
|
||||
else:
|
||||
elif hasattr(self._error_details_input, "setMarkdown"):
|
||||
self._error_details_input.setMarkdown(description)
|
||||
else:
|
||||
self._error_details_input.setText(description)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue