forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.5'
Change-Id: I37bb3dcc54d49250a5d45d8dd35484dc3b5fa89f
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
import qbs
|
import qbs
|
||||||
|
|
||||||
QtcPlugin {
|
QtcCommercialPlugin {
|
||||||
name: "QmlProfilerExtension"
|
name: "QmlProfilerExtension"
|
||||||
|
|
||||||
Depends { name: "Core" }
|
Depends { name: "Core" }
|
||||||
Depends { name: "LicenseChecker" }
|
|
||||||
Depends { name: "QmlProfiler" }
|
Depends { name: "QmlProfiler" }
|
||||||
Depends { name: "Timeline" }
|
Depends { name: "Timeline" }
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
QTC_PLUGIN_NAME = QmlProfilerExtension
|
QTC_PLUGIN_NAME = QmlProfilerExtension
|
||||||
QTC_PLUGIN_DEPENDS += \
|
QTC_PLUGIN_DEPENDS += \
|
||||||
qmlprofiler \
|
qmlprofiler
|
||||||
licensechecker \
|
|
||||||
|
CONFIG(licensechecker): QT_PLUGIN_DEPENDS += licensechecker
|
||||||
|
@@ -20,7 +20,9 @@
|
|||||||
#include "qmlprofilerextensionconstants.h"
|
#include "qmlprofilerextensionconstants.h"
|
||||||
#include <qmlprofiler/qmlprofilertimelinemodelfactory.h>
|
#include <qmlprofiler/qmlprofilertimelinemodelfactory.h>
|
||||||
|
|
||||||
#include <licensechecker/licensecheckerplugin.h>
|
#ifdef LICENSECHECKER
|
||||||
|
# include <licensechecker/licensecheckerplugin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
@@ -84,6 +86,7 @@ bool QmlProfilerExtensionPlugin::initialize(const QStringList &arguments, QStrin
|
|||||||
Q_UNUSED(arguments)
|
Q_UNUSED(arguments)
|
||||||
Q_UNUSED(errorString)
|
Q_UNUSED(errorString)
|
||||||
|
|
||||||
|
#ifdef LICENSECHECKER
|
||||||
LicenseChecker::LicenseCheckerPlugin *licenseChecker
|
LicenseChecker::LicenseCheckerPlugin *licenseChecker
|
||||||
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
|
= ExtensionSystem::PluginManager::getObject<LicenseChecker::LicenseCheckerPlugin>();
|
||||||
|
|
||||||
@@ -93,6 +96,9 @@ bool QmlProfilerExtensionPlugin::initialize(const QStringList &arguments, QStrin
|
|||||||
} else {
|
} else {
|
||||||
qWarning() << "Invalid license, disabling QML Profiler Enterprise features";
|
qWarning() << "Invalid license, disabling QML Profiler Enterprise features";
|
||||||
}
|
}
|
||||||
|
#else // LICENSECHECKER
|
||||||
|
addAutoReleasedObject(new ModelFactory);
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user