qt5.patch 905 B

1234567891011121314151617181920212223242526
  1. diff -Nuar a/CMakeLists.txt b/CMakeLists.txt
  2. --- a/CMakeLists.txt 2017-12-08 04:01:29.000000000 +0300
  3. +++ b/CMakeLists.txt 2017-12-16 13:20:44.507808201 +0300
  4. @@ -4,7 +4,7 @@
  5. project(kcontacts-kf6 VERSION ${PIM_VERSION})
  6. # ECM setup
  7. -set(QT_REQUIRED_VERSION "5.8.0")
  8. +set(QT_REQUIRED_VERSION "5.7.1")
  9. set(KF5_VERSION "5.39.0")
  10. find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
  11. diff -Nuar a/src/vcardparser/vcardparser.cpp b/src/vcardparser/vcardparser.cpp
  12. --- a/src/vcardparser/vcardparser.cpp 2017-12-02 10:20:32.000000000 +0300
  13. +++ b/src/vcardparser/vcardparser.cpp 2017-12-16 13:28:28.299774737 +0300
  14. @@ -183,7 +183,9 @@
  15. start = pos + 1;
  16. }
  17. // fall-through intended
  18. +#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
  19. Q_FALLTHROUGH();
  20. +#endif
  21. case StateAfterParamValue:
  22. if (ch == ';') {
  23. state = StateParamKey;