Commit 5a40c071 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov Committed by Eike Ziller
Browse files

HelpPlugin: simplify createHelpViewer



and remove stale define

Change-Id: I8f47c539457577faee13320f88709b60deee90ea
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 5d2d37b7
...@@ -99,8 +99,6 @@ using namespace Help::Internal; ...@@ -99,8 +99,6 @@ using namespace Help::Internal;
static const char kExternalWindowStateKey[] = "Help/ExternalWindowState"; static const char kExternalWindowStateKey[] = "Help/ExternalWindowState";
#define IMAGEPATH ":/help/images/"
using namespace Core; using namespace Core;
using namespace Utils; using namespace Utils;
...@@ -364,17 +362,14 @@ HelpViewer *HelpPlugin::createHelpViewer(qreal zoom) ...@@ -364,17 +362,14 @@ HelpViewer *HelpPlugin::createHelpViewer(qreal zoom)
viewer = new MacWebKitHelpViewer(zoom); viewer = new MacWebKitHelpViewer(zoom);
#else #else
qWarning() << "native help viewer is requested, but was not enabled during compilation"; qWarning() << "native help viewer is requested, but was not enabled during compilation";
viewer = new TextBrowserHelpViewer(zoom);
#endif #endif
} else if (backend.compare(QLatin1String("textbrowser"), Qt::CaseInsensitive) == 0) { } else if (backend.compare(QLatin1String("textbrowser"), Qt::CaseInsensitive) != 0) {
viewer = new TextBrowserHelpViewer(zoom);
} else {
#ifndef QT_NO_WEBKIT #ifndef QT_NO_WEBKIT
viewer = new QtWebKitHelpViewer(zoom); viewer = new QtWebKitHelpViewer(zoom);
#else
viewer = new TextBrowserHelpViewer(zoom);
#endif #endif
} }
if (!viewer)
viewer = new TextBrowserHelpViewer(zoom);
// initialize font // initialize font
QVariant fontSetting = LocalHelpManager::engineFontSettings(); QVariant fontSetting = LocalHelpManager::engineFontSettings();
......
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