mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
set line edit on comboboxes
This commit is contained in:
parent
804bb9b338
commit
fde803e6ef
1 changed files with 6 additions and 1 deletions
|
|
@ -374,6 +374,10 @@ class EnumAttrWidget(_BaseAttrDefWidget):
|
|||
combo_delegate = QtWidgets.QStyledItemDelegate(input_widget)
|
||||
input_widget.setItemDelegate(combo_delegate)
|
||||
|
||||
line_edit = QtWidgets.QLineEdit(input_widget)
|
||||
line_edit.setReadOnly(True)
|
||||
input_widget.setLineEdit(line_edit)
|
||||
|
||||
if self.attr_def.tooltip:
|
||||
input_widget.setToolTip(self.attr_def.tooltip)
|
||||
|
||||
|
|
@ -408,7 +412,8 @@ class EnumAttrWidget(_BaseAttrDefWidget):
|
|||
self._input_widget.setCurrentIndex(idx)
|
||||
|
||||
else:
|
||||
self._input_widget.lineEdit().setText("Multiselection")
|
||||
line_edit = self._input_widget.lineEdit()
|
||||
line_edit.setText("Multiselection")
|
||||
|
||||
|
||||
class UnknownAttrWidget(_BaseAttrDefWidget):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue