summaryrefslogtreecommitdiffstats
path: root/examples/draganddrop/puzzle
diff options
context:
space:
mode:
Diffstat (limited to 'examples/draganddrop/puzzle')
-rw-r--r--examples/draganddrop/puzzle/puzzlewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/draganddrop/puzzle/puzzlewidget.cpp b/examples/draganddrop/puzzle/puzzlewidget.cpp
index 1c5b0cc5d6..2e39f84e9e 100644
--- a/examples/draganddrop/puzzle/puzzlewidget.cpp
+++ b/examples/draganddrop/puzzle/puzzlewidget.cpp
@@ -78,7 +78,7 @@ void PuzzleWidget::dragLeaveEvent(QDragLeaveEvent *event)
void PuzzleWidget::dragMoveEvent(QDragMoveEvent *event)
{
- QRect updateRect = highlightedRect.unite(targetSquare(event->pos()));
+ QRect updateRect = highlightedRect.united(targetSquare(event->pos()));
if (event->mimeData()->hasFormat("image/x-puzzle-piece")
&& findPiece(targetSquare(event->pos())) == -1) {