https://bugs.kde.org/show_bug.cgi?id=405212

            Bug ID: 405212
           Summary: Compilation error because of QOverload usage
           Product: krusader
           Version: 2.7.1
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
There are few usages of QOverload in current code base.
QOverload was introduced in QT 5.7. Krusader compilation check QT version >
5.5. So if I have QT vesion < 5.7 compilation fails:
/krslots.h:48:23: error: ‘QOverload’ was not declared in this scope

STEPS TO REPRODUCE
1. Have QT version 5.6.1
2. Run cmake
3. Run make

OBSERVED RESULT
Compilation crashes with: /krslots.h:48:23: error: ‘QOverload’ was not declared
in this scope

EXPECTED RESULT
Successful compilation 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 16
(available in About System)
Qt Version: 5.6.1

ADDITIONAL INFORMATION
I can fix it, but there are more possibilities:
1. Replace QOverload with static_cast
2. Raise minimal QT version to 5.7
3. Selective compilation #if QT_VERSION <= QT_VERSION_CHECK(5, 7, 0) 
More ideal?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to