qthttpserver/tests/auto/qhttpserverresponder
Matthias Rauter 76e55a052f Set missinghandler callback with a context object and remove rvalue
Use QtPrivate::makeCallableObject() and a context object instead
of std::function() when calling setMissingHandler(). Also added
clearMissingHandler() to set the handler back to the default behavior.

The rvalue was exchanged with a reference in the callback signature
because QMetaObject::invokeMethod is not prepared to handle rvalues.

Pick-to: 6.8
Task-Id: QTBUG-128113
Change-Id: If02c67a0ee200b458d9f8051a23a9307fce6e59a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-08-30 17:57:37 +02:00
..
data Add cmake support for Qt6/dev branch 2020-05-05 19:43:56 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-25 16:10:12 +00:00
tst_qhttpserverresponder.cpp Set missinghandler callback with a context object and remove rvalue 2024-08-30 17:57:37 +02:00