Fix two typos: docu for "deprecated since" and Q_DEPR... -> QT_DEPR...

Shows that there should be an automated build with
QT_DISABLE_DEPRECATED_BEFORE set to 0, too...

Change-Id: If154786ea26bcbfab41efcd7001c222cc258a8af
Reviewed-by: Olivier Goffart <ogoffart@kde.org>
This commit is contained in:
David Faure 2011-10-22 13:00:14 +02:00 committed by Qt by Nokia
parent 53674983e0
commit e19292120b
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@
Example:
#if QT_DEPRECATED_SINCE(5,1)
QT_DEPRECATED void deprecatedFunction(); //function deprecated sine Qt 5.1
QT_DEPRECATED void deprecatedFunction(); //function deprecated since Qt 5.1
#endif
*/
#define QT_DEPRECATED_SINCE(major, minor) (QT_VERSION_CHECK(major, minor, 0) > QT_DISABLE_DEPRECATED_BEFORE)

View File

@ -111,7 +111,7 @@ public:
inline Qt::MouseButtons buttons() const { return mouseState; }
#if QT_DEPRECATED_SINCE(5, 0)
Q_DEPRECATED inline QPointF posF() const { return l; }
QT_DEPRECATED inline QPointF posF() const { return l; }
#endif
protected: