mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Switch to for range loop
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
14ecf535f9
commit
983c02b6db
1 changed files with 2 additions and 3 deletions
|
@ -144,9 +144,8 @@ QIcon Theme::themeIcon(const QString &name, bool sysTray) const
|
|||
return cached = QIcon::fromTheme(name);
|
||||
}
|
||||
|
||||
QList<int> sizes;
|
||||
sizes << 16 << 32 << 64 << 128 << 256;
|
||||
foreach (int size, sizes) {
|
||||
const auto sizes = QVector<int>{ 16, 32, 64, 128, 256 };
|
||||
for (int size : sizes) {
|
||||
QString svgName = QString::fromLatin1(":/client/theme/%1/%2.svg").arg(flavor).arg(name);
|
||||
QSvgRenderer renderer(svgName);
|
||||
QImage img(size, size, QImage::Format_ARGB32);
|
||||
|
|
Loading…
Reference in a new issue