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);