From af235fb51681aea9ff0bd877dbd19f68d1c3e1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 18 Apr 2016 17:21:54 +0200 Subject: [PATCH] Fixed drop filtering in GridView. --- YACReaderLibrary/qml/GridComicsView.qml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/YACReaderLibrary/qml/GridComicsView.qml b/YACReaderLibrary/qml/GridComicsView.qml index 2937f1de..af8fd967 100644 --- a/YACReaderLibrary/qml/GridComicsView.qml +++ b/YACReaderLibrary/qml/GridComicsView.qml @@ -415,33 +415,23 @@ Rectangle { } } - //QTBUG-39453 - //Another fu%$ยท#& bug in Qt - //https://bugreports.qt.io/browse/QTBUG-39453 - //To solve this I am going to accept any input drag, drops will be filtered in "onDropped" DropArea { anchors.fill: parent - /* onEntered: { - console.log("onEntered"); if(drag.hasUrls) { - console.log("HAS URLS -> ", drag.urls); if(dropManager.canDropUrls(drag.urls, drag.action)) { drag.accepted = true; - console.log("canDropUrls"); }else drag.accepted = false; } else if (dropManager.canDropFormats(drag.formats)) { drag.accepted = true; - console.log("canDropFormats"); } else drag.accepted = false; - }*/ - + } onDropped: { if(drop.hasUrls && dropManager.canDropUrls(drop.urls, drop.action))