mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
variant input is triggering value changed signal
This commit is contained in:
parent
e2f6653fce
commit
9d43aa9931
1 changed files with 5 additions and 0 deletions
|
|
@ -380,9 +380,14 @@ class VariantInputWidget(QtWidgets.QLineEdit):
|
|||
self._current_value = [self.text()]
|
||||
self._has_value_changed = self._current_value != self._origin_value
|
||||
|
||||
self.value_changed.emit()
|
||||
|
||||
def reset_to_origin(self):
|
||||
self.set_value(self._origin_value)
|
||||
|
||||
def get_value(self):
|
||||
return copy.deepcopy(self._current_value)
|
||||
|
||||
def set_value(self, variants=None):
|
||||
if variants is None:
|
||||
variants = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue