#ifndef CXX0XCOMPATIBILITY_HPP__20120723__1427
#define CXX0XCOMPATIBILITY_HPP__20120723__1427
/*
* For compatibility with C++-0x mode in GCC 4.7.x
*/
//-------------------------------------------------------------------------
# ifndef QT_NO_DEBUG
# ifdef QLOCATION
# undef QLOCATION
# define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__)
# ifndef QT_NO_KEYWORDS
# ifdef METHOD
# undef METHOD
# define METHOD(a) qFlagLocation("0" #a QLOCATION)
# endif
# endif
# endif
# ifdef SLOT
# undef SLOT
# define SLOT(a) qFlagLocation("1" #a QLOCATION)
# endif
# ifdef SIGNAL
# undef SIGNAL
# define SIGNAL(a) qFlagLocation("2" #a QLOCATION)
# endif
# else
# ifndef QT_NO_KEYWORDS
# ifdef METHOD
# undef METHOD
# define METHOD(a) "0" #a
# endif
# endif
# ifdef SLOT
# undef SLOT
# define SLOT(a) "1" #a
# endif
# ifdef SIGNAL
# undef SIGNAL
# define SIGNAL(a) "2" #a
# endif
# endif
#endif//
Включение этого файла после подключенных заголовочных файлов Qt позволяет "малой кровью", без пересборки самой библиотеки Qt, решить проблему этой ошибки.
Комментариев нет:
Отправить комментарий