Commit 3c3d231a authored by Eike Ziller's avatar Eike Ziller
Browse files

Delay registering Qt documentation and examples.



That avoids calling "qmake -query" at start up for finding out the paths to
documentation and examples.

Change-Id: I97d6b01c9a382726ea0a26f51b821807bd81ea61
Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent 13dd213f
......@@ -59,6 +59,7 @@
#include <QtCore/QSettings>
#include <QtCore/QTextStream>
#include <QtCore/QDir>
#include <QtCore/QTimer>
#include <QtGui/QMainWindow>
#include <algorithm>
......@@ -137,7 +138,7 @@ void QtVersionManager::extensionsInitialized()
findSystemQt();
}
updateSettings();
connect(Core::ICore::instance(), SIGNAL(coreOpened()), this, SLOT(delayedUpdateSettings()));
saveQtVersions();
}
......@@ -512,10 +513,14 @@ void QtVersionManager::updateDumpFor(const Utils::FileName &qmakeCommand)
emit dumpUpdatedFor(qmakeCommand);
}
void QtVersionManager::delayedUpdateSettings()
{
QTimer::singleShot(100, this, SLOT(updateSettings()));
}
void QtVersionManager::updateSettings()
{
updateDocumentation();
BaseQtVersion *version = 0;
QList<BaseQtVersion *> candidates;
......
......@@ -113,6 +113,7 @@ public slots:
void updateDumpFor(const Utils::FileName &qmakeCommand);
private slots:
void delayedUpdateSettings();
void updateSettings();
private:
......
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