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:
Kite 2021-03-02 23:18:21 +00:00 committed by manongjohn
parent dbd5cf1001
commit 8714c53942

View file

@ -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()),