forked from qt-creator/qt-creator
Help: Provide native WebView backend on Mac
Run Qt Creator with environment variable QTC_HELPVIEWER_BACKEND to * 'native' to get the WebView based one on Mac * 'textbrowser' to get the QTextBrowser based one Defaults to use QWebView if QtWebKit is available, or QTextBrowser if not, like before. Change-Id: If0660782b18ff3d89301fa7bcaf4e2e2fb69627d Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -82,7 +82,9 @@ QWidget *GeneralSettingsPage::widget()
|
||||
m_ui->sizeComboBox->setEditable(false);
|
||||
m_ui->styleComboBox->setEditable(false);
|
||||
|
||||
m_font = qvariant_cast<QFont>(HelpManager::customValue(QLatin1String("font"), m_font));
|
||||
QVariant fontSetting = LocalHelpManager::engineFontSettings();
|
||||
if (fontSetting.isValid())
|
||||
m_font = fontSetting.value<QFont>();
|
||||
|
||||
updateFontSize();
|
||||
updateFontStyle();
|
||||
@@ -155,7 +157,7 @@ void GeneralSettingsPage::apply()
|
||||
|
||||
if (newFont != m_font) {
|
||||
m_font = newFont;
|
||||
HelpManager::setCustomValue(QLatin1String("font"), newFont);
|
||||
HelpManager::setCustomValue(Constants::FontKey, newFont);
|
||||
emit fontChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user