Skip to content

Commit

Permalink
Updater: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 28, 2012
1 parent 6b92eb1 commit fc6c890
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/updater/downloaddialog.cpp
Expand Up @@ -41,7 +41,7 @@ struct DownloadDialog::Instance
QObject::connect(install, SIGNAL(clicked()), self, SLOT(accept()));
QObject::connect(cancel, SIGNAL(clicked()), self, SLOT(reject()));

mainLayout->addWidget(new QLabel(QString(tr("Downloading update from <b>%1</b>...")).arg(uri.host())));
mainLayout->addWidget(new QLabel(tr("Downloading update from <b>%1</b>...").arg(uri.host())));
mainLayout->addWidget(bar);

progText = new QLabel;
Expand Down Expand Up @@ -171,8 +171,8 @@ void DownloadDialog::progress(qint64 received, qint64 total)
{
d->bar->setValue(received * 100 / total);
const double MB = 1.0e6; // MiB would be 2^20
d->setProgressText(QString(tr("Received %1 MB out of total %2 MB"))
.arg(received/MB, 0, 'f', 1).arg(total/MB, 0, 'f', 1));
d->setProgressText(tr("Received %1 MB out of total %2 MB")
.arg(received/MB, 0, 'f', 1).arg(total/MB, 0, 'f', 1));
}
}

Expand Down
12 changes: 6 additions & 6 deletions doomsday/engine/portable/src/updater/updateavailabledialog.cpp
Expand Up @@ -36,19 +36,19 @@ struct UpdateAvailableDialog::Instance
if(! (latestVersion > currentVersion))
{
askUpgrade = true;
info->setText(QString("<span style=\"font-weight:bold; font-size:%1pt;\">" +
tr("There is an update available.") + "</span><p>" +
tr("The latest %2 release is %3, while you are running %4."))
info->setText(("<span style=\"font-weight:bold; font-size:%1pt;\">" +
tr("There is an update available.") + "</span><p>" +
tr("The latest %2 release is %3, while you are running %4."))
.arg(bigFontSize)
.arg(channel)
.arg(latestVersion.asText())
.arg(currentVersion.asText()));
}
else
{
info->setText(QString("<span style=\"font-weight:bold; font-size:%1pt;\">" +
tr("You are up to date.") + "</span><p>" +
tr("The installed %2 is the latest available %3 build."))
info->setText(("<span style=\"font-weight:bold; font-size:%1pt;\">" +
tr("You are up to date.") + "</span><p>" +
tr("The installed %2 is the latest available %3 build."))
.arg(bigFontSize)
.arg(currentVersion.asText())
.arg(channel));
Expand Down

0 comments on commit fc6c890

Please sign in to comment.