[clazy] [Bug 405755] New: Problem when we change to new connect api when sender and receiver has default value
Laurent Montel
bugzilla_noreply at kde.org
Fri Mar 22 14:52:35 GMT 2019
https://bugs.kde.org/show_bug.cgi?id=405755
Bug ID: 405755
Summary: Problem when we change to new connect api when sender
and receiver has default value
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: montel at kde.org
CC: smartins at kde.org
Target Milestone: ---
Bug when converting to new connect api.
As reported by Albert and you can see phabricator review for this bug (in sddm)
https://phabricator.kde.org/D19959
in sddm-kcm clazy converted:
- connect(configUi->autoLogin, SIGNAL(clicked()), SIGNAL(changed()));
+ connect(configUi->autoLogin, &QGroupBox::clicked, this,
&AdvanceConfig::changed);
but signal AdvanceConfig::changed had a default value
Q_SIGNALS:
void changed(bool changed=true);
and QGroupBox::clicked has default value == false
=> when we use new connect api it will emit:
QGroupBox::clicked(value == false) => emit AdvanceConfig::changed(false)
as we send value from clicked to changed
=> Prevously when we clicked on QGroupBox it emitted changed(true) as we didn't
send "sender value" on reveiver.
For me we mustn't change connect api when old api doesn't use argument and
sender and receiver has a default argument.
I don't know if we can detect it but it will
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list