|author||David Faure <firstname.lastname@example.org>||2012-01-20 11:22:09 +0100|
|committer||Qt by Nokia <email@example.com>||2012-01-20 14:17:41 +0100|
Remove QBool and use bool instead.
QBool was introduced with Qt-4.0, to detect Qt3-like code like if (c.contains(d) == 2) and break compilation on such constructs. This isn't necessary anymore, given that such code couldn't possibly compile in Qt4 times. And QBool was confusing developers, and creating compile errors (e.g. QVariant doesn't have support for it), so better remove it for Qt 5. Change-Id: I6642f43f5e12b872f98abb56600186179f072b09 Reviewed-by: Lars Knoll <firstname.lastname@example.org>
Diffstat (limited to 'dist')
1 files changed, 6 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index eb9c1a8fdc..d74dd627d4 100644
@@ -39,6 +39,12 @@ information about a particular change.
- Qt::escape() is deprecated (but can be enabled via
QT_DISABLE_DEPRECATED_BEFORE), use QString::toHtmlEscaped() instead.
+- QBool is gone. QString::contains, QByteArray::contains, and QList::contains
+ used to return an internal QBool class so that the Qt3 code
+ "if (a.contains() == 2)" wouldn't compile anymore. Such code cannot exist
+ in Qt4, so these methods return a bool now. If your code used the undocumented
+ QBool, simply replace it with bool.
- QMetaType::construct() has been renamed to QMetaType::create().