mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Revert "attribute is_input_type renamed to is_item_type and added better check"
This reverts commit 84d5580873.
This commit is contained in:
parent
84d5580873
commit
20230fbccd
2 changed files with 8 additions and 8 deletions
|
|
@ -12,8 +12,8 @@ from avalon.vendor import qtawesome
|
|||
|
||||
|
||||
class SettingObject:
|
||||
# `is_item_type` attribute says if has implemented item type methods
|
||||
is_item_type = True
|
||||
# `is_input_type` attribute says if has implemented item type methods
|
||||
is_input_type = True
|
||||
# each input must have implemented default value for development
|
||||
# when defaults are not filled yet
|
||||
default_input_value = NOT_SET
|
||||
|
|
@ -1935,7 +1935,7 @@ class DictWidget(QtWidgets.QWidget, SettingObject):
|
|||
item_type = child_configuration["type"]
|
||||
klass = TypeToKlass.types.get(item_type)
|
||||
|
||||
if not getattr(klass, "is_item_type", False):
|
||||
if not klass.is_input_type:
|
||||
item = klass(child_configuration, self)
|
||||
self.content_layout.addWidget(item)
|
||||
return item
|
||||
|
|
@ -2226,7 +2226,7 @@ class DictInvisible(QtWidgets.QWidget, SettingObject):
|
|||
item_type = child_configuration["type"]
|
||||
klass = TypeToKlass.types.get(item_type)
|
||||
|
||||
if not klass.is_item_type:
|
||||
if not klass.is_input_type:
|
||||
item = klass(child_configuration, self)
|
||||
self.layout().addWidget(item)
|
||||
return item
|
||||
|
|
@ -3003,7 +3003,7 @@ class DictFormWidget(QtWidgets.QWidget, SettingObject):
|
|||
|
||||
|
||||
class LabelWidget(QtWidgets.QWidget):
|
||||
is_item_type = False
|
||||
is_input_type = False
|
||||
|
||||
def __init__(self, configuration, parent=None):
|
||||
super(LabelWidget, self).__init__(parent)
|
||||
|
|
@ -3018,7 +3018,7 @@ class LabelWidget(QtWidgets.QWidget):
|
|||
|
||||
|
||||
class SplitterWidget(QtWidgets.QWidget):
|
||||
is_item_type = False
|
||||
is_input_type = False
|
||||
_height = 2
|
||||
|
||||
def __init__(self, configuration, parent=None):
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ def file_keys_from_schema(schema_data):
|
|||
output = []
|
||||
item_type = schema_data["type"]
|
||||
klass = TypeToKlass.types[item_type]
|
||||
if not klass.is_item_type:
|
||||
if not klass.is_input_type:
|
||||
return output
|
||||
|
||||
keys = []
|
||||
|
|
@ -150,7 +150,7 @@ def file_keys_from_schema(schema_data):
|
|||
def validate_all_has_ending_file(schema_data, is_top=True):
|
||||
item_type = schema_data["type"]
|
||||
klass = TypeToKlass.types[item_type]
|
||||
if not klass.is_item_type:
|
||||
if not klass.is_input_type:
|
||||
return None
|
||||
|
||||
if schema_data.get("is_file"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue