Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.5.0, 6.5.1
-
None
Description
Drawing of item's icons in item views performed in QCommonStyle::drawControl under
CE_ItemViewItem case:
// draw the icon QIcon::Mode mode = QIcon::Normal; if (!(vopt->state & QStyle::State_Enabled)) mode = QIcon::Disabled; else if (vopt->state & QStyle::State_Selected) mode = QIcon::Selected; QIcon::State state = vopt->state & QStyle::State_Open ? QIcon::On : QIcon::Off; vopt->icon.paint(p, iconRect, vopt->decorationAlignment, mode, state);
As you can see there is no check that an item is under mouse and also mode for icon is never equal to QIcon::Active.