forked from qt-creator/qt-creator
EffectComposer: Add tracking to added effect nodes
Fixes: QDS-11783 Change-Id: Ief2e6647c00fa1402be11d7b2dd3f4fa25155665 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
#include "propertyhandler.h"
|
||||
|
||||
//#include "qmldesigner/designercore/imagecache/midsizeimagecacheprovider.h"
|
||||
#include "qmldesignerconstants.h"
|
||||
#include "qmldesignerplugin.h"
|
||||
#include "theme.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -163,6 +161,12 @@ QPointer<EffectComposerNodesModel> 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)
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user