From 7f39be4fef6e87b7bdeb06da660465e92705ef25 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sun, 21 Aug 2022 11:37:58 +0800 Subject: [PATCH 1/2] style: add user-select: none to dictionary name in article. --- article-style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/article-style.css b/article-style.css index aed0452e..34c3add7 100644 --- a/article-style.css +++ b/article-style.css @@ -42,6 +42,7 @@ pre padding: 0.3em; padding-left: 0.5em; background: #def; + user-select: none; } .gddicttitle From ab13be73fd989ce9deec6a6b838257422f1767c9 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sun, 21 Aug 2022 12:47:40 +0800 Subject: [PATCH 2/2] remove iframe content-type detection --- iframeschemehandler.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/iframeschemehandler.cpp b/iframeschemehandler.cpp index 1476299b..63d6d081 100644 --- a/iframeschemehandler.cpp +++ b/iframeschemehandler.cpp @@ -20,9 +20,6 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) auto finishAction = [ = ]() -> void { QByteArray contentType = "text/html;charset=UTF-8"; - auto contentTypeHeader = reply->header( QNetworkRequest::ContentTypeHeader ); - if( contentTypeHeader.isValid() ) - contentType = contentTypeHeader.toByteArray(); QBuffer * buffer = new QBuffer( requestJob ); // Handle reply data