Document that date/time formats without separators are unsupported.
authorMitch Curtis <mitch.curtis@nokia.com>
Fri, 7 Sep 2012 13:45:39 +0000 (15:45 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Sep 2012 00:44:22 +0000 (02:44 +0200)
The code is not handling formats like "HHmm ss" correctly, so it needs
to be documented until such support is provided.

Task-number: QTBUG-26067 QTBUG-26596
Change-Id: Ia456d8020e3e0aa9422e6e6987ac984f308facf9
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp

index 2a693da..3c37de9 100644 (file)
@@ -809,7 +809,7 @@ QString QDate::toString(Qt::DateFormat f) const
     All other input characters will be ignored. Any sequence of characters that
     are enclosed in single quotes will be treated as text and not be used as an
     expression. Two consecutive single quotes ("''") are replaced by a singlequote
-    in the output.
+    in the output. Formats without separators (e.g. "ddMM") are currently not supported.
 
     Example format strings (assuming that the QDate is the 20 July
     1969):
@@ -1572,7 +1572,7 @@ QString QTime::toString(Qt::DateFormat format) const
     All other input characters will be ignored. Any sequence of characters that
     are enclosed in single quotes will be treated as text and not be used as an
     expression. Two consecutive single quotes ("''") are replaced by a singlequote
-    in the output.
+    in the output. Formats without separators (e.g. "HHmm") are currently not supported.
 
     Example format strings (assuming that the QTime is 14:13:09.042)
 
@@ -2639,7 +2639,7 @@ QString QDateTime::toString(Qt::DateFormat f) const
     All other input characters will be ignored. Any sequence of characters that
     are enclosed in single quotes will be treated as text and not be used as an
     expression. Two consecutive single quotes ("''") are replaced by a singlequote
-    in the output.
+    in the output. Formats without separators (e.g. "HHmm") are currently not supported.
 
     Example format strings (assumed that the QDateTime is 21 May 2001
     14:13:09):