mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-12 10:54:07 +00:00
Merge branch 'staged' into dev
This commit is contained in:
commit
c8dda72e1d
|
@ -42,6 +42,7 @@ pre
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
background: #def;
|
background: #def;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gddicttitle
|
.gddicttitle
|
||||||
|
|
|
@ -20,9 +20,6 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
|
||||||
auto finishAction = [ = ]() -> void
|
auto finishAction = [ = ]() -> void
|
||||||
{
|
{
|
||||||
QByteArray contentType = "text/html;charset=UTF-8";
|
QByteArray contentType = "text/html;charset=UTF-8";
|
||||||
auto contentTypeHeader = reply->header( QNetworkRequest::ContentTypeHeader );
|
|
||||||
if( contentTypeHeader.isValid() )
|
|
||||||
contentType = contentTypeHeader.toByteArray();
|
|
||||||
|
|
||||||
QBuffer * buffer = new QBuffer( requestJob );
|
QBuffer * buffer = new QBuffer( requestJob );
|
||||||
// Handle reply data
|
// Handle reply data
|
||||||
|
|
Loading…
Reference in a new issue