mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
body has set better stretch factor and app can handle with clipboard
This commit is contained in:
parent
8da831c193
commit
d39f8b79fa
1 changed files with 8 additions and 2 deletions
|
|
@ -64,8 +64,8 @@ class Window(QtWidgets.QDialog):
|
|||
body.addWidget(widget_family)
|
||||
body.addWidget(widget_components)
|
||||
body.setStretchFactor(body.indexOf(widget_assets_wrap), 2)
|
||||
body.setStretchFactor(body.indexOf(widget_family), 2)
|
||||
body.setStretchFactor(body.indexOf(widget_components), 3)
|
||||
body.setStretchFactor(body.indexOf(widget_family), 3)
|
||||
body.setStretchFactor(body.indexOf(widget_components), 5)
|
||||
|
||||
layout = QtWidgets.QVBoxLayout(self)
|
||||
layout.addWidget(body)
|
||||
|
|
@ -124,6 +124,12 @@ class Window(QtWidgets.QDialog):
|
|||
self.widget_family.change_asset(self.NOT_SELECTED)
|
||||
self.widget_family.on_data_changed()
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
if event.key() == QtCore.Qt.Key_V and event.modifiers() == QtCore.Qt.ControlModifier:
|
||||
clip = QtWidgets.QApplication.clipboard()
|
||||
self.widget_components.process_mime_data(clip)
|
||||
super().keyPressEvent(event)
|
||||
|
||||
def validation(self):
|
||||
if not self.initialized:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue