Skip to content

Commit

Permalink
Clear unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kefir500 committed Dec 3, 2014
1 parent 7e75e16 commit 031d02e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@ QPixmap Icon::applyEffects() const
}

if (!qFuzzyIsNull(radius)) {
/*QImage canvas(gfx.size(), QImage::Format_ARGB32_Premultiplied);
QPainter paint(&canvas);
paint.drawPixmap(0, 0, gfx);
paint.setPen(Qt::NoPen);
paint.setBrush(QColor(0, 0, 0, 0));
paint.setRenderHint(QPainter::Antialiasing);
paint.setCompositionMode(QPainter::CompositionMode_DestinationIn);
paint.drawRoundedRect(gfx.rect(), radius, radius);
paint.end();
gfx = QPixmap::fromImage(canvas);*/

QImage canvas(gfx.size(), QImage::Format_ARGB32_Premultiplied);
QPainter painter(&canvas);
painter.setCompositionMode(QPainter::CompositionMode_Source);
Expand Down

0 comments on commit 031d02e

Please sign in to comment.