From ce8836f797ca80b4b0bdf188ec00bd5bcfb55145 Mon Sep 17 00:00:00 2001 From: Daniel Klaffenbach Date: Mon, 27 Dec 2010 11:55:51 +0100 Subject: [PATCH] Improve confirmation dialog Shows the new maximum frequency in the confirmation dialog. --- src/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) { -- 1.7.9.5