diff options
author | deva <deva> | 2011-03-10 15:08:20 +0000 |
---|---|---|
committer | deva <deva> | 2011-03-10 15:08:20 +0000 |
commit | 2c255b25f88e1fe401a81ba53af5f217b21eeb43 (patch) | |
tree | 3956ed41d93e22e2e1bfc8f8be9c5b7b8578ae37 /client | |
parent | 3b4966ef4dbabbbc0fcb62b7b1a52ad9f327de1d (diff) |
Fix broken state_change SLOT.
Diffstat (limited to 'client')
-rw-r--r-- | client/widgets/checkgroupbox.cc | 4 | ||||
-rw-r--r-- | client/widgets/checkgroupbox.h | 2 |
2 files changed, 3 insertions, 3 deletions
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; |