mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 13:36:31 +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)
|
implicitWidth: Math.round(parent.width * 0.4)
|
||||||
Layout.minimumWidth: 40
|
Layout.minimumWidth: 40
|
||||||
Viewer2D {
|
Viewer2D {
|
||||||
|
id: viewer2D
|
||||||
anchors.fill: parent
|
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 {
|
Rectangle {
|
||||||
z: -1
|
z: -1
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue