refreshTimer( this ),
//create a QGraphicsScene for the little chip icon
scene( this ),
+ //the settings widget
+ settings(this),
//show errors about the sudo setup only once
showSudoError( true )
{
#endif
helpWindow.setWindowFlags( windowFlags() | Qt::Window );
+ settings.hide();
+
//connect signals and slots
connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp()));
connect( ui->actionAbout, SIGNAL(triggered()), this, SLOT(about()) );
connect(ui->sr_box, SIGNAL(clicked()), this, SLOT(setSmartReflex()));
connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
connect(ui->actionOverclocking, SIGNAL(toggled(bool)), this, SLOT(setOverclocking()));
+ connect(ui->actionSettings, SIGNAL(triggered()), this, SLOT(showSettings()));
//disable overclocking button on vanilla kernels
/**
+ * SLOT: displays the settings widget
+ */
+void MainWindow::showSettings()
+{
+ settings.setWindowFlags(Qt::Popup);
+ settings.show();
+}
+
+
+/**
* Returns true when the device is in portrait mode
*/
bool MainWindow::usePortrait()