[clazy] [Bug 392795] New: Support QOverload<>::of in fix-old-style-connect
Alexander
bugzilla_noreply at kde.org
Fri Apr 6 12:30:34 BST 2018
https://bugs.kde.org/show_bug.cgi?id=392795
Bug ID: 392795
Summary: Support QOverload<>::of in fix-old-style-connect
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: ashaduri at gmail.com
CC: smartins at kde.org
Target Milestone: ---
Hi,
Please support QOverload<> syntax in fix-old-style-connect.
Right now half of my connect() calls fail to convert to the new syntax because
clazy complains somethink like:
FixIt failed, requires manual intervention: Too many overloads (2) for method
currentIndexChanged for record QComboBox [-Wclazy-old-style-connect]
This is very common for QComboBox, QSpinBox, etc...
Qt docs show how to do it:
http://doc.qt.io/qt-5/qtglobal.html#qOverload
Ideally, this should be configurable, to choose between "qOverload<>" (C++14),
"QOverload<>::of" (C++11), or "static_cast<void (QComboBox::*)(int)>" (Qt 5.6
and older).
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list