mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
moved widget in init_ui
This commit is contained in:
parent
df7cd3745a
commit
6bf97e9604
1 changed files with 22 additions and 15 deletions
|
|
@ -254,19 +254,37 @@ class InstallDialog(QtWidgets.QDialog):
|
|||
|
||||
mongo_messages_widget = QtWidgets.QWidget(self)
|
||||
mongo_connection_msg = QtWidgets.QLabel(mongo_messages_widget)
|
||||
mongo_url_msg = QtWidgets.QLabel(mongo_messages_widget)
|
||||
|
||||
mongo_url_msg.setVisible(False)
|
||||
mongo_connection_msg.setVisible(False)
|
||||
mongo_connection_msg.setTextInteractionFlags(
|
||||
QtCore.Qt.TextSelectableByMouse
|
||||
)
|
||||
|
||||
mongo_url_msg = QtWidgets.QLabel(mongo_messages_widget)
|
||||
mongo_url_msg.setVisible(False)
|
||||
mongo_url_msg.setTextInteractionFlags(
|
||||
QtCore.Qt.TextSelectableByMouse
|
||||
)
|
||||
|
||||
mongo_messages_layout = QtWidgets.QVBoxLayout(mongo_messages_widget)
|
||||
mongo_messages_layout.setContentsMargins(0, 0, 0, 0)
|
||||
mongo_messages_layout.addWidget(mongo_connection_msg)
|
||||
mongo_messages_layout.addWidget(mongo_url_msg)
|
||||
mongo_messages_layout.addWidget(mongo_connection_msg)
|
||||
|
||||
# Progress bar
|
||||
# --------------------------------------------------------------------
|
||||
progress_separator = QtWidgets.QWidget(self)
|
||||
progress_separator.setMinimumHeight(2)
|
||||
progress_separator.setObjectName("Separator")
|
||||
|
||||
progress_bar = QtWidgets.QProgressBar(self)
|
||||
progress_bar.setValue(0)
|
||||
progress_bar.setAlignment(QtCore.Qt.AlignCenter)
|
||||
progress_bar.setTextVisible(False)
|
||||
|
||||
# Console
|
||||
# --------------------------------------------------------------------
|
||||
console_widget = ConsoleWidget(self)
|
||||
|
||||
# Bottom button bar
|
||||
# --------------------------------------------------------------------
|
||||
bottom_widget = QtWidgets.QWidget(self)
|
||||
|
|
@ -304,17 +322,6 @@ class InstallDialog(QtWidgets.QDialog):
|
|||
bottom_layout.addStretch(1)
|
||||
bottom_layout.addWidget(btns_widget, 0)
|
||||
|
||||
# Console
|
||||
# --------------------------------------------------------------------
|
||||
console_widget = ConsoleWidget(self)
|
||||
|
||||
# Progress bar
|
||||
# --------------------------------------------------------------------
|
||||
progress_bar = QtWidgets.QProgressBar(self)
|
||||
progress_bar.setValue(0)
|
||||
progress_bar.setAlignment(QtCore.Qt.AlignCenter)
|
||||
progress_bar.setTextVisible(False)
|
||||
|
||||
# add all to main
|
||||
main = QtWidgets.QVBoxLayout(self)
|
||||
main.addWidget(main_label, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue