From 5cd95d248cceeeae12f7df0b15011ed30b2f5e03 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 13 Aug 2021 16:59:01 +0200 Subject: [PATCH] added hide button --- openpype/tools/new_publisher/widgets.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/openpype/tools/new_publisher/widgets.py b/openpype/tools/new_publisher/widgets.py index f7b798eede..a8b2d0a790 100644 --- a/openpype/tools/new_publisher/widgets.py +++ b/openpype/tools/new_publisher/widgets.py @@ -1342,6 +1342,13 @@ class PublishOverlayFrame(QtWidgets.QFrame): info_layout.setContentsMargins(0, 0, 0, 0) info_layout.addWidget(content_widget) + hide_btn = QtWidgets.QPushButton("Hide", content_widget) + + top_layout = QtWidgets.QHBoxLayout() + top_layout.setContentsMargins(0, 0, 0, 0) + top_layout.addStretch(1) + top_layout.addWidget(hide_btn) + main_label = QtWidgets.QLabel("Publishing...", content_widget) main_label.setAlignment(QtCore.Qt.AlignCenter) @@ -1374,7 +1381,8 @@ class PublishOverlayFrame(QtWidgets.QFrame): content_layout = QtWidgets.QVBoxLayout(content_widget) content_layout.setSpacing(5) content_layout.setAlignment(QtCore.Qt.AlignCenter) - content_layout.addStretch(1) + + content_layout.addLayout(top_layout) content_layout.addWidget(main_label) content_layout.addStretch(1) content_layout.addLayout(instance_plugin_layout) @@ -1388,6 +1396,10 @@ class PublishOverlayFrame(QtWidgets.QFrame): main_layout.addWidget(info_frame, 2) main_layout.addStretch(1) + hide_btn.clicked.connect(self.hide_requested) + + self.hide_btn = hide_btn + self.main_label = main_label self.info_frame = info_frame