1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "filterleaf.h" const QString FilterLeaf::request() const { return m_request; } std::optional<bool> FilterLeaf::option(QWebEngineUrlRequestInfo::ResourceType opt) const { if(resourceTypeOptions.contains(opt)) return resourceTypeOptions.value(opt); else return std::nullopt; }