diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-11-11 12:02:22 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-11-11 12:02:22 +0100 |
commit | 03f2d7ae72b71f7320eedcdf3c2611de82be4f83 (patch) | |
tree | a13a5f608cd410a1ff9444342e3977af36e4361a /src/usagestatisticplugin.cpp | |
parent | 706220849be60399d4c79ff0fb463ab6072464fa (diff) | |
parent | b11e36cf9d55db45c28d0141a4bb72da04b7f6ce (diff) |
Merge remote-tracking branch 'origin/4.10' into 4.11
Conflicts:
src/datasources/servicesource.cpp
src/datasources/servicesource.h
Change-Id: I4c2b815f3a4963d32d9ee4f053b727ce6df710c6
Diffstat (limited to 'src/usagestatisticplugin.cpp')
-rw-r--r-- | src/usagestatisticplugin.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usagestatisticplugin.cpp b/src/usagestatisticplugin.cpp index df09d74..5f04486 100644 --- a/src/usagestatisticplugin.cpp +++ b/src/usagestatisticplugin.cpp @@ -53,6 +53,7 @@ #include "datasources/examplesdatasource.h" #include "datasources/kitsource.h" #include "datasources/qmldesignerusagetimesource.h" +#include "datasources/servicesource.h" #include "services/datasubmitter.h" @@ -110,6 +111,13 @@ static void addQtCreatorDataSources(KUserFeedback::Provider &provider) provider.addDataSource(new QmlDesignerUsageTimeSource); } +static void addServiceDataSource(const std::shared_ptr<KUserFeedback::Provider> &provider) +{ + if (provider) { + provider->addDataSource(new ServiceSource(provider)); + } +} + bool UsageStatisticPlugin::delayedInitialize() { // We should create the provider only after everything else @@ -118,6 +126,7 @@ bool UsageStatisticPlugin::delayedInitialize() addDefaultDataSources(*m_provider); addQtCreatorDataSources(*m_provider); + addServiceDataSource(m_provider); createUsageStatisticPage(); |