forked from qt-creator/qt-creator
Hide features for new "Indie" license
This requires http://qt-gerrit.it.local/#change,6220 in licensechecker.git Change-Id: Ia7bc7bcee90d3099805a43106f1f0b695bbf059b Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2013 Digia Plc
|
** Copyright (C) 2014 Digia Plc
|
||||||
** All rights reserved.
|
** All rights reserved.
|
||||||
** For any questions to Digia, please use contact form at http://qt.digia.com <http://qt.digia.com/>
|
** 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>();
|
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
|
||||||
|
|
||||||
if (licenseChecker && licenseChecker->hasValidLicense()) {
|
if (licenseChecker && licenseChecker->hasValidLicense()) {
|
||||||
addAutoReleasedObject(new PixmapCacheModel);
|
if (licenseChecker->enterpriseFeatures()) {
|
||||||
addAutoReleasedObject(new SceneGraphTimelineModel);
|
addAutoReleasedObject(new PixmapCacheModel);
|
||||||
addAutoReleasedObject(new MemoryUsageModel);
|
addAutoReleasedObject(new SceneGraphTimelineModel);
|
||||||
|
addAutoReleasedObject(new MemoryUsageModel);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Invalid license, disabling QML Profiler Enterprise features";
|
qWarning() << "Invalid license, disabling QML Profiler Enterprise features";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user