mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
tried to extend raw json input
This commit is contained in:
parent
34416f46dd
commit
1390637bb1
1 changed files with 10 additions and 1 deletions
|
|
@ -752,6 +752,11 @@ class RawJsonInput(QtWidgets.QPlainTextEdit):
|
|||
self.setProperty("state", state)
|
||||
self.style().polish(self)
|
||||
|
||||
def resizeEvent(self, event):
|
||||
self.updateGeometry()
|
||||
super().resizeEvent(event)
|
||||
|
||||
|
||||
def value(self):
|
||||
return self.toPlainText()
|
||||
|
||||
|
|
@ -791,7 +796,11 @@ class RawJsonWidget(QtWidgets.QWidget, InputWidget):
|
|||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.setSpacing(0)
|
||||
|
||||
self.text_input = RawJsonInput()
|
||||
self.text_input = RawJsonInput(self)
|
||||
self.text_input.setSizePolicy(
|
||||
QtWidgets.QSizePolicy.Minimum,
|
||||
QtWidgets.QSizePolicy.MinimumExpanding
|
||||
)
|
||||
|
||||
if not label_widget:
|
||||
label = input_data["label"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue