diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-06-06 19:34:38 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-06-06 19:36:00 +0200 |
commit | 894b79f5ffd816962fe38207d40bf05274490498 (patch) | |
tree | 8dd839b36abe49688f5e8b89c8a61921989607f4 /src/webtab | |
parent | Remember to save zoom settings on change (diff) | |
download | rekonq-894b79f5ffd816962fe38207d40bf05274490498.tar.xz |
Use webkit general font to render rekonq pages
BUG: 320318
Diffstat (limited to 'src/webtab')
-rw-r--r-- | src/webtab/protocolhandler.cpp | 3 | ||||
-rw-r--r-- | src/webtab/webpage.cpp | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/webtab/protocolhandler.cpp b/src/webtab/protocolhandler.cpp index 4cf61be5..886bec1e 100644 --- a/src/webtab/protocolhandler.cpp +++ b/src/webtab/protocolhandler.cpp @@ -398,7 +398,8 @@ QString ProtocolHandler::dirHandling(const KFileItemList &list) html.replace(QL1S("$DEFAULT_PATH"), dataPath); html.replace(QL1S("$PAGE_TITLE"), title); html.replace(QL1S("$MAIN_CONTENT"), msg); - + html.replace(QL1S("$GENERAL_FONT"), QWebSettings::globalSettings()->fontFamily(QWebSettings::StandardFont)); + return html; } diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp index 522d13a3..82c5cf60 100644 --- a/src/webtab/webpage.cpp +++ b/src/webtab/webpage.cpp @@ -721,7 +721,8 @@ QString WebPage::errorPage(QNetworkReply *reply) html.replace(QL1S("$DEFAULT_PATH"), dataPath); html.replace(QL1S("$PAGE_TITLE"), title); html.replace(QL1S("$MAIN_CONTENT"), msg); - + html.replace(QL1S("$GENERAL_FONT"), QWebSettings::globalSettings()->fontFamily(QWebSettings::StandardFont)); + return html; } @@ -767,7 +768,8 @@ QString WebPage::errorPage(QNetworkReply *reply) html.replace(QL1S("$DEFAULT_PATH"), dataPath); html.replace(QL1S("$PAGE_TITLE"), title); html.replace(QL1S("$MAIN_CONTENT"), msg); - + html.replace(QL1S("$GENERAL_FONT"), QWebSettings::globalSettings()->fontFamily(QWebSettings::StandardFont)); + return html; } |