From 6ac6be5db223d6c6b302c34a7e65b129605fb343 Mon Sep 17 00:00:00 2001 From: kh1 Date: Tue, 23 Mar 2010 18:11:43 +0100 Subject: Rewrite of the whole help modul initialization. We now do as much as possible lazy initialisation, e.g only start the full text search indexer if we really access the search widget. Also moved the QFutur progress into the search widget. Changed all ctors to be called without an argument, since we share the help engines from help manager all over the place. Make use of the fact that we only need to call setupData on the gui engine if we access the help mode, otherwise all data is fetched thru the core engine whichs setupData is really fast. --- src/plugins/help/helpmanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/plugins/help/helpmanager.cpp') diff --git a/src/plugins/help/helpmanager.cpp b/src/plugins/help/helpmanager.cpp index 0f4b595b2c..f96526a2c0 100644 --- a/src/plugins/help/helpmanager.cpp +++ b/src/plugins/help/helpmanager.cpp @@ -188,3 +188,12 @@ QHelpEngineCore& HelpManager::helpEngineCore() } return *m_coreEngine; } + +BookmarkManager& HelpManager::bookmarkManager() +{ + if (!m_bookmarkManager) { + m_bookmarkManager = new BookmarkManager; + m_bookmarkManager->setupBookmarkModels(); + } + return *m_bookmarkManager; +} -- cgit v1.2.1