summaryrefslogtreecommitdiffstats
path: root/kcontrol/smserver
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-03-02 20:46:09 -0600
committerDarrell Anderson <[email protected]>2013-03-02 20:46:09 -0600
commitdaff95cb2a46fc5f99ce97fa828de22616aec9e3 (patch)
tree8233a1bb68ca42f69b8f9dc586945975baceb6e4 /kcontrol/smserver
parent9ee857cfe81d576da157a5561c72d8eede524919 (diff)
downloadtdebase-daff95cb2a46fc5f99ce97fa828de22616aec9e3.tar.gz
tdebase-daff95cb2a46fc5f99ce97fa828de22616aec9e3.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.
Diffstat (limited to 'kcontrol/smserver')
-rw-r--r--kcontrol/smserver/kcmsmserver.cpp2
-rw-r--r--kcontrol/smserver/smserverconfigdlg.ui26
2 files changed, 28 insertions, 0 deletions
diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp
index 3aca33508..b81e41c77 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 2381a20c2..d222fefa8 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 &amp;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">
@@ -221,6 +235,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>