QThreadPool: wrap the #include <functional> in QT_CORE_REMOVED_SINCE

Might improve compilation time a little for people using this header.

Amends 0e7e1c3396.

Change-Id: Ic5b1273bb0204c31afd8fffd17cd558e4578c359
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
bb10
Thiago Macieira 2024-05-07 15:31:42 -07:00 committed by Ahmad Samir
parent 55c6d6c86b
commit 4641945e45
1 changed files with 2 additions and 0 deletions

View File

@ -9,7 +9,9 @@
#include <QtCore/qthread.h>
#include <QtCore/qrunnable.h>
#if QT_CORE_REMOVED_SINCE(6, 6)
#include <functional>
#endif
QT_REQUIRE_CONFIG(thread);