Qt5: 'Qt::DropAction QDrag::start(Qt::DropActions)' is deprecated: Use QDrag::exec() instead [-Wdeprecated-declarations]

This commit is contained in:
wmayer
2020-06-08 13:22:23 +02:00
committed by wwmayer
parent 623bf3eec0
commit 1af7a5646f

View File

@@ -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);
}
/**