Fix GCC warning Wint-in-bool-context.
--HG-- branch : release
This commit is contained in:
parent
b8acb767df
commit
4f18aea56f
|
@ -71,7 +71,7 @@ void PaintWithFixItemHighlightSelected(Item *item, QPainter *painter, const QSty
|
||||||
QStyleOptionGraphicsItem myoption = (*option);
|
QStyleOptionGraphicsItem myoption = (*option);
|
||||||
if (myoption.state & QStyle::State_Selected)
|
if (myoption.state & QStyle::State_Selected)
|
||||||
{
|
{
|
||||||
myoption.state &= !QStyle::State_Selected;
|
myoption.state &= ~QStyle::State_Selected;
|
||||||
}
|
}
|
||||||
item->Parent::paint(painter, &myoption, widget);
|
item->Parent::paint(painter, &myoption, widget);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user