Commit ed15f706 authored by Ulf Hermann's avatar Ulf Hermann Committed by Eike Ziller
Browse files

Remove dependency on licensechecker



Change-Id: I806983db89468f39dc781e9fd082f862b335a0d8
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 49eceedb
......@@ -6,7 +6,6 @@ include(../../qtcreatorplugin.pri)
QT += qml quick quickwidgets
DEFINES += QMLPROFILEREXTENSION_LIBRARY
CONFIG(licensechecker): DEFINES += LICENSECHECKER
# QmlProfilerExtension files
......
......@@ -2,4 +2,3 @@ QTC_PLUGIN_NAME = QmlProfilerExtension
QTC_PLUGIN_DEPENDS += \
qmlprofiler
CONFIG(licensechecker): QTC_PLUGIN_DEPENDS += licensechecker
......@@ -27,10 +27,6 @@
#include "qmlprofilerextensionconstants.h"
#include <qmlprofiler/qmlprofilertimelinemodelfactory.h>
#ifdef LICENSECHECKER
# include <licensechecker/licensecheckerplugin.h>
#endif
#include <coreplugin/icore.h>
#include <coreplugin/icontext.h>
#include <coreplugin/actionmanager/actionmanager.h>
......@@ -108,21 +104,8 @@ bool QmlProfilerExtensionPlugin::initialize(const QStringList &arguments, QStrin
Q_UNUSED(arguments)
Q_UNUSED(errorString)
#ifdef LICENSECHECKER
LicenseChecker::LicenseCheckerPlugin *licenseChecker
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
if (licenseChecker && licenseChecker->hasValidLicense()) {
if (licenseChecker->enterpriseFeatures()) {
addAutoReleasedObject(new ModelFactory);
addAutoReleasedObject(new ViewFactory);
}
} else {
qWarning() << "Invalid license, disabling QML Profiler Enterprise features";
}
#else // LICENSECHECKER
addAutoReleasedObject(new ModelFactory);
#endif
addAutoReleasedObject(new ViewFactory);
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment