/*
* QCPUFreq - a simple cpufreq GUI
- * Copyright (C) 2010 Daniel Klaffenbach <daniel.klaffenbach@cs.tu-chemnitz.de>
+ * Copyright (C) 2010 Daniel Klaffenbach <danielklaffenbach@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
init();
refresh();
- // enable auto rotation
+ // setup auto rotation
setAutoRotation();
//initialize orientation
#endif
helpWindow.setWindowFlags( windowFlags() | Qt::Window );
+ //Settings widget
settings.hide();
//connect signals and slots
/**
- * 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
}
*/
void MainWindow::showSettings()
{
- settings.setWindowFlags(Qt::Popup);
+ settings.reset();
settings.show();
}