core/intercept: do not intercept non qml files

Avoids forcing Images to lazy load which causes unexpected flashes.
This commit is contained in:
outfoxxed 2024-03-19 21:30:46 -07:00
parent 518977932d
commit 9f38908bdf
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 23 additions and 0 deletions

View file

@ -5,11 +5,17 @@
#include <qnetworkaccessmanager.h>
#include <qnetworkreply.h>
#include <qnetworkrequest.h>
#include <qqmlabstracturlinterceptor.h>
#include <qqmlnetworkaccessmanagerfactory.h>
#include <qurl.h>
Q_DECLARE_LOGGING_CATEGORY(logQsIntercept);
class QsUrlInterceptor: public QQmlAbstractUrlInterceptor {
public:
QUrl intercept(const QUrl& url, QQmlAbstractUrlInterceptor::DataType type) override;
};
class QsInterceptDataReply: public QNetworkReply {
Q_OBJECT;