14.31: the last two drag events through DragAt

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 16:56:06 -04:00
1 parent 3fa7ffcc13
commit d4113bd50e
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
#include "DragAt.h"
#include "ContentView.h"
#include "IO/ImageFileDrop.h"
#include "DNGFixture.h"
@@ -83,7 +84,7 @@ QStringList names(const EditorSession &session)
bool dropOn(QWidget &target, QMimeData *data, QPoint at, Qt::KeyboardModifiers modifiers = Qt::NoModifier)
{
QDragEnterEvent entered(at, Qt::CopyAction, data, Qt::LeftButton, modifiers);
QDragEnterEvent entered(DragAt(at), Qt::CopyAction, data, Qt::LeftButton, modifiers);
QApplication::sendEvent(&target, &entered);
QDropEvent dropped(at, Qt::CopyAction, data, Qt::LeftButton, modifiers);
QApplication::sendEvent(&target, &dropped);