Function qAsConst() was introduced in Qt 5.7.
--HG-- branch : develop
This commit is contained in:
parent
c5c65034bf
commit
edccf05a62
|
@ -35,7 +35,7 @@
|
|||
#define PRINTDPI 96.0
|
||||
extern const qreal PrintDPI;
|
||||
|
||||
#if QT_VERSION <= QT_VERSION_CHECK(5, 7, 0)
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
|
||||
// this adds const to non-const objects (like std::as_const)
|
||||
template <typename T>
|
||||
Q_DECL_CONSTEXPR typename std::add_const<T>::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user