forked from qt-creator/qt-creator
Add "delayedInitialize" feature to plugin manager.
And use it for some of the plugins. It avoids the plugins to do the timing on their own, and actually adds guarantees about the order the delayed initialization is done. Change-Id: I88ad9b46b24b82c91509774170fe0e7e99e88e4b Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -46,6 +46,10 @@ QT_FORWARD_DECLARE_CLASS(QUrl)
|
||||
namespace Core {
|
||||
struct HelpManagerPrivate;
|
||||
|
||||
namespace Internal {
|
||||
class CorePlugin;
|
||||
}
|
||||
|
||||
class CORE_EXPORT HelpManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -91,13 +95,11 @@ signals:
|
||||
void collectionFileChanged();
|
||||
void helpRequested(const QUrl &url);
|
||||
|
||||
private slots:
|
||||
void delayedSetupHelpManager();
|
||||
void setupHelpManager();
|
||||
|
||||
private:
|
||||
void setupHelpManager();
|
||||
void verifyDocumenation();
|
||||
HelpManagerPrivate *d;
|
||||
friend class Internal::CorePlugin; // setupHelpManager
|
||||
};
|
||||
|
||||
} // Core
|
||||
|
||||
Reference in New Issue
Block a user