|
|
|
@ -48,8 +48,7 @@ void MakeSingleColorImage(QImage& img, const QColor& colorbase)
@@ -48,8 +48,7 @@ void MakeSingleColorImage(QImage& img, const QColor& colorbase)
|
|
|
|
|
QIcon ColorizeIcon(const QIcon& ico, const QColor& colorbase) |
|
|
|
|
{ |
|
|
|
|
QIcon new_ico; |
|
|
|
|
QSize sz; |
|
|
|
|
Q_FOREACH(sz, ico.availableSizes()) |
|
|
|
|
Q_FOREACH(const QSize sz, ico.availableSizes()) |
|
|
|
|
{ |
|
|
|
|
QImage img(ico.pixmap(sz).toImage()); |
|
|
|
|
MakeSingleColorImage(img, colorbase); |
|
|
|
|