Qt: workaround for 5.12.0 drag n drop regression

This commit is contained in:
CozmoP 2019-01-22 19:50:19 +01:00
parent 0ac2dc567e
commit 4bf4d28111
2 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,11 @@ void FileDropWidget::dragEnterEvent(QDragEnterEvent *event)
event->acceptProposedAction();
}
void FileDropWidget::dragMoveEvent(QDragMoveEvent *event)
{
event->acceptProposedAction();
}
void FileDropWidget::dropEvent(QDropEvent *event)
{
const QMimeData *data = event->mimeData();

View File

@ -19,6 +19,7 @@ signals:
void deletePressed();
protected:
void dragEnterEvent(QDragEnterEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
void dropEvent(QDropEvent *event);
void keyPressEvent(QKeyEvent *event);
void paintEvent(QPaintEvent *event);