summaryrefslogtreecommitdiff
path: root/quacker
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2023-07-19 18:08:38 -0500
committerJohn Fultz <jfultz@wolfram.com>2023-07-19 22:38:25 -0500
commiteb8deb67284b5950a4748a091f52d1eb11284c39 (patch)
tree98a3ae7b51e7bb35eef1bcde106673de19385916 /quacker
parentd302abb430f5cb75e7373197c91e269fdbaf2e61 (diff)
Fix various Qt6 deprecations.
Diffstat (limited to 'quacker')
-rw-r--r--quacker/rackdisplay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/quacker/rackdisplay.cpp b/quacker/rackdisplay.cpp
index b04c4fc..ef160a1 100644
--- a/quacker/rackdisplay.cpp
+++ b/quacker/rackdisplay.cpp
@@ -193,7 +193,11 @@ GraphicalRack::dropEvent (QDropEvent* event)
droppedTile->setPixmap(pixmap);
droppedTile->setAttribute (Qt::WA_DeleteOnClose);
+#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
+ QPoint dropPos = event->position().toPoint() - offset;
+#else
QPoint dropPos = event->pos() - offset;
+#endif
// Move the tile an extra half tile width in the direction of the
// move. This allows the tile to assume a new spot if it is dragged