From: Daniel Klaffenbach Date: Mon, 27 Dec 2010 10:55:51 +0000 (+0100) Subject: Improve confirmation dialog X-Git-Tag: v0.4.3~8 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=ce8836f797ca80b4b0bdf188ec00bd5bcfb55145;p=qcpufreq Improve confirmation dialog Shows the new maximum frequency in the confirmation dialog. --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e71837f..8cfd5ee 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -151,8 +151,10 @@ void MainWindow::adjustFreq() box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel); box.setDefaultButton(QMessageBox::Apply); box.setIcon(QMessageBox::Question); - box.setText(tr("The frequency changed.")); - box.setInformativeText("Do you want to use ? as new default frequency?"); + box.setText(tr("You have requested to change the maximum frequency.")); + QString verboseMax; + verboseMax.setNum( newmax/1000 ); + box.setInformativeText( tr("Do you really want to use %1 MHz as the new maximum frequency?").arg(verboseMax) ); int ret = box.exec(); if (ret != QMessageBox::Apply) {