scene = new QGraphicsScene();
orientationChanged();
+ //create the refresh timer
+ refreshTimer = new QTimer();
+ //refresh UI every 10 seconds
+ refreshTimer->start( 10000 );
+
//connect signals and slots
connect( ui->actionAbout, SIGNAL(triggered()), this, SLOT(about()) );
connect( ui->freq_adjust, SIGNAL(valueChanged(int)), this, SLOT(adjustFreq()) );
connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
connect( ui->sr_btn, SIGNAL(clicked()), this, SLOT(setSmartReflex()) );
+ connect(refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
}
#include <QMainWindow>
#include <QGraphicsScene>
+#include <QTimer>
namespace Ui {
class MainWindow;
int getScalingSteps();
int getSmartReflexState();
QString readSysFile( QString sys_file );
+ //! the timer for refreshing the UI
+ QTimer *refreshTimer;
//! the QGraphicsScene will contain the large chip icon displayed in the UI
QGraphicsScene *scene;
bool usePortrait();