Bug 392441

Summary: internal error with QOverload <>::of
Product: [Developer tools] clazy Reporter: Richard <richard.oehlinger>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Richard 2018-03-28 08:59:40 UTC
clazy issues an error when used with QOverload template, which is needed for C++11 only code.
It works with the qOverload template function (see bug374951), but this requires C++14.

Example Code: 
connect(m_combo, QOverload<const QString &>::of(&QComboBox::currentIndexChanged), this, &MyObj::mySlot);

Error:
 [-Wclazy-connect-non-signal]: internal error: couldn't find method from pmf connect
Comment 1 Sergio Martins 2018-03-28 21:15:32 UTC
Git commit a7d808a87d4f120505edffab47ae9128154f3beb by Sergio Martins.
Committed on 28/03/2018 at 21:13.
Pushed by smartins into branch 'master'.

connect-non-signal: Make it know about QOverload

M  +5    -1    src/QtUtils.cpp
M  +7    -1    tests/connect-non-signal/main.cpp

https://commits.kde.org/clazy/a7d808a87d4f120505edffab47ae9128154f3beb