mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
[Qt] Remove unused extension. Make QML Analyzer loading a system job.
Also more clean up of the Qt Hello World template. Change-Id: I8dd862140e9e641005809f5b523e332b6bf496bd
This commit is contained in:
parent
8f0ca866c4
commit
854f036c61
4 changed files with 12 additions and 33 deletions
|
@ -76,15 +76,6 @@
|
|||
id="Qt"
|
||||
class="org.eclipse.cdt.internal.qt.core.pdom.PDOMQtLinkageFactory"/>
|
||||
</extension>
|
||||
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
|
||||
<provider
|
||||
class="org.eclipse.cdt.internal.qt.core.QtIncludePathsProvider"
|
||||
id="org.eclipse.cdt.qt.core.QtPathsProvider"
|
||||
name="%QtInstallHeaders.pathProvider.name"
|
||||
prefer-non-shared="false">
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
</extension>
|
||||
<extension point="org.eclipse.core.expressions.definitions">
|
||||
<definition id="org.eclipse.cdt.qt.core.isQtProject">
|
||||
<with variable="projectNatures">
|
||||
|
@ -123,19 +114,6 @@
|
|||
<super type="org.eclipse.cdt.codan.core.codanProblem"/>
|
||||
<persistent value="true"/>
|
||||
</extension>
|
||||
<extension
|
||||
id="qtBuilder"
|
||||
name="Qt Builder"
|
||||
point="org.eclipse.core.resources.builders">
|
||||
<builder
|
||||
callOnEmptyDelta="true"
|
||||
hasNature="true"
|
||||
isConfigurable="true"
|
||||
supportsConfigurations="true">
|
||||
<run
|
||||
class="org.eclipse.cdt.internal.qt.core.build.QtBuilder">
|
||||
</run></builder>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.launchbar.core.launchBarContributions">
|
||||
<descriptorType
|
||||
|
|
|
@ -62,7 +62,7 @@ public class Activator extends Plugin {
|
|||
|
||||
QMLAnalyzer qmlAnalyzer = new QMLAnalyzer();
|
||||
context.registerService(IQMLAnalyzer.class, qmlAnalyzer, null);
|
||||
new Job("Load QML Analyzer") { //$NON-NLS-1$
|
||||
Job startupJob = new Job("Load QML Analyzer") { //$NON-NLS-1$
|
||||
@Override
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
try {
|
||||
|
@ -72,7 +72,9 @@ public class Activator extends Plugin {
|
|||
}
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
}.schedule();
|
||||
};
|
||||
startupJob.setSystem(true);
|
||||
startupJob.schedule();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
#include <QGuiApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
int main(int argc, char *argv[]) {
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
engine.load(QUrl(QStringLiteral("qrc:/src/${projectName}.qml")));
|
||||
QQmlApplicationEngine engine;
|
||||
engine.load(QUrl(QStringLiteral("qrc:/src/${projectName}.qml")));
|
||||
|
||||
return app.exec();
|
||||
return app.exec();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>src/${projectName}.qml</file>
|
||||
</qresource>
|
||||
<qresource prefix="/">
|
||||
<file>src/${projectName}.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Add table
Reference in a new issue