Apply auto-rotate setting without restarting QCPUFreq
[qcpufreq] / src / mainwindow.h
index 8be058e..b2fc16c 100644 (file)
@@ -26,7 +26,7 @@
 #include <QStringList>
 
 #include "helpwindow.h"
-#include "settingswidget.h"
+#include "settings.h"
 
 namespace Ui {
     class MainWindow;
@@ -46,7 +46,6 @@ public slots:
     void orientationChanged();
     void refresh();
     void setAutoRotation();
-    void setOverclocking();
     void setSmartReflex();
     void showHelp();
     void showSettings();
@@ -54,7 +53,6 @@ public slots:
 
 private:
     Ui::MainWindow *ui;
-    bool allowOverclocking;
     int callHelper( QString action, QString param );
     QString getCPUTemp();
     int getMaxFreq();
@@ -71,8 +69,6 @@ private:
     //! Initializes the application
     void init();
     int minFreq;
-    //! Are we using a power kernel?
-    bool powerKernel;
     QString readSysFile( QString sys_file );
     //! the timer for refreshing the UI
     QTimer refreshTimer;
@@ -83,7 +79,7 @@ private:
     //! the QGraphicsScene will contain the large chip icon displayed in the UI
     QGraphicsScene scene;
     bool showSudoError;
-    SettingsWidget settings;
+    Settings *settings;
     bool usePortrait();
 };