GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit 7d002263 authored by Benoît Minisini's avatar Benoît Minisini
Browse files

WebView: Make font size settings more accurate.

[GB.QT4.WEBVIEW]
* BUG: WebView: Make font size settings more accurate.
parent c4d87b62
Pipeline #247886173 passed with stage
in 26 minutes and 1 second
......@@ -116,9 +116,9 @@ END_METHOD
static void handle_font_size(QWebSettings::FontSize size, void *_object, void *_param)
{
if (READ_PROPERTY)
GB.ReturnInteger(get_settings(_object)->fontSize(size));
GB.ReturnInteger(get_settings(_object)->fontSize(size) * 76 / 92);
else
get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER));
get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER) * 92 / 76);
}
BEGIN_PROPERTY(WebSettingsFonts_DefaultSize)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment