diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-04-02 16:49:04 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-04-24 08:32:38 +0000 |
commit | 5e0f0268aeff37489ea3563b3e527109b54a5753 (patch) | |
tree | b941aaf5a65a96f043c985246050ce828d0c4314 /src/plugins/help/helpwidget.cpp | |
parent | 94af581dd850881a520d48e2dfe57096cc18262d (diff) | |
download | qt-creator-5e0f0268aeff37489ea3563b3e527109b54a5753.tar.gz |
Help: Do not save settings in help database
Using the help database is not necessary, does not follow our style,
and is less reliable (with all the setupEngine mess).
Change-Id: Icb7f63a6b349458011e1b068bdf0954b78d3281f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/help/helpwidget.cpp')
-rw-r--r-- | src/plugins/help/helpwidget.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp index 69d07e4b21..ced702260f 100644 --- a/src/plugins/help/helpwidget.cpp +++ b/src/plugins/help/helpwidget.cpp @@ -47,7 +47,6 @@ #include <coreplugin/coreconstants.h> #include <coreplugin/icore.h> #include <coreplugin/findplaceholder.h> -#include <coreplugin/helpmanager.h> #include <coreplugin/minisplitter.h> #include <coreplugin/sidebar.h> #include <texteditor/texteditorconstants.h> @@ -474,15 +473,6 @@ void HelpWidget::removeViewerAt(int index) updateCloseButton(); } -void HelpWidget::setViewerFont(const QFont &font) -{ - for (int i = 0; i < m_viewerStack->count(); ++i) { - HelpViewer *viewer = qobject_cast<HelpViewer *>(m_viewerStack->widget(i)); - QTC_ASSERT(viewer, continue); - viewer->setFont(font); - } -} - int HelpWidget::viewerCount() const { return m_viewerStack->count(); @@ -576,8 +566,7 @@ void HelpWidget::helpModeButtonClicked() void HelpWidget::updateCloseButton() { if (m_style == ModeWidget) { - const bool closeOnReturn = Core::HelpManager::customValue(QLatin1String("ReturnOnClose"), - false).toBool(); + const bool closeOnReturn = LocalHelpManager::returnOnClose(); m_closeAction->setEnabled(closeOnReturn || m_viewerStack->count() > 1); } } |