Commit f4192147 authored by Laurent Montel's avatar Laurent Montel 😁

We depend against qt5.7

parent 77ef5df3
project(kdebugsettings) project(kdebugsettings)
cmake_minimum_required (VERSION 3.0 FATAL_ERROR) cmake_minimum_required (VERSION 3.0 FATAL_ERROR)
set(QT_MIN_VERSION "5.6.0") set(QT_MIN_VERSION "5.7.0")
set(KF5_VERSION "5.28.0") set(KF5_VERSION "5.28.0")
find_package(ECM ${KF5_VERSION} REQUIRED CONFIG) find_package(ECM ${KF5_VERSION} REQUIRED CONFIG)
......
...@@ -28,19 +28,6 @@ ...@@ -28,19 +28,6 @@
#include "loggingcategory.h" #include "loggingcategory.h"
#include "renamecategory.h" #include "renamecategory.h"
#if QT_VERSION < QT_VERSION_CHECK(5,7,0)
namespace QtPrivate {
template <typename T> struct QAddConst { typedef const T Type; };
}
// this adds const to non-const objects (like std::as_const)
template <typename T>
Q_DECL_CONSTEXPR typename QtPrivate::QAddConst<T>::Type &qAsConst(T &t) Q_DECL_NOTHROW { return t; }
// prevent rvalue arguments:
template <typename T>
void qAsConst(const T &&) Q_DECL_EQ_DELETE;
#endif
namespace KDebugSettingsUtil namespace KDebugSettingsUtil
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment