mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
removed boolean from setFocus
This commit is contained in:
parent
c8b1037e99
commit
45b39792e3
3 changed files with 5 additions and 5 deletions
|
|
@ -508,7 +508,7 @@ class SettingsCategoryWidget(QtWidgets.QWidget):
|
|||
first_invalid_item = invalid_items[0]
|
||||
self.scroll_widget.ensureWidgetVisible(first_invalid_item)
|
||||
if first_invalid_item.isVisible():
|
||||
first_invalid_item.setFocus(True)
|
||||
first_invalid_item.setFocus()
|
||||
return False
|
||||
|
||||
def on_saved(self, saved_tab_widget):
|
||||
|
|
|
|||
|
|
@ -128,9 +128,9 @@ class ModifiableDictEmptyItem(QtWidgets.QWidget):
|
|||
def add_new_item(self, key=None, label=None):
|
||||
input_field = self.entity_widget.add_new_key(key, label)
|
||||
if self.collapsible_key:
|
||||
self.key_input.setFocus(True)
|
||||
self.key_input.setFocus()
|
||||
else:
|
||||
input_field.key_input.setFocus(True)
|
||||
input_field.key_input.setFocus()
|
||||
return input_field
|
||||
|
||||
def _on_add_clicked(self):
|
||||
|
|
@ -563,7 +563,7 @@ class ModifiableDictItem(QtWidgets.QWidget):
|
|||
|
||||
def on_add_clicked(self):
|
||||
widget = self.entity_widget.add_new_key(None, None)
|
||||
widget.key_input.setFocus(True)
|
||||
widget.key_input.setFocus()
|
||||
|
||||
def on_edit_pressed(self):
|
||||
if not self.key_input.isVisible():
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ class ListWidget(InputWidget):
|
|||
new_entity = self.entity.add_new_item(row)
|
||||
input_field = self._input_fields_by_entity_id.get(new_entity.id)
|
||||
if input_field is not None:
|
||||
input_field.input_field.setFocus(True)
|
||||
input_field.input_field.setFocus()
|
||||
return new_entity
|
||||
|
||||
def add_row(self, child_entity, row=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue