diff options
author | John Layt <jlayt@kde.org> | 2012-01-16 20:20:39 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-31 04:02:25 +0100 |
commit | 35b96c0d3d45ac991528099f4effa708bbb170e8 (patch) | |
tree | 5344cca7ff27d9e5c84c1272fbface74ac0fc1e8 /src/corelib/tools/qdatetime.cpp | |
parent | 21b5d0e2c3dfcafcca098d285498ffc9fbbf0498 (diff) |
QDateTime: Deprecate setYMD()
Change-Id: I077332df554fb750666d51486c97724411276679
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qdatetime.cpp')
-rw-r--r-- | src/corelib/tools/qdatetime.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 530b9e6b3f..6430e2c8bc 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -832,7 +832,9 @@ QString QDate::toString(const QString& format) const #endif //QT_NO_DATESTRING /*! - \obsolete + \fn bool setYMD(int y, int m, int d) + + \deprecated in 5.0, use setDate() instead. Sets the date's year \a y, month \a m, and day \a d. @@ -842,13 +844,6 @@ QString QDate::toString(const QString& format) const Use setDate() instead. */ -bool QDate::setYMD(int y, int m, int d) -{ - if (uint(y) <= 99) - y += 1900; - return setDate(y, m, d); -} - /*! \since 4.2 |