Maemo: Harmattan application icons are now 80x80 pixels big.

Task-number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=250237
This commit is contained in:
Christian Kandeler
2011-04-28 15:11:42 +02:00
parent 52f43920d8
commit 12b2a5fff0
16 changed files with 154 additions and 69 deletions

View File

@@ -133,8 +133,9 @@ void MaemoDeployConfigurationWidget::addIcon()
MaemoDeployableListModel *const model
= m_deployConfig->deployables()->modelAt(modelRow);
const int iconDim = MaemoGlobal::applicationIconSize(MaemoGlobal::version(model->qtVersion()));
const QString origFilePath = QFileDialog::getOpenFileName(this,
tr("Choose Icon (will be scaled to 64x64 pixels, if necessary)"),
tr("Choose Icon (will be scaled to %1x%1 pixels, if necessary)").arg(iconDim),
model->projectDir(), QLatin1String("(*.png)"));
if (origFilePath.isEmpty())
return;
@@ -144,7 +145,7 @@ void MaemoDeployConfigurationWidget::addIcon()
tr("Unable to read image"));
return;
}
const QSize iconSize(64, 64);
const QSize iconSize(iconDim, iconDim);
if (pixmap.size() != iconSize)
pixmap = pixmap.scaled(iconSize);
const QString newFileName = model->projectName() + QLatin1Char('.')