Add Q_UNIMPLEMENTED() macro

(cherry picked from commit adce00979c30cc22d26ba43c15e0c7a3733b57ab)
This commit is contained in:
Kent Hansen 2010-09-03 10:49:46 +02:00 committed by Olivier Goffart
parent af026f6fa4
commit 1a2345ec19

View File

@ -1843,6 +1843,10 @@ inline QT3_SUPPORT void qSuppressObsoleteWarnings(bool = true) {}
inline QT3_SUPPORT void qObsolete(const char *, const char * = 0, const char * = 0) {}
#endif
#if !defined(Q_UNIMPLEMENTED)
# define Q_UNIMPLEMENTED() qWarning("%s:%d: %s: Unimplemented code.", __FILE__, __LINE__, Q_FUNC_INFO)
#endif
#if defined(QT_NO_THREAD)
template <typename T>