diff --git a/src/plugins/effectcomposer/effectcomposerwidget.cpp b/src/plugins/effectcomposer/effectcomposerwidget.cpp index 3be9284f4df..9303fe0ac41 100644 --- a/src/plugins/effectcomposer/effectcomposerwidget.cpp +++ b/src/plugins/effectcomposer/effectcomposerwidget.cpp @@ -11,8 +11,6 @@ #include "propertyhandler.h" //#include "qmldesigner/designercore/imagecache/midsizeimagecacheprovider.h" -#include "qmldesignerconstants.h" -#include "qmldesignerplugin.h" #include "theme.h" #include @@ -163,6 +161,12 @@ QPointer EffectComposerWidget::effectComposerNodesMode void EffectComposerWidget::addEffectNode(const QString &nodeQenPath) { m_effectComposerModel->addNode(nodeQenPath); + + if (!nodeQenPath.isEmpty()) { + using namespace QmlDesigner; + QString id = nodeQenPath.split('/').last().chopped(4).prepend('_'); + QmlDesignerPlugin::emitUsageStatistics(Constants::EVENT_EFFECTCOMPOSER_NODE + id); + } } void EffectComposerWidget::focusSection(int section) diff --git a/src/plugins/qmldesigner/qmldesignerconstants.h b/src/plugins/qmldesigner/qmldesignerconstants.h index b8a176341e3..81108dee410 100644 --- a/src/plugins/qmldesigner/qmldesignerconstants.h +++ b/src/plugins/qmldesigner/qmldesignerconstants.h @@ -126,7 +126,8 @@ const char EVENT_TEXTEDITOR_TIME[] = "textEditor"; const char EVENT_TEXTUREEDITOR_TIME[] = "textureEditor"; const char EVENT_PROPERTYEDITOR_TIME[] = "propertyEditor"; const char EVENT_ASSETSLIBRARY_TIME[] = "assetsLibrary"; -const char EVENT_EFFECTCOMPOSER_TIME[] = "effectComposer"; +const char EVENT_EFFECTCOMPOSER_NODE[] = "effectComposerNode"; +const char EVENT_EFFECTCOMPOSER_TIME[] = "effectComposerTime"; const char EVENT_ITEMLIBRARY_TIME[] = "itemLibrary"; const char EVENT_TRANSLATIONVIEW_TIME[] = "translationView"; const char EVENT_NAVIGATORVIEW_TIME[] = "navigatorView";