Skip to content

Commit

Permalink
Fix parenting
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Sep 17, 2024
1 parent 3372fee commit 1191e13
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/ayon_core/tools/loader/ui/product_group_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ def __init__(self, controller: "LoaderController", parent):

main_label = QtWidgets.QLabel("Group Name", self)

group_name_input = PlaceholderLineEdit(self)
name_widget = QtWidgets.QWidget(self)
group_name_input = PlaceholderLineEdit(name_widget)
group_name_input.setPlaceholderText("Remain blank to ungroup..")

group_picker_btn = QtWidgets.QPushButton()
group_picker_btn = QtWidgets.QPushButton(name_widget)
group_picker_btn.setFixedWidth(18)
group_picker_menu = QtWidgets.QMenu(group_picker_btn)
group_picker_btn.setMenu(group_picker_menu)

group_btn = QtWidgets.QPushButton("Apply", self)
group_btn.setAutoDefault(True)
group_btn.setDefault(True)

name_widget = QtWidgets.QWidget()
name_layout = QtWidgets.QHBoxLayout(name_widget)
name_layout.setContentsMargins(0, 0, 0, 0)
name_layout.addWidget(group_name_input, 1)
name_layout.addWidget(group_picker_btn, 0)

group_btn = QtWidgets.QPushButton("Apply", self)
group_btn.setAutoDefault(True)
group_btn.setDefault(True)

layout = QtWidgets.QVBoxLayout(self)
layout.addWidget(main_label, 0)
layout.addWidget(name_widget, 0)
Expand Down

0 comments on commit 1191e13

Please sign in to comment.