mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
_on_entity_change is not used
This commit is contained in:
parent
fc9d199437
commit
11ec769ec9
4 changed files with 4 additions and 32 deletions
|
|
@ -51,6 +51,10 @@ class BaseWidget(QtWidgets.QWidget):
|
|||
def show_actions_menu(self, event):
|
||||
print("Show actions for {}".format(self.entity.path))
|
||||
|
||||
def _on_entity_change(self):
|
||||
"""Not yet used."""
|
||||
pass
|
||||
|
||||
|
||||
class InputWidget(BaseWidget):
|
||||
def update_style(self):
|
||||
|
|
@ -123,9 +127,6 @@ class GUIWidget(BaseWidget):
|
|||
def set_entity_value(self):
|
||||
return
|
||||
|
||||
def _on_entity_change(self):
|
||||
pass
|
||||
|
||||
def hierarchical_style_update(self):
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -704,9 +704,6 @@ class DictMutableKeysWidget(BaseWidget):
|
|||
widget.key_input.setText(key)
|
||||
self.on_shuffle()
|
||||
|
||||
def _on_entity_change(self):
|
||||
print("_on_entity_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
def hierarchical_style_update(self):
|
||||
for input_field in self.input_fields:
|
||||
input_field.hierarchical_style_update()
|
||||
|
|
|
|||
|
|
@ -187,9 +187,6 @@ class DictImmutableKeysWidget(BaseWidget):
|
|||
invalid.extend(input_field.get_invalid())
|
||||
return invalid
|
||||
|
||||
def _on_entity_change(self):
|
||||
print("_on_entity_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
|
||||
class BoolWidget(InputWidget):
|
||||
def create_ui(self):
|
||||
|
|
@ -221,9 +218,6 @@ class BoolWidget(InputWidget):
|
|||
return
|
||||
self.entity.set_value(self.input_field.isChecked())
|
||||
|
||||
def _on_entity_change(self):
|
||||
self.update_style()
|
||||
|
||||
|
||||
class TextWidget(InputWidget):
|
||||
def create_ui(self):
|
||||
|
|
@ -270,9 +264,6 @@ class TextWidget(InputWidget):
|
|||
|
||||
self.entity.set_value(self.input_value())
|
||||
|
||||
def _on_entity_change(self):
|
||||
self.update_style()
|
||||
|
||||
|
||||
class NumberWidget(InputWidget):
|
||||
def create_ui(self):
|
||||
|
|
@ -303,9 +294,6 @@ class NumberWidget(InputWidget):
|
|||
return
|
||||
self.entity.set_value(self.input_field.value())
|
||||
|
||||
def _on_entity_change(self):
|
||||
self.update_style()
|
||||
|
||||
|
||||
class RawJsonInput(QtWidgets.QPlainTextEdit):
|
||||
tab_length = 4
|
||||
|
|
@ -379,9 +367,6 @@ class RawJsonWidget(InputWidget):
|
|||
def set_entity_value(self):
|
||||
self.input_field.set_value(self.entity.value)
|
||||
|
||||
def _on_entity_change(self):
|
||||
self.update_style()
|
||||
|
||||
def _on_value_change(self):
|
||||
if self.ignore_input_changes:
|
||||
return
|
||||
|
|
@ -430,9 +415,6 @@ class EnumeratorWidget(InputWidget):
|
|||
return
|
||||
print("_on_value_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
def _on_entity_change(self):
|
||||
self.update_style()
|
||||
|
||||
|
||||
class PathWidget(BaseWidget):
|
||||
def create_ui(self):
|
||||
|
|
@ -468,9 +450,6 @@ class PathWidget(BaseWidget):
|
|||
def child_invalid(self):
|
||||
return self.input_field.is_invalid
|
||||
|
||||
def _on_entity_change(self):
|
||||
print("_on_entity_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
def get_invalid(self):
|
||||
return self.input_field.get_invalid()
|
||||
|
||||
|
|
@ -512,5 +491,3 @@ class PathInputWidget(InputWidget):
|
|||
return
|
||||
print("_on_value_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
def _on_entity_change(self):
|
||||
print("_on_entity_change", self.__class__.__name__, self.entity.path)
|
||||
|
|
|
|||
|
|
@ -245,9 +245,6 @@ class ListWidget(InputWidget):
|
|||
def _on_value_change(self):
|
||||
print("_on_value_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
def _on_entity_change(self):
|
||||
print("_on_entity_change", self.__class__.__name__, self.entity.path)
|
||||
|
||||
def count(self):
|
||||
return len(self.input_fields)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue