From: Daniel Klaffenbach Date: Mon, 27 Dec 2010 11:04:19 +0000 (+0100) Subject: Enable rotation of the confirmation box X-Git-Tag: v0.4.3~7 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=355abb245129e1ab3820aa344a6781959ed3e002;p=qcpufreq Enable rotation of the confirmation box --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8cfd5ee..273659c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -81,7 +81,7 @@ MainWindow::MainWindow(QWidget *parent) : //connect signals and slots connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp())); connect( ui->actionAbout, SIGNAL(triggered()), this, SLOT(about()) ); - connect( ui->freq_adjust, SIGNAL(valueChanged(int)), this, SLOT(adjustFreq()) ); + connect( ui->freq_adjust, SIGNAL(sliderReleased()), this, SLOT(adjustFreq()) ); connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged())); connect(ui->sr_box, SIGNAL(clicked()), this, SLOT(setSmartReflex())); connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh())); @@ -148,13 +148,13 @@ void MainWindow::adjustFreq() if (settings->useConfirmation()) { QMessageBox box; + box.setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate()); box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel); box.setDefaultButton(QMessageBox::Apply); box.setIcon(QMessageBox::Question); - 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) ); + box.setText( tr("Do you really want to use %1 MHz as the new maximum frequency?").arg(verboseMax) ); int ret = box.exec(); if (ret != QMessageBox::Apply) {