tst_QThread: Unbreak UBSan build

tst_QThread peeks into QThreadPrivate, which means that a UBSan build
needs access to QThreadPrivate's type_info, for which we need to
export the class.

Amends 268ff00ef50a74ffa58e53c2c8897b7a7319be41.

Change-Id: Ic26df3d323d50b51d369d5f2bd78db7e047b5341
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 22b3eca55dfa409fd5184b033be84f5a600fe283)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2023-07-13 11:38:03 +02:00 committed by Qt Cherry-pick Bot
parent 220f86d1ee
commit 979d367ef7

View File

@ -170,7 +170,7 @@ public:
~QDaemonThread();
};
class QThreadPrivate : public QObjectPrivate
class Q_AUTOTEST_EXPORT QThreadPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QThread)