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) { diff --git a/examples/itemviews/puzzle/puzzlewidget.cpp b/examples/itemviews/puzzle/puzzlewidget.cpp index a622050fd3..96d8c6068f 100644 --- a/examples/itemviews/puzzle/puzzlewidget.cpp +++ b/examples/itemviews/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) {