Корректное подключение макроса QT_VERSION

This commit is contained in:
Andrei Astafev 2020-07-09 15:17:23 +03:00
parent de1c396a5e
commit e97025a81e

View File

@ -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_