summaryrefslogtreecommitdiffstats
path: root/kcontrol/smserver
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-03-24 23:22:16 +0900
committerMichele Calgaro <[email protected]>2024-03-24 23:22:16 +0900
commit78d96bd2009b8741564df4778b63d3091610dbd7 (patch)
treedebb2d65e448f261d2b9a8bc84d5060479cce281 /kcontrol/smserver
parenta7dc4c51d5edb098aab42d57d177f9968545926e (diff)
downloadtdebase-78d96bd2009b8741564df4778b63d3091610dbd7.tar.gz
tdebase-78d96bd2009b8741564df4778b63d3091610dbd7.zip
Add GUI option to choose between standard and Ubuntu-style shutdown dialog.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/smserver')
-rw-r--r--kcontrol/smserver/kcmsmserver.cpp2
-rw-r--r--kcontrol/smserver/smserverconfigdlg.ui17
2 files changed, 19 insertions, 0 deletions
diff --git a/kcontrol/smserver/kcmsmserver.cpp b/kcontrol/smserver/kcmsmserver.cpp
index 5bf35dbac..3d165a577 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->showUbuntuStyleDialog->setChecked(c->readBoolEntry("doUbuntuLogout", false));
dialog->showFadeAway->setChecked(c->readBoolEntry("doFadeaway", true));
dialog->showFancyFadeAway->setChecked(c->readBoolEntry("doFancyLogout", true));
dialog->showFancyFadeAway->setEnabled(dialog->confirmLogoutCheck->isChecked() && dialog->showFadeAway->isChecked()),
@@ -126,6 +127,7 @@ void SMServerConfig::save()
c->writeEntry("excludeApps", dialog->excludeLineedit->text());
c->setGroup("Logout");
c->writeEntry( "showLogoutStatusDlg", dialog->showLogoutStatusDialog->isChecked());
+ c->writeEntry( "doUbuntuLogout", dialog->showUbuntuStyleDialog->isChecked());
c->writeEntry( "doFadeaway", dialog->showFadeAway->isChecked());
c->writeEntry( "doFancyLogout", dialog->showFancyFadeAway->isChecked());
c->sync();
diff --git a/kcontrol/smserver/smserverconfigdlg.ui b/kcontrol/smserver/smserverconfigdlg.ui
index 574422bc3..9179722c7 100644
--- a/kcontrol/smserver/smserverconfigdlg.ui
+++ b/kcontrol/smserver/smserverconfigdlg.ui
@@ -104,6 +104,17 @@
<string>Check this option if you want to see a dialog box showing the logout status.</string>
</property>
</widget>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>showUbuntuStyleDialog</cstring>
+ </property>
+ <property name="text">
+ <string>Use &amp;alternative shutdown dialog layout</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Check this option if you want to use an alternative shutdown dialog, where buttons are arranged in rows rathen then columns. This layout is popular in Ubuntu and therefore it is also known as 'Ubuntu style' shutdown dialog.</string>
+ </property>
+ </widget>
</vbox>
</widget>
<widget class="TQButtonGroup">
@@ -267,6 +278,12 @@
<slot>configChanged()</slot>
</connection>
<connection>
+ <sender>showUbuntuStyleDialog</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>SMServerConfigDlg</receiver>
+ <slot>configChanged()</slot>
+ </connection>
+ <connection>
<sender>loginGroup</sender>
<signal>clicked(int)</signal>
<receiver>SMServerConfigDlg</receiver>