Fix update of fade away checkboxes in TCC session manager module

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/467/head
Michele Calgaro 8 months ago
parent f548d391bb
commit a7dc4c51d5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -246,37 +246,19 @@
<sender>confirmLogoutCheck</sender> <sender>confirmLogoutCheck</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver> <receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot> <slot>fadeAwayConfigChanged()</slot>
</connection>
<connection>
<sender>confirmLogoutCheck</sender>
<signal>toggled(bool)</signal>
<receiver>showFadeAway</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>confirmLogoutCheck</sender>
<signal>toggled(bool)</signal>
<receiver>showFancyFadeAway</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>showFadeAway</sender>
<signal>toggled(bool)</signal>
<receiver>showFancyFadeAway</receiver>
<slot>setEnabled(bool)</slot>
</connection> </connection>
<connection> <connection>
<sender>showFadeAway</sender> <sender>showFadeAway</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver> <receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot> <slot>fadeAwayConfigChanged()</slot>
</connection> </connection>
<connection> <connection>
<sender>showFancyFadeAway</sender> <sender>showFancyFadeAway</sender>
<signal>toggled(bool)</signal> <signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver> <receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot> <slot>fadeAwayConfigChanged()</slot>
</connection> </connection>
<connection> <connection>
<sender>showLogoutStatusDialog</sender> <sender>showLogoutStatusDialog</sender>
@ -316,11 +298,13 @@
</connection> </connection>
</connections> </connections>
<includes> <includes>
<include location="global" impldecl="in declaration">tqcheckbox.h</include>
<include location="global" impldecl="in implementation">kdialog.h</include> <include location="global" impldecl="in implementation">kdialog.h</include>
<include location="global" impldecl="in implementation">klineedit.h</include> <include location="global" impldecl="in implementation">klineedit.h</include>
</includes> </includes>
<slots> <slots>
<slot>configChanged()</slot> <slot>configChanged()</slot>
<slot>fadeAwayConfigChanged()</slot>
</slots> </slots>
<layoutdefaults spacing="3" margin="6"/> <layoutdefaults spacing="3" margin="6"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>

@ -18,14 +18,20 @@
#include "smserverconfigimpl.h" #include "smserverconfigimpl.h"
#include "smserverconfigimpl.moc" #include "smserverconfigimpl.moc"
SMServerConfigImpl::SMServerConfigImpl(TQWidget *parent, const char *name ) : SMServerConfigDlg(parent,name) { SMServerConfigImpl::SMServerConfigImpl(TQWidget *parent, const char *name ) : SMServerConfigDlg(parent,name) {}
} SMServerConfigImpl::~SMServerConfigImpl() {}
SMServerConfigImpl::~SMServerConfigImpl(){
}
/** No descriptions */
void SMServerConfigImpl::configChanged(){
void SMServerConfigImpl::configChanged()
{
emit changed(); emit changed();
}
void SMServerConfigImpl::fadeAwayConfigChanged()
{
// Update showFadeAway and showFancyFadeAway status correctly
showFadeAway->setEnabled(confirmLogoutCheck->isChecked());
showFancyFadeAway->setEnabled(confirmLogoutCheck->isChecked() && showFadeAway->isChecked());
configChanged();
} }

@ -33,6 +33,7 @@ public:
public slots: // Public slots public slots: // Public slots
/** No descriptions */ /** No descriptions */
void configChanged(); void configChanged();
void fadeAwayConfigChanged();
signals: // Signals signals: // Signals
/** No descriptions */ /** No descriptions */
void changed(); void changed();

Loading…
Cancel
Save