From 2c255b25f88e1fe401a81ba53af5f217b21eeb43 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 10 Mar 2011 15:08:20 +0000 Subject: Fix broken state_change SLOT. --- client/widgets/checkgroupbox.cc | 4 ++-- client/widgets/checkgroupbox.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/widgets/checkgroupbox.cc b/client/widgets/checkgroupbox.cc index becb151..8020a45 100644 --- a/client/widgets/checkgroupbox.cc +++ b/client/widgets/checkgroupbox.cc @@ -69,7 +69,7 @@ CheckGroupBox::CheckGroupBox(QDomNode &node, MacroWindow *macrowindow) falsevalue = "false"; } - connect(groupbox, SIGNAL(stateChanged(int)), this, SLOT(state_change(int))); + connect(groupbox, SIGNAL(toggled(bool)), this, SLOT(state_change(bool))); } CheckGroupBox::~CheckGroupBox() @@ -107,7 +107,7 @@ void CheckGroupBox::setValue(QString value, QString source) changedByUser = true; } -void CheckGroupBox::state_change(int) +void CheckGroupBox::state_change(bool) { emit eventOnChange(); if(changedByUser) emit wasChanged(); diff --git a/client/widgets/checkgroupbox.h b/client/widgets/checkgroupbox.h index db6a063..e526092 100644 --- a/client/widgets/checkgroupbox.h +++ b/client/widgets/checkgroupbox.h @@ -48,7 +48,7 @@ public: void setChecked(bool checked); public slots: - void state_change(int); + void state_change(bool); private: QString truevalue; -- cgit v1.2.3