From c635094a6bdfcf2f081eb3c0ed9a1454ae2933fb Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Sat, 9 Jan 2021 15:55:52 +1100 Subject: status bar: show request status when loading pages status text for loading HTTP/S is only a simple 'loading webpage'. The other protocols display more information --- src/protocols/webclient.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/protocols/webclient.cpp') diff --git a/src/protocols/webclient.cpp b/src/protocols/webclient.cpp index e4a2036..58b3365 100644 --- a/src/protocols/webclient.cpp +++ b/src/protocols/webclient.cpp @@ -9,6 +9,8 @@ WebClient::WebClient() : current_reply(nullptr) { manager.setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy); + + emit this->requestStateChange(RequestState::None); } WebClient::~WebClient() @@ -29,6 +31,8 @@ bool WebClient::startRequest(const QUrl &url, RequestOptions options) if(this->current_reply != nullptr) return true; + emit this->requestStateChange(RequestState::StartedWeb); + this->options = options; this->body.clear(); @@ -101,6 +105,8 @@ void WebClient::on_data() void WebClient::on_finished() { + emit this->requestStateChange(RequestState::None); + emit this->hostCertificateLoaded(this->current_reply->sslConfiguration().peerCertificate()); auto * const reply = this->current_reply; -- cgit v1.2.3