Make the default font sans serif for HelpViewer's QWebView-based implementation
since it is what QTextBrowser uses by default, we probably want to blend in.
Change-Id: I07257d61cac9bffa28f90f31e352101b2e04cb0e
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
#include <QtSql/QSqlDatabase>
+#if !defined(QT_NO_WEBKIT)
+#include <QtGui/QFont>
+#include <QtWebKit/QWebSettings>
+#endif
+
#include "../shared/collectionconfiguration.h"
#include "helpenginewrapper.h"
#include "mainwindow.h"
a.addLibraryPath(a.applicationDirPath() + QLatin1String("/plugins"));
setupTranslations();
+#if !defined(QT_NO_WEBKIT)
+ QFont f;
+ f.setStyleHint(QFont::SansSerif);
+ QWebSettings::globalSettings()->setFontFamily(QWebSettings::StandardFont, f.defaultFamily());
+#endif
+
// Parse arguments.
CmdLineParser cmd(a.arguments());
CmdLineParser::Result res = cmd.parse();