WebView: Make font size settings more accurate.
[GB.QT4.WEBVIEW] * BUG: WebView: Make font size settings more accurate.
This commit is contained in:
parent
c4d87b624c
commit
7d002263c6
1 changed files with 2 additions and 2 deletions
|
@ -116,9 +116,9 @@ END_METHOD
|
||||||
static void handle_font_size(QWebSettings::FontSize size, void *_object, void *_param)
|
static void handle_font_size(QWebSettings::FontSize size, void *_object, void *_param)
|
||||||
{
|
{
|
||||||
if (READ_PROPERTY)
|
if (READ_PROPERTY)
|
||||||
GB.ReturnInteger(get_settings(_object)->fontSize(size));
|
GB.ReturnInteger(get_settings(_object)->fontSize(size) * 76 / 92);
|
||||||
else
|
else
|
||||||
get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER));
|
get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER) * 92 / 76);
|
||||||
}
|
}
|
||||||
|
|
||||||
BEGIN_PROPERTY(WebSettingsFonts_DefaultSize)
|
BEGIN_PROPERTY(WebSettingsFonts_DefaultSize)
|
||||||
|
|
Loading…
Reference in a new issue