diff --git a/src/corelib/thread/qfuture.h b/src/corelib/thread/qfuture.h index dd2f5111e04..7bcae5a76fa 100644 --- a/src/corelib/thread/qfuture.h +++ b/src/corelib/thread/qfuture.h @@ -254,10 +254,18 @@ public: private: friend class QFutureWatcher; -public: // Warning: the d pointer is not documented and is considered private. - // TODO: make this private + template + friend class QFuture; + + template + friend class QtPrivate::Continuation; + using QFuturePrivate = std::conditional_t, QFutureInterfaceBase, QFutureInterface>; + +#ifdef QFUTURE_TEST +public: +#endif mutable QFuturePrivate d; };