diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-09-03 10:49:46 +0200 |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-05-04 18:15:53 +0200 |
commit | 1a2345ec198114890571478d38a8fbd3e5236401 (patch) | |
tree | 1791aa4aa7d6edaefdf976d1d496e0b3c4ffba72 /src/corelib/global | |
parent | af026f6fa4dfbad3782f7dc9b56ea9a11f221e2a (diff) |
Add Q_UNIMPLEMENTED() macro
(cherry picked from commit adce00979c30cc22d26ba43c15e0c7a3733b57ab)
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 49f5f989fb..0c861990fa 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -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> |