X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=mainform.cpp;h=3870a6d2bd71c88303838eccdc1431ce85f19db4;hb=f48b4d1bb89d63188c74641a980b1836d583a185;hp=afb9f6af9113fc30fd28de105d34ff4bb5a4b336;hpb=22799647c6663149bb9345132048bd47b0ec25fd;p=easylist
diff --git a/mainform.cpp b/mainform.cpp
index afb9f6a..3870a6d 100755
--- a/mainform.cpp
+++ b/mainform.cpp
@@ -8,6 +8,11 @@ MainForm::MainForm(QWidget *parent) :
ui->setupUi(this);
settings = new QSettings(WILLEM_LIU, EASY_LIST);
+ /* Make a call every x milliseconds */
+ QTimer *timer = new QTimer(this);
+ connect(timer, SIGNAL(timeout()), this, SLOT(Keep_backlight_on()));
+ timer->start(30000);
+
requestWebpage = new RequestWebpage(this);
connect(requestWebpage, SIGNAL(finished(QNetworkReply*)), this, SLOT(slotSyncList(QNetworkReply*)));
@@ -28,6 +33,14 @@ MainForm::MainForm(QWidget *parent) :
ui->actionChecked_bottom->setChecked(settings->value(CHECKED_ITEMS_TO_BOTTOM).toBool());
on_actionChecked_bottom_triggered();
+ // Set a default value for CHECKED_BACKLIGHT
+ if(settings->contains(CHECKED_BACKLIGHT) == false)
+ {
+ settings->setValue(CHECKED_BACKLIGHT, false);
+ }
+ ui->actionKeep_backlight_on->setChecked(settings->value(CHECKED_BACKLIGHT).toBool());
+ on_actionKeep_backlight_on_triggered();
+
// Create a default for landscape mode.
landscape = settings->value(LANDSCAPE).toBool();
// If LANDSCAPE exists in QSettings.
@@ -171,6 +184,7 @@ void MainForm::on_actionAbout_triggered()
aboutText.append(QDate::currentDate().toString("yyyy"));
aboutText.append("
");
aboutText.append("Created by Willem Liu.
");
+ aboutText.append("Thanks to Ade.
");
aboutText.append("Created with QtCreator.
");
aboutText.append("Please donate any amount you deem this app is worthy to keep me going on.
");
aboutText.append("