mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added key tooltip
This commit is contained in:
parent
b53c452a9b
commit
7df70b63d9
1 changed files with 9 additions and 0 deletions
|
|
@ -14,6 +14,12 @@ from openpype.tools.settings import (
|
|||
from openpype.settings.constants import KEY_REGEX
|
||||
|
||||
|
||||
KEY_INPUT_TOOLTIP = (
|
||||
"Keys can't be duplicated and may contain alphabetical character (a-Z)"
|
||||
"\nnumerical characters (0-9) dash (\"-\") or underscore (\"_\")."
|
||||
)
|
||||
|
||||
|
||||
class PaintHelper:
|
||||
cached_icons = {}
|
||||
|
||||
|
|
@ -202,6 +208,7 @@ class ModifiableDictEmptyItem(QtWidgets.QWidget):
|
|||
def create_collapsible_ui(self):
|
||||
key_input = QtWidgets.QLineEdit(self)
|
||||
key_input.setObjectName("DictKey")
|
||||
key_input.setToolTip(KEY_INPUT_TOOLTIP)
|
||||
|
||||
key_label_input = QtWidgets.QLineEdit(self)
|
||||
|
||||
|
|
@ -281,6 +288,8 @@ class ModifiableDictItem(QtWidgets.QWidget):
|
|||
self.create_collapsible_ui()
|
||||
else:
|
||||
self.create_addible_ui()
|
||||
|
||||
self.key_input.setToolTip(KEY_INPUT_TOOLTIP)
|
||||
self.update_style()
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue