Add Q_OBJECT_NO_OVERRIDE_WARNING for MSVC

Change-Id: I5fc19c03eae3b7ea1aab83c5e3c978d57970bd25
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Joni Poikelin 2023-11-30 13:21:34 +02:00
parent 0201d5e232
commit cc40039b4f

View File

@ -103,6 +103,8 @@ QT_BEGIN_NAMESPACE
# endif
#elif defined(Q_CC_GNU) && Q_CC_GNU >= 501
# define Q_OBJECT_NO_OVERRIDE_WARNING QT_WARNING_DISABLE_GCC("-Wsuggest-override")
#elif defined(Q_CC_MSVC)
# define Q_OBJECT_NO_OVERRIDE_WARNING QT_WARNING_DISABLE_MSVC(26433)
#else
# define Q_OBJECT_NO_OVERRIDE_WARNING
#endif