qt6-bb10/tests/auto/corelib/kernel
Bradley T. Hughes 6f0f9f6928 Remove QMetaObject guards and deprecate QPointer.
QWeakPointer is superior and preferred.

Remove QMetaObject::addGuard(), QMetaObject::changeGuard(),
QMetaObject::removeGuard(), and QObjectPrivate::clearGuards().

Implement QPointer using QWeakPointer<T> instead. This changes the
behavior of QPointer in 2 ways:

- During destruction of a QWidget. Previously, the destructor of QWidget
would reset all QPointers so that they would return zero when destroying
children. Update tst_QPointer to account for this change.

- When constructing a QSharedPointer to take ownership of an object
after a QPointer is already tracking the object. Previously, the shared
pointer construction would not be affected by the QPointer, but now
that QPointer is implemented using QWeakPoiner, constructing the
QSharedPointer will cause an abort(). Fix tst_QSharedPointer by
removing the use of QPointer in the objectCast() test.

These behavior changes are documented in the QPointer class
documentation and in the changes file.

Change-Id: I92d0276219c076ece7bcb60f6e1b9120ce4f5747
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2011-12-10 16:11:48 +01:00
..
qabstractitemmodel Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qcoreapplication Fixed compile of autotests with -qtnamespace. 2011-11-18 00:07:51 +01:00
qeventloop Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qitemmodel Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qmath Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetaobject Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qmetaobjectbuilder qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
qmetaproperty Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetatype Cleanup corelib autotests 2011-11-25 07:56:16 +01:00
qmimedata Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qobject Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qpointer Remove QMetaObject guards and deprecate QPointer. 2011-12-10 16:11:48 +01:00
qsignalmapper Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qsocketnotifier Re-enable the corelib autotests on Mac OS X 2011-11-21 11:31:35 +01:00
qtimer Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qtranslator Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qvariant Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qwineventnotifier Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
kernel.pro Re-enable the corelib autotests on Mac OS X 2011-11-21 11:31:35 +01:00