summaryrefslogtreecommitdiff
path: root/src/plugins/qmljstools/qmljsbundleprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmljstools/qmljsbundleprovider.cpp')
-rw-r--r--src/plugins/qmljstools/qmljsbundleprovider.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/qmljstools/qmljsbundleprovider.cpp b/src/plugins/qmljstools/qmljsbundleprovider.cpp
index 10f81a9db3..8fa30ae870 100644
--- a/src/plugins/qmljstools/qmljsbundleprovider.cpp
+++ b/src/plugins/qmljstools/qmljsbundleprovider.cpp
@@ -176,4 +176,22 @@ void BasicBundleProvider::mergeBundlesForKit(ProjectExplorer::Kit *kit
}
}
+static QList<IBundleProvider *> g_bundleProviders;
+
+IBundleProvider::IBundleProvider(QObject *parent)
+ : QObject(parent)
+{
+ g_bundleProviders.append(this);
+}
+
+IBundleProvider::~IBundleProvider()
+{
+ g_bundleProviders.removeOne(this);
+}
+
+const QList<IBundleProvider *> IBundleProvider::allBundleProviders()
+{
+ return g_bundleProviders;
+}
+
} // end namespace QmlJSTools