Fix Temp Icon Over State in Menu
I overlooked this, needed to add the transparent icon for the different icon modes, otherwise hovering in the menu causes the temp icon to display.
This commit is contained in:
parent
dbd5cf1001
commit
8714c53942
1 changed files with 3 additions and 1 deletions
|
@ -495,7 +495,9 @@ QIcon createTemporaryIconFromName(const char *commandName) {
|
|||
|
||||
painter.end();
|
||||
|
||||
icon.addPixmap(transparentPm);
|
||||
icon.addPixmap(transparentPm, QIcon::Normal, QIcon::Off);
|
||||
icon.addPixmap(transparentPm, QIcon::Active);
|
||||
icon.addPixmap(transparentPm, QIcon::Normal, QIcon::On);
|
||||
icon.addPixmap(transparentPm, QIcon::Disabled);
|
||||
icon.addPixmap(compositePixmap(pixmap, normalOpacity, pxSize, pxSize,
|
||||
pixmap.width(), pixmap.height()),
|
||||
|
|
Loading…
Reference in a new issue