mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
footer layout is under widget and store the widget to self
This commit is contained in:
parent
280e4fe0ca
commit
239d2f90bf
1 changed files with 5 additions and 1 deletions
|
|
@ -85,7 +85,9 @@ class ErrorMessageBox(QtWidgets.QDialog):
|
|||
copy_report_btn = QtWidgets.QPushButton("Copy report", self)
|
||||
ok_btn = QtWidgets.QPushButton("OK", self)
|
||||
|
||||
footer_layout = QtWidgets.QHBoxLayout()
|
||||
footer_widget = QtWidgets.QWidget(self)
|
||||
footer_layout = QtWidgets.QHBoxLayout(footer_widget)
|
||||
footer_layout.setContentsMargins(0, 0, 0, 0)
|
||||
footer_layout.addWidget(copy_report_btn, 0)
|
||||
footer_layout.addStretch(1)
|
||||
footer_layout.addWidget(ok_btn, 0)
|
||||
|
|
@ -107,6 +109,8 @@ class ErrorMessageBox(QtWidgets.QDialog):
|
|||
if not report_data:
|
||||
copy_report_btn.setVisible(False)
|
||||
|
||||
self._content_scroll = content_scroll
|
||||
self._footer_widget = footer_widget
|
||||
self._report_data = report_data
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue