diff options
Diffstat (limited to 'src/plugins/python/pythonplugin.cpp')
| -rw-r--r-- | src/plugins/python/pythonplugin.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/plugins/python/pythonplugin.cpp b/src/plugins/python/pythonplugin.cpp index 7eefbc5d4bd..1fd12def06e 100644 --- a/src/plugins/python/pythonplugin.cpp +++ b/src/plugins/python/pythonplugin.cpp @@ -18,9 +18,11 @@ #include <projectexplorer/taskhub.h> #include <utils/fsengine/fileiconprovider.h> +#include <utils/futuresynchronizer.h> #include <utils/theme/theme.h> using namespace ProjectExplorer; +using namespace Utils; namespace Python::Internal { @@ -36,6 +38,7 @@ public: PySideBuildConfigurationFactory buildConfigFactory; SimpleTargetRunnerFactory runWorkerFactory{{runConfigFactory.runConfigurationId()}}; PythonSettings settings; + FutureSynchronizer m_futureSynchronizer; }; PythonPlugin::PythonPlugin() @@ -54,6 +57,12 @@ PythonPlugin *PythonPlugin::instance() return m_instance; } +FutureSynchronizer *PythonPlugin::futureSynchronizer() +{ + QTC_ASSERT(m_instance, return nullptr); + return &m_instance->d->m_futureSynchronizer; +} + void PythonPlugin::initialize() { d = new PythonPluginPrivate; @@ -66,9 +75,9 @@ void PythonPlugin::initialize() void PythonPlugin::extensionsInitialized() { // Add MIME overlay icons (these icons displayed at Project dock panel) - QString imageFile = Utils::creatorTheme()->imageFile(Utils::Theme::IconOverlayPro, - ::Constants::FILEOVERLAY_PY); - Utils::FileIconProvider::registerIconOverlayForSuffix(imageFile, "py"); + const QString imageFile = Utils::creatorTheme()->imageFile(Theme::IconOverlayPro, + ::Constants::FILEOVERLAY_PY); + FileIconProvider::registerIconOverlayForSuffix(imageFile, "py"); TaskHub::addCategory(PythonErrorTaskCategory, "Python", true); } |
