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 2 months ago
parent f548d391bb
commit a7dc4c51d5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -242,41 +242,23 @@
</vbox>
</widget>
<connections>
<connection>
<sender>confirmLogoutCheck</sender>
<signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</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>
<receiver>SMServerConfigDlg</receiver>
<slot>fadeAwayConfigChanged()</slot>
</connection>
<connection>
<sender>showFadeAway</sender>
<signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot>
<slot>fadeAwayConfigChanged()</slot>
</connection>
<connection>
<sender>showFancyFadeAway</sender>
<signal>toggled(bool)</signal>
<receiver>SMServerConfigDlg</receiver>
<slot>configChanged()</slot>
<slot>fadeAwayConfigChanged()</slot>
</connection>
<connection>
<sender>showLogoutStatusDialog</sender>
@ -316,11 +298,13 @@
</connection>
</connections>
<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">klineedit.h</include>
</includes>
<slots>
<slot>configChanged()</slot>
<slot>fadeAwayConfigChanged()</slot>
</slots>
<layoutdefaults spacing="3" margin="6"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>

@ -18,14 +18,20 @@
#include "smserverconfigimpl.h"
#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() {}
void SMServerConfigImpl::configChanged()
{
emit changed();
}
SMServerConfigImpl::~SMServerConfigImpl(){
}
/** No descriptions */
void SMServerConfigImpl::configChanged(){
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
/** No descriptions */
void configChanged();
void fadeAwayConfigChanged();
signals: // Signals
/** No descriptions */
void changed();

Loading…
Cancel
Save