diff --git a/plugins/qmlprofilerextension/qmlprofilerextensionplugin.cpp b/plugins/qmlprofilerextension/qmlprofilerextensionplugin.cpp index 2a1f493075eec2113a59a2502e117285a08dd7a9..e387c7ea05c91b920ebd814e13adf7db588189a2 100644 --- a/plugins/qmlprofilerextension/qmlprofilerextensionplugin.cpp +++ b/plugins/qmlprofilerextension/qmlprofilerextensionplugin.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc +** Copyright (C) 2014 Digia Plc ** All rights reserved. ** For any questions to Digia, please use contact form at http://qt.digia.com <http://qt.digia.com/> ** @@ -71,9 +71,11 @@ bool QmlProfilerExtensionPlugin::initialize(const QStringList &arguments, QStrin = ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>(); if (licenseChecker && licenseChecker->hasValidLicense()) { - addAutoReleasedObject(new PixmapCacheModel); - addAutoReleasedObject(new SceneGraphTimelineModel); - addAutoReleasedObject(new MemoryUsageModel); + if (licenseChecker->enterpriseFeatures()) { + addAutoReleasedObject(new PixmapCacheModel); + addAutoReleasedObject(new SceneGraphTimelineModel); + addAutoReleasedObject(new MemoryUsageModel); + } } else { qWarning() << "Invalid license, disabling QML Profiler Enterprise features"; }