Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
4.4.2
-
None
Description
the description for this function says "Renders the decoration pixmap within the rectangle specified by rect using the given painter and style option." However, this is only done if there is no icon stored temporarily; the code is:
// if we have an icon, we ignore the pixmap
if (!d->tmp.icon.isNull())
// (otherwise draw the pixmap)
That icon is there if the role of the index in the paint method is Qt::DecorationRole; this should also be mentioned in the documentation.