summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-06-06 19:34:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-06-06 19:36:00 +0200
commit894b79f5ffd816962fe38207d40bf05274490498 (patch)
tree8dd839b36abe49688f5e8b89c8a61921989607f4 /src/webtab
parentRemember to save zoom settings on change (diff)
downloadrekonq-894b79f5ffd816962fe38207d40bf05274490498.tar.xz
Use webkit general font to render rekonq pages
BUG: 320318
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/protocolhandler.cpp3
-rw-r--r--src/webtab/webpage.cpp6
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;
}