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