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-b...@kde.org
          Reporter: ashad...@gmail.com
                CC: smart...@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 watching all bug changes.

Reply via email to