From db034b026fdfb6af36835c17cfa1f69f24fc7984 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 21 Jul 2010 18:48:33 +0000 Subject: [PATCH] Added Idle settings to Settings Gui git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3309 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/settings/GeneralPage.cpp | 4 +++ .../src/gui/settings/GeneralPage.ui | 33 +++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/settings/GeneralPage.cpp b/retroshare-gui/src/gui/settings/GeneralPage.cpp index 3ad355160..ba517e607 100755 --- a/retroshare-gui/src/gui/settings/GeneralPage.cpp +++ b/retroshare-gui/src/gui/settings/GeneralPage.cpp @@ -63,6 +63,8 @@ GeneralPage::save(QString &errmsg) Settings->setRunRetroshareOnBoot( ui.chkRunRetroshareAtSystemStartup->isChecked()); + + Settings->setMaxTimeBeforeIdle(ui.spinBox->value()); return true; } @@ -78,6 +80,8 @@ GeneralPage::load() ui.checkQuit->setChecked(Settings->value(QString::fromUtf8("doQuit"), false).toBool()); ui.checkClosetoTray->setChecked(Settings->value(QString::fromUtf8("ClosetoTray"), false).toBool()); + + ui.spinBox->setValue(Settings->getMaxTimeBeforeIdle()); } diff --git a/retroshare-gui/src/gui/settings/GeneralPage.ui b/retroshare-gui/src/gui/settings/GeneralPage.ui index 2c1c9054e..fc17cd678 100755 --- a/retroshare-gui/src/gui/settings/GeneralPage.ui +++ b/retroshare-gui/src/gui/settings/GeneralPage.ui @@ -7,7 +7,7 @@ 0 0 413 - 267 + 314 @@ -565,7 +565,7 @@ - + Qt::Vertical @@ -578,6 +578,35 @@ + + + + Idle + + + + + + Idle Time + + + + + + + + + + seconds + + + 1000 + + + + + +