Use QRect::united(), QRect::unite() is deprecated.
Change-Id: Ia7aac74596c2f251c96fecf157d2aa4a935cf602 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
b64426248d
commit
62dfed9a7f
@ -78,7 +78,7 @@ void PuzzleWidget::dragLeaveEvent(QDragLeaveEvent *event)
|
|||||||
|
|
||||||
void PuzzleWidget::dragMoveEvent(QDragMoveEvent *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")
|
if (event->mimeData()->hasFormat("image/x-puzzle-piece")
|
||||||
&& findPiece(targetSquare(event->pos())) == -1) {
|
&& findPiece(targetSquare(event->pos())) == -1) {
|
||||||
|
@ -78,7 +78,7 @@ void PuzzleWidget::dragLeaveEvent(QDragLeaveEvent *event)
|
|||||||
|
|
||||||
void PuzzleWidget::dragMoveEvent(QDragMoveEvent *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")
|
if (event->mimeData()->hasFormat("image/x-puzzle-piece")
|
||||||
&& findPiece(targetSquare(event->pos())) == -1) {
|
&& findPiece(targetSquare(event->pos())) == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user