qt: Fix build warning 'QFlags<Qt::MouseButton>::QFlags'

Use default constructor instead.
This commit is contained in:
Calcitem 2021-10-24 17:01:35 +08:00
parent 240dca3c5b
commit 472b184566
No known key found for this signature in database
GPG Key ID: F67E4F8CB7B5EED2
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ PieceItem::PieceItem(QGraphicsItem *parent) :
//setAcceptedMouseButtons(Qt::LeftButton);
setAcceptedMouseButtons(nullptr);
setAcceptedMouseButtons(Qt::MouseButtons());
//setAcceptHoverEvents(true);
model = Models::noPiece;