qt5base-lts/tests/auto
Volker Hilsheimer ccf1a1a953 Replace QTextDocumentResourceProvider with a std::function
376e3bd8ec added the new class for Qt 6.1,
but during header review we concluded that using a class introduces
complexity wrt instance ownership and API design that can be avoided by
using a std::function instead.

The functionality is tied to QTextDocument, so the type definition and
the default provider API is added there.

Since std::function is not trivially copyable, the atomicity of the
previous implementation is not maintained, and concurrent modifications
of and access to the global default provider from multiple threads is
not allowed. The relevant use case can be supported by implementing a
resource provider that is thread safe.

Task-number: QTBUG-90211
Fixes: QTBUG-92208
Pick-to: 6.1
Change-Id: I39215c5e51c7bd27f1dd29e1d9d908aecf754fb7
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2021-03-30 08:11:27 +02:00
..
cmake Rework the failure macros in the Qt CTest kit 2021-03-17 13:34:39 +01:00
concurrent Fix a few compiler warnings in tests 2021-02-02 12:06:05 +01:00
corelib Repair tst_qwineventnotifier 2021-03-29 15:54:05 +02:00
dbus dbus: Fix missing QVersionNumber include 2021-01-25 12:09:17 +01:00
gui Replace QTextDocumentResourceProvider with a std::function 2021-03-30 08:11:27 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network QHostAddress: prepare moving NetworkLayerProtocol from QAbstractSocket 2021-03-18 19:54:01 -08:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Make it even more obvious on what to do when tst_toolsupport fails 2021-03-22 09:56:51 +01:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql QSqlQuery: make it a move only type 2021-03-21 10:16:56 +01:00
testlib Adapt Catch2 to Apple Silicon 2021-03-25 12:06:31 +01:00
tools Silence a bunch of gcc warnings for the moc test 2021-03-29 15:59:48 +02:00
widgets Replace QTextDocumentResourceProvider with a std::function 2021-03-30 08:11:27 +02:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00