From 907d8b7d7b6ef21125b5c8f17f96273c3cf4782a Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 19 Mar 2014 01:14:39 +0100 Subject: Add secondary logout fadeaway control This resolves Bug 1999 This relates to Bug 258 --- kcontrol/smserver/kcmsmserver.cpp | 3 ++ kcontrol/smserver/smserverconfigdlg.ui | 72 ++++++++++++++++++++++++---------- 2 files changed, 55 insertions(+), 20 deletions(-) (limited to 'kcontrol/smserver') diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp index b81e41c77..99f1b729a 100644 --- a/kcontrol/smserver/kcmsmserver.cpp +++ b/kcontrol/smserver/kcmsmserver.cpp @@ -94,7 +94,9 @@ void SMServerConfig::load(bool useDefaults ) c->setGroup("Logout"); dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true)); + dialog->showFadeAway->setChecked(c->readBoolEntry("doFadeaway", true)); dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true)); + dialog->showFancyFadeAway->setEnabled(dialog->confirmLogoutCheck->isChecked() && dialog->showFadeAway->isChecked()), delete c; @@ -124,6 +126,7 @@ void SMServerConfig::save() c->writeEntry("excludeApps", dialog->excludeLineedit->text()); c->setGroup("Logout"); c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked()); + c->writeEntry( "doFadeaway", dialog->showFadeAway->isChecked()); c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked()); c->sync(); delete c; diff --git a/kcontrol/smserver/smserverconfigdlg.ui b/kcontrol/smserver/smserverconfigdlg.ui index d222fefa8..654156f20 100644 --- a/kcontrol/smserver/smserverconfigdlg.ui +++ b/kcontrol/smserver/smserverconfigdlg.ui @@ -55,18 +55,32 @@ - - showFancyFadeAway - - - false - - - Show fancy &logout fadeaway - - - Check this option if you want to see a fancy fadeaway when displaying a logout confirmation dialog box. - + + showFadeAway + + + false + + + Show &logout fadeaway + + + Check this option if you want to see a fadeaway when displaying a logout confirmation dialog box. + + + + + showFancyFadeAway + + + false + + + Sho&w fancy logout fadeaway + + + Check this option if you want to see a fancy fadeaway when displaying a logout confirmation dialog box. + @@ -235,16 +249,34 @@ configChanged() - confirmLogoutCheck - toggled(bool) - showFancyFadeAway - setEnabled(bool) + confirmLogoutCheck + toggled(bool) + showFadeAway + setEnabled(bool) - showFancyFadeAway - toggled(bool) - SMServerConfigDlg - configChanged() + confirmLogoutCheck + toggled(bool) + showFancyFadeAway + setEnabled(bool) + + + showFadeAway + toggled(bool) + showFancyFadeAway + setEnabled(bool) + + + showFadeAway + toggled(bool) + SMServerConfigDlg + configChanged() + + + showFancyFadeAway + toggled(bool) + SMServerConfigDlg + configChanged() showLogoutStatusDialog -- cgit v1.2.1