mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 05:26:29 +02:00
[ui] handle file drop on Viewer2D
This commit is contained in:
parent
e71a95de7a
commit
b8b8ea376c
1 changed files with 7 additions and 1 deletions
|
@ -71,8 +71,14 @@ Item {
|
|||
implicitWidth: Math.round(parent.width * 0.4)
|
||||
Layout.minimumWidth: 40
|
||||
Viewer2D {
|
||||
id: viewer2D
|
||||
anchors.fill: parent
|
||||
source: imageGallery.currentItemSource
|
||||
property url imageGallerySource: imageGallery.currentItemSource
|
||||
onImageGallerySourceChanged: viewer2D.source = imageGallerySource
|
||||
DropArea {
|
||||
anchors.fill: parent
|
||||
onDropped: viewer2D.source = drop.urls[0]
|
||||
}
|
||||
Rectangle {
|
||||
z: -1
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue