From 1af7a5646fb08c797cec1fe02437a27fb7540f64 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 8 Jun 2020 13:22:23 +0200 Subject: [PATCH] Qt5: 'Qt::DropAction QDrag::start(Qt::DropActions)' is deprecated: Use QDrag::exec() instead [-Wdeprecated-declarations] --- src/Gui/Widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/Widgets.cpp b/src/Gui/Widgets.cpp index 02c1d5e50f..8b4cd8774f 100644 --- a/src/Gui/Widgets.cpp +++ b/src/Gui/Widgets.cpp @@ -101,7 +101,7 @@ void CommandIconView::startDrag (Qt::DropActions supportedActions) drag->setMimeData(mimeData); drag->setHotSpot(QPoint(pixmap.width()/2, pixmap.height()/2)); drag->setPixmap(pixmap); - drag->start(Qt::MoveAction); + drag->exec(Qt::MoveAction); } /**