projects
/
qcpufreq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make use of autoRotate setting in main application
[qcpufreq]
/
src
/
mainwindow.cpp
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
8149779
..
8ea4a24
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-58,7
+58,7
@@
MainWindow::MainWindow(QWidget *parent) :
init();
refresh();
init();
refresh();
- // enable auto rotation
+ // setup auto rotation
setAutoRotation();
//initialize orientation
setAutoRotation();
//initialize orientation
@@
-74,7
+74,6
@@
MainWindow::MainWindow(QWidget *parent) :
helpWindow.setWindowFlags( windowFlags() | Qt::Window );
//Settings widget
helpWindow.setWindowFlags( windowFlags() | Qt::Window );
//Settings widget
- //settings.setWindowFlags(Qt::Popup);
settings.hide();
//connect signals and slots
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)
*/
void MainWindow::setAutoRotation()
{
#if defined(Q_WS_MAEMO_5)
- setAttribute(Qt::WA_Maemo5AutoOrientation, true);
+ setAttribute(Qt::WA_Maemo5AutoOrientation, settings.useAutoRotate());
#endif
}
#endif
}