path: root/dist
diff options
authorJohn Layt <>2011-07-17 19:30:12 +0100
committerQt by Nokia <>2012-01-31 04:18:37 +0100
commit0e62fc73c905d1f476f3c1493db1bde8096ac609 (patch)
tree46601f254926276d6006e986d4eb01b2dde810b4 /dist
parent08b5eb579f39c38c563f5f5facbd014a930bc1c5 (diff)
QDateTime: Add validity checks
Check the validity of date/time before attempting to perform maths. Change-Id: Ia6a2caf07c6c36f7d7fac713a77bc4eb456c6ed6 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'dist')
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index ad085b3974..2bbe8a7872 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -236,6 +236,11 @@ QtCore
* QDate, QTime, and QDateTime have undergone important behavioural changes:
* QDate::setYMD() is deprecated, use QDate::setDate() instead
+ * Most methods now apply strict validity checks and will return appropriate
+ and consistent values when invalid. For example, QDate::year() will return
+ 0 and QDate::shortMonthName() will return QString().
+ * Adding days to a null QDate or seconds to a null QTime will no longer return
+ a valid QDate/QTime.