From eb8deb67284b5950a4748a091f52d1eb11284c39 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Wed, 19 Jul 2023 18:08:38 -0500 Subject: Fix various Qt6 deprecations. --- quacker/rackdisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'quacker') 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 -- cgit v1.2.3