X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.cpp;h=8ea4a2416a492fd35f3e13bbe551bd50f99d794b;hb=e298ebf8d53811d331770526b8c3625e881f7ca5;hp=81497794cf1c1b0a2eeba0932afc35dff97fb6aa;hpb=2361e086b1d784af91070d795fc03c24da36bf56;p=qcpufreq diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8149779..8ea4a24 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -58,7 +58,7 @@ MainWindow::MainWindow(QWidget *parent) : init(); refresh(); - // enable auto rotation + // setup auto rotation setAutoRotation(); //initialize orientation @@ -74,7 +74,6 @@ MainWindow::MainWindow(QWidget *parent) : helpWindow.setWindowFlags( windowFlags() | Qt::Window ); //Settings widget - //settings.setWindowFlags(Qt::Popup); settings.hide(); //connect signals and slots @@ -452,12 +451,12 @@ void MainWindow::orientationChanged() /** - * Enables the auto-rotation feature of Maemo5 devices + * Enables or disables the auto-rotation feature of Maemo5 devices. */ void MainWindow::setAutoRotation() { #if defined(Q_WS_MAEMO_5) - setAttribute(Qt::WA_Maemo5AutoOrientation, true); + setAttribute(Qt::WA_Maemo5AutoOrientation, settings.useAutoRotate()); #endif }