From 4f18aea56fffc374a0fd6bf16ca7c98eb772f8b2 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 29 Aug 2018 23:35:36 +0300 Subject: [PATCH] Fix GCC warning Wint-in-bool-context. --HG-- branch : release --- src/libs/vwidgets/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vwidgets/global.h b/src/libs/vwidgets/global.h index 8ce5986bd..49df52400 100644 --- a/src/libs/vwidgets/global.h +++ b/src/libs/vwidgets/global.h @@ -71,7 +71,7 @@ void PaintWithFixItemHighlightSelected(Item *item, QPainter *painter, const QSty QStyleOptionGraphicsItem myoption = (*option); if (myoption.state & QStyle::State_Selected) { - myoption.state &= !QStyle::State_Selected; + myoption.state &= ~QStyle::State_Selected; } item->Parent::paint(painter, &myoption, widget);