mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use separator widget in error dialog
This commit is contained in:
parent
91fa300d99
commit
20dd53a830
1 changed files with 5 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from Qt import QtWidgets, QtCore
|
||||
|
||||
from .widgets import ClickableFrame, ExpandBtn
|
||||
from .widgets import ClickableFrame, ExpandBtn, SeparatorWidget
|
||||
|
||||
|
||||
def convert_text_for_html(text):
|
||||
|
|
@ -139,12 +139,10 @@ class ErrorMessageBox(QtWidgets.QDialog):
|
|||
mime_data
|
||||
)
|
||||
|
||||
def _create_line(self):
|
||||
line = QtWidgets.QFrame(self)
|
||||
line.setObjectName("Separator")
|
||||
line.setMinimumHeight(2)
|
||||
line.setMaximumHeight(2)
|
||||
return line
|
||||
def _create_line(self, parent=None):
|
||||
if parent is None:
|
||||
parent = self
|
||||
return SeparatorWidget(2, parent=parent)
|
||||
|
||||
def _create_traceback_widget(self, traceback_text, parent=None):
|
||||
if parent is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue