Fix banner icon display

qt5
Thomas Hooge 3 years ago
parent c115c7cd7f
commit 9026339200
  1. 6
      src/lib/tools.cpp

@ -48,11 +48,7 @@ void createBanner(QPixmap* Pixmap,const QPixmap* IconAlpha,const QString& Text,i
QPixmap Icon(32,32); QPixmap Icon(32,32);
if(IconAlpha){ if(IconAlpha){
Icon.fill(TextColor); Icon.fill(TextColor);
// TODO Hier Fix! painter.drawPixmap(10,10, *IconAlpha);
// Icon.setAlphaChannel(*IconAlpha);
// QPainter::setCompositionMode(QPainter::CompositionMode_SourceOver)
painter.setCompositionMode(QPainter::CompositionMode_SourceOver);
painter.drawPixmap(10,10,Icon);
} }
painter.setPen(QPen(TextColor)); painter.setPen(QPen(TextColor));