Enable rotation of the confirmation box
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:04:19 +0000 (12:04 +0100)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:04:19 +0000 (12:04 +0100)
src/mainwindow.cpp

index 8cfd5ee..273659c 100644 (file)
@@ -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) {