forked from qt-creator/qt-creator
Disable everything QML-related but QMLJSEditor by default
To get QML functionality back, export QTCREATOR_WITH_QML before running qmake Reviewed-by: Kai Koehne
This commit is contained in:
@@ -35,21 +35,28 @@ SUBDIRS = plugin_coreplugin \
|
|||||||
plugin_mercurial \
|
plugin_mercurial \
|
||||||
debugger/dumper.pro
|
debugger/dumper.pro
|
||||||
|
|
||||||
contains(QT_CONFIG, declarative) {
|
SUPPORT_QT_QML = $$(QTCREATOR_WITH_QML)
|
||||||
|
|
||||||
SUBDIRS += plugin_qmlprojectmanager
|
!isEmpty(SUPPORT_QT_QML) {
|
||||||
|
message("Adding support for Qt/QML projects.")
|
||||||
|
DEFINES += QTCREATOR_WITH_QML
|
||||||
|
|
||||||
include(private_headers.pri)
|
contains(QT_CONFIG, declarative) {
|
||||||
exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
|
|
||||||
SUBDIRS += plugin_qmldesigner \
|
SUBDIRS += plugin_qmlprojectmanager
|
||||||
plugin_qmlinspector
|
|
||||||
} else {
|
include(private_headers.pri)
|
||||||
warning()
|
exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
|
||||||
warning("QmlDesigner and QmlInspector plugins have been disabled")
|
SUBDIRS += plugin_qmldesigner \
|
||||||
warning("The plugins depend on on private headers from QtDeclarative module.")
|
plugin_qmlinspector
|
||||||
warning("To enable them, pass 'QT_PRIVATE_HEADERS=$QTDIR/include' to qmake, where $QTDIR is the source directory of qt.")
|
} else {
|
||||||
warning()
|
warning()
|
||||||
}
|
warning("QmlDesigner and QmlInspector plugins have been disabled")
|
||||||
|
warning("The plugins depend on on private headers from QtDeclarative module.")
|
||||||
|
warning("To enable them, pass 'QT_PRIVATE_HEADERS=$QTDIR/include' to qmake, where $QTDIR is the source directory of qt.")
|
||||||
|
warning()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin_coreplugin.subdir = coreplugin
|
plugin_coreplugin.subdir = coreplugin
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
|
|||||||
ui(new Ui::GettingStartedWelcomePageWidget)
|
ui(new Ui::GettingStartedWelcomePageWidget)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
#ifndef QTCREATOR_WITH_QML
|
||||||
|
ui->demosExamplesFrameQml->hide();
|
||||||
|
#endif
|
||||||
|
|
||||||
ui->didYouKnowTextBrowser->viewport()->setAutoFillBackground(false);
|
ui->didYouKnowTextBrowser->viewport()->setAutoFillBackground(false);
|
||||||
|
|
||||||
connect(ui->tutorialTreeWidget, SIGNAL(activated(QString)), SLOT(slotOpenHelpPage(const QString&)));
|
connect(ui->tutorialTreeWidget, SIGNAL(activated(QString)), SLOT(slotOpenHelpPage(const QString&)));
|
||||||
@@ -78,8 +83,10 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
|
|||||||
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-writing-program.html?view=split"));
|
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-writing-program.html?view=split"));
|
||||||
ui->tutorialTreeWidget->addItem(tr("Creating a Mobile Application"),
|
ui->tutorialTreeWidget->addItem(tr("Creating a Mobile Application"),
|
||||||
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-mobile-example?view=split"));
|
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-mobile-example?view=split"));
|
||||||
|
#ifdef QTCREATOR_WITH_QML
|
||||||
ui->tutorialTreeWidget->addItem(tr("Creating a Qt Quick Application"),
|
ui->tutorialTreeWidget->addItem(tr("Creating a Qt Quick Application"),
|
||||||
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-qml-application.html?view=split"));
|
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-qml-application.html?view=split"));
|
||||||
|
#endif
|
||||||
|
|
||||||
srand(QDateTime::currentDateTime().toTime_t());
|
srand(QDateTime::currentDateTime().toTime_t());
|
||||||
QStringList tips = tipsOfTheDay();
|
QStringList tips = tipsOfTheDay();
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QFrame" name="demosExamplesFrame_2">
|
<widget class="QFrame" name="demosExamplesFrameQml">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeLabel" name="demoTitleLabel_2">
|
<widget class="Utils::WelcomeModeLabel" name="demoTitleLabeldemosExamplesFrameQml">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Explore Qt Quick (Preview) Examples</string>
|
<string>Explore Qt Quick (Preview) Examples</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user