From 472b18456604499e262d682cad9941eb4059f5f3 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sun, 24 Oct 2021 17:01:35 +0800 Subject: [PATCH] qt: Fix build warning 'QFlags::QFlags' Use default constructor instead. --- src/ui/qt/pieceitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/qt/pieceitem.cpp b/src/ui/qt/pieceitem.cpp index 756afe1c..5e444bdc 100644 --- a/src/ui/qt/pieceitem.cpp +++ b/src/ui/qt/pieceitem.cpp @@ -37,7 +37,7 @@ PieceItem::PieceItem(QGraphicsItem *parent) : //setAcceptedMouseButtons(Qt::LeftButton); - setAcceptedMouseButtons(nullptr); + setAcceptedMouseButtons(Qt::MouseButtons()); //setAcceptHoverEvents(true); model = Models::noPiece;