mirror of https://github.com/qt/qthttpserver.git
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> |
||
---|---|---|
.. | ||
data | ||
CMakeLists.txt | ||
tst_qhttpserverresponder.cpp |