diff --git a/meshroom/ui/qml/GraphEditor/AttributePin.qml b/meshroom/ui/qml/GraphEditor/AttributePin.qml index 2e382af1..cb70e701 100755 --- a/meshroom/ui/qml/GraphEditor/AttributePin.qml +++ b/meshroom/ui/qml/GraphEditor/AttributePin.qml @@ -51,7 +51,7 @@ RowLayout { property bool acceptableDrop: false anchors.fill: parent - + keys: [dragTarget.objectName] onEntered: { // Filter drops: if( drag.source.objectName != dragTarget.objectName // not an edge connector @@ -81,6 +81,7 @@ RowLayout { //anchors.verticalCenter: root.verticalCenter width: 2 height: 2 + Drag.keys: [dragTarget.objectName] Drag.active: connectMA.drag.active Drag.hotSpot.x: width*0.5 Drag.hotSpot.y: height*0.5 diff --git a/meshroom/ui/qml/ImageGallery.qml b/meshroom/ui/qml/ImageGallery.qml index 28c78afc..8fe1c8e0 100644 --- a/meshroom/ui/qml/ImageGallery.qml +++ b/meshroom/ui/qml/ImageGallery.qml @@ -132,6 +132,7 @@ Panel { id: dropArea anchors.fill: parent enabled: !root.readOnly + keys: ["text/uri-list"] // TODO: onEntered: call specific method to filter files based on extension onDropped: { var augmentSfm = augmentArea.hovered diff --git a/meshroom/ui/qml/WorkspaceView.qml b/meshroom/ui/qml/WorkspaceView.qml index 5613399e..b67dbbea 100644 --- a/meshroom/ui/qml/WorkspaceView.qml +++ b/meshroom/ui/qml/WorkspaceView.qml @@ -100,6 +100,7 @@ Item { DropArea { anchors.fill: parent + keys: ["text/uri-list"] onDropped: { viewer2D.source = drop.urls[0] viewer2D.metadata = {} @@ -124,6 +125,7 @@ Item { anchors.fill: parent DropArea { anchors.fill: parent + keys: ["text/uri-list"] onDropped: load3DMedia(drop.urls[0]) } }