path: root/dist
diff options
authorDavid Faure <>2012-01-20 11:22:09 +0100
committerQt by Nokia <>2012-01-20 14:17:41 +0100
commit47d5d349d8f5bc590ca7cdf30bf13b69bddf3225 (patch)
treebe75994c1d77e479d562d571ef9cfaf48f9583d9 /dist
parent841b0c4fac8e8a96ebb2120b704cf7bbf1260543 (diff)
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 <>
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
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -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().
- QTestLib: