diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 20:46:09 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-03-04 19:57:10 +0100 |
commit | 04295ebd9a363885ca1abf458c1750389be3c579 (patch) | |
tree | a042297e0ae98fbde9a7ce6e81492378defd85b2 /kcontrol | |
parent | b92a8db453c914804a592ddaac46a7175ef42d2f (diff) | |
download | tdebase-04295ebd9a363885ca1abf458c1750389be3c579.tar.gz tdebase-04295ebd9a363885ca1abf458c1750389be3c579.zip |
Patch to add GUI controls for the logoff gray fadeaway.
Work is needed to provide sliders to control darkness and fade speeds.
This partially resolves bug report 258.
(cherry picked from commit daff95cb2a46fc5f99ce97fa828de22616aec9e3)
Diffstat (limited to 'kcontrol')
-rw-r--r-- | kcontrol/smserver/kcmsmserver.cpp | 2 | ||||
-rw-r--r-- | kcontrol/smserver/smserverconfigdlg.ui | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp index 5ea993964..984740bb2 100644 --- a/kcontrol/smserver/kcmsmserver.cpp +++ b/kcontrol/smserver/kcmsmserver.cpp @@ -94,6 +94,7 @@ void SMServerConfig::load(bool useDefaults ) c->setGroup("Logout"); dialog->showLogoutStatusDialog->setChecked(c->readBoolEntry("showLogoutStatusDlg", true)); + dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true)); delete c; @@ -123,6 +124,7 @@ void SMServerConfig::save() c->writeEntry("excludeApps", dialog->excludeLineedit->text()); c->setGroup("Logout"); c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked()); + c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked()); c->sync(); delete c; diff --git a/kcontrol/smserver/smserverconfigdlg.ui b/kcontrol/smserver/smserverconfigdlg.ui index 1b6b3c926..58dbd36c6 100644 --- a/kcontrol/smserver/smserverconfigdlg.ui +++ b/kcontrol/smserver/smserverconfigdlg.ui @@ -56,6 +56,20 @@ </widget> <widget class="TQCheckBox"> <property name="name"> + <cstring>showFancyFadeAway</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Show fancy &logout fadeaway</string> + </property> + <property name="whatsThis" stdset="0"> + <string>Check this option if you want to see a fancy fadeaway when displaying a logout confirmation dialog box.</string> + </property> + </widget> + <widget class="TQCheckBox"> + <property name="name"> <cstring>offerShutdownCheck</cstring> </property> <property name="text"> @@ -218,6 +232,18 @@ <slot>configChanged()</slot> </connection> <connection> + <sender>confirmLogoutCheck</sender> + <signal>toggled(bool)</signal> + <receiver>showFancyFadeAway</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>showFancyFadeAway</sender> + <signal>toggled(bool)</signal> + <receiver>SMServerConfigDlg</receiver> + <slot>configChanged()</slot> + </connection> + <connection> <sender>showLogoutStatusDialog</sender> <signal>toggled(bool)</signal> <receiver>SMServerConfigDlg</receiver> |