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);
if(IconAlpha){
Icon.fill(TextColor);
// TODO Hier Fix!
// Icon.setAlphaChannel(*IconAlpha);
// QPainter::setCompositionMode(QPainter::CompositionMode_SourceOver)
painter.setCompositionMode(QPainter::CompositionMode_SourceOver);
painter.drawPixmap(10,10,Icon);
painter.drawPixmap(10,10, *IconAlpha);
}
painter.setPen(QPen(TextColor));