Корректное подключение макроса QT_VERSION
This commit is contained in:
parent
de1c396a5e
commit
e97025a81e
@ -3,10 +3,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined( QT_VERSION )
|
#if !defined( QT_VERSION )
|
||||||
|
|
||||||
#if QT_VERSION <= 0x050700
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (QT_VERSION <= 0x050700)
|
||||||
template< typename ... Args >
|
template< typename ... Args >
|
||||||
struct QOverload
|
struct QOverload
|
||||||
{
|
{
|
||||||
@ -29,9 +30,6 @@ Q_DECL_CONSTEXPR typename std::add_const< T >::type& qAsConst( T& t ) noexcept
|
|||||||
template < typename T >
|
template < typename T >
|
||||||
void qAsConst( const T&& ) = delete;
|
void qAsConst( const T&& ) = delete;
|
||||||
|
|
||||||
|
|
||||||
#endif // if QT_VERSION <= 0x050700
|
#endif // if QT_VERSION <= 0x050700
|
||||||
|
|
||||||
#endif // if defined( QT_VERSION )
|
|
||||||
|
|
||||||
#endif // MYX_BACKPORTS_QT_COMMON_HPP_
|
#endif // MYX_BACKPORTS_QT_COMMON_HPP_
|
||||||
|
Loading…
Reference in New Issue
Block a user