mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
text input fills value hints
This commit is contained in:
parent
d856c4602b
commit
4c2ccb014c
1 changed files with 8 additions and 3 deletions
|
|
@ -2,6 +2,9 @@ import json
|
|||
|
||||
from Qt import QtWidgets, QtCore, QtGui
|
||||
|
||||
from openpype.widgets.sliders import NiceSlider
|
||||
from openpype.tools.settings import CHILD_OFFSET
|
||||
|
||||
from .widgets import (
|
||||
ExpandingWidget,
|
||||
NumberSpinBox,
|
||||
|
|
@ -22,9 +25,6 @@ from .base import (
|
|||
InputWidget
|
||||
)
|
||||
|
||||
from openpype.widgets.sliders import NiceSlider
|
||||
from openpype.tools.settings import CHILD_OFFSET
|
||||
|
||||
|
||||
class DictImmutableKeysWidget(BaseWidget):
|
||||
def create_ui(self):
|
||||
|
|
@ -378,6 +378,11 @@ class TextWidget(InputWidget):
|
|||
self.input_field.focused_in.connect(self._on_input_focus)
|
||||
self.input_field.textChanged.connect(self._on_value_change)
|
||||
|
||||
self._refresh_completer()
|
||||
|
||||
def _refresh_completer(self):
|
||||
self.input_field.update_completer_values(self.entity.value_hints)
|
||||
|
||||
def _on_input_focus(self):
|
||||
self.focused_in()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue