Improve Web Ui translation

This commit is contained in:
Christophe Dumez
2011-01-14 18:57:15 +00:00
parent 3adc58bb87
commit e170d9c3a8
9 changed files with 16 additions and 19 deletions

View File

@@ -90,14 +90,11 @@ QIcon IconProvider::generateDifferentSizes(const QIcon &icon)
if(pixoff.height() > size.height())
pixoff = pixoff.scaled(size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
new_icon.addPixmap(pixoff, mode, QIcon::Off);
Q_ASSERT(pixoff.height() <= size.height());
QPixmap pixon = icon.pixmap(size, mode, QIcon::On);
if(pixon.height() > size.height())
pixon = pixoff.scaled(size, Qt::KeepAspectRatio, Qt::SmoothTransformation);
new_icon.addPixmap(pixon, mode, QIcon::On);
Q_ASSERT(pixon.height() <= size.height());
}
Q_ASSERT(new_icon.availableSizes().contains(size));
}
return new_icon;
}