aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-08-13 11:45:49 +0200
committerKai Koehne <kai.koehne@nokia.com>2010-08-16 11:45:14 +0200
commitf82de22b191f5498115b89c2392506673d75402d (patch)
tree14c92c422187a7448e3434e6b4d25db0654527fe
parent9cf61af1e350f0a7c3bbbec8365fef308f934f9b (diff)
Disable QML support (again)
-rw-r--r--doc/qt-defines.qdocconf3
-rw-r--r--doc/qtcreator.qdoc39
-rw-r--r--qtcreator.pri6
-rw-r--r--share/qtcreator/templates/wizards/qml-extension/wizard.xml2
-rw-r--r--src/plugins/plugins.pro27
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectplugin.cpp2
-rw-r--r--src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp6
7 files changed, 67 insertions, 18 deletions
diff --git a/doc/qt-defines.qdocconf b/doc/qt-defines.qdocconf
index a9e8bbd23f7..c687fed9a58 100644
--- a/doc/qt-defines.qdocconf
+++ b/doc/qt-defines.qdocconf
@@ -10,8 +10,7 @@ defines = Q_QDOC \
Q_BYTE_ORDER \
QT_DEPRECATED \
Q_NO_USING_KEYWORD \
- __cplusplus \
- qtquick
+ __cplusplus
versionsym = QT_VERSION_STR
diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc
index 9f53829ff17..3515d709c6c 100644
--- a/doc/qtcreator.qdoc
+++ b/doc/qtcreator.qdoc
@@ -41,7 +41,9 @@
\o \l{Building and Running an Example Application}
\o \l{Creating a Qt C++ Application}
\o \l{Creating a Mobile Application with Nokia Qt SDK}
+ \if defined(qtuick)
\o \l{Creating a Qt Quick Application}
+ \endif
\endlist
\o \l{Managing Projects}
\list
@@ -424,8 +426,7 @@
\list
\o \gui{\l{Using the Editor}{Edit}} mode for editing project and source files.
\o \gui{\l{Developing Application UI}{Design}} mode for designing and developing
- application user interfaces. This mode is available for UI files (.ui or
- .qml).
+ application user interfaces. This mode is available for UI files.
\o \gui{\l{Debugging}{Debug}} mode for inspecting the state of your program while
debugging.
\o \gui{\l{Managing Projects}{Projects}} mode for configuring project building and
@@ -723,6 +724,7 @@
For more information on \QD, see
\l{http://doc.qt.nokia.com/4.7-snapshot/designer-manual.html}{Qt Designer Manual}.
+ \if defined(qtquick)
\section1 Using Qt Quick Designer
You can edit .qml files in the visual \QMLD editor or in the
@@ -763,6 +765,7 @@
the base state.
\endlist
+ \endif
*/
@@ -1429,7 +1432,7 @@
The instances of the symbol are highlighted in code and you can edit the
symbol. All instances of the local symbol are changed as you type.
- To rename an ID in a Qt Quick project:
+ To rename an ID in a QML file:
\list 1
@@ -1546,8 +1549,14 @@
\title Creating a Project
+ \if defined(qtquick)
You use wizards to create and import several types of projects and files, such
as Qt GUI or console applications and Qt Quick applications.
+ \else
+ You use wizards to create and import several types of projects and files, such
+ as Qt GUI or console applications.
+ \endif
+
You can also use
wizards to add individual files to your projects. For example, you can create
the following types of files:
@@ -2501,8 +2510,10 @@
Qt Creator automatically creates run configurations for your project.
To view and modify the settings, select \gui {Projects > Run}.
+ \if defined(qtquick)
The settings to specify depend on the type of the project: qmake project
or Qt Quick project.
+ \endif
Click \gui Add to add run settings for a project and \gui Remove to remove
the current settings.
@@ -2562,6 +2573,7 @@
\image qmldesigner-run-custom-exe.png "Run settings for custom executables"
+ \if defined(qtquick)
\section1 Specifying Run Settings for Qt Quick Projects
Select run settings in the \gui {Run configuration} field. The settings
@@ -2592,6 +2604,7 @@
\image qmldesigner-run-settings.png "Run settings for Qt Quick projects"
+ \endif
*/
@@ -2655,7 +2668,9 @@
\o \l{Building and Running an Example Application}
\o \l{Creating a Qt C++ Application}
\o \l{Creating a Mobile Application with Nokia Qt SDK}
+ \if defined(qtquick)
\o \l{Creating a Qt Quick Application}
+ \endif
\endlist
*/
@@ -2977,6 +2992,8 @@
/*!
+ \if defined(qtquick)
+
\contentspage index.html
\previouspage creator-mobile-example.html
\page creator-qml-application.html
@@ -3097,6 +3114,7 @@
\image qmldesigner-helloworld-edited.png "Hello World in blue and white"
+ \endif
*/
@@ -5140,8 +5158,8 @@
*/
-
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage adding-plugins.html
@@ -5178,10 +5196,12 @@
\gui {Help > About Plugins... > Qt Quick > QmlDesigner}. You must restart Qt Creator
to enable or disable the visual editor.
+ \endif
*/
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage creator-visual-editor.html
@@ -5218,10 +5238,12 @@
To import a QML project to Qt Creator, select
\gui {File > New File or Project > Qt Quick Project > Import Existing Qt QML Directory}.
+ \endif
*/
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage quick-projects.html
@@ -5259,10 +5281,12 @@
\endlist
+ \endif
*/
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage quick-components.html
@@ -5293,10 +5317,12 @@
their properties and behavior and the available actions. For example, you can use
states to create two screens.
+ \endif
*/
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage quick-screens.html
@@ -5317,11 +5343,13 @@
You can use the code editor to specify transitions. For more information, see
\l{http://doc.qt.nokia.com/4.7-snapshot/qml-transition.html}{QML Transition Element}.
+ \endif
*/
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage quick-animations.html
@@ -5346,10 +5374,12 @@
\endlist
+ \endif
*/
/*!
+ \if defined(qtquick)
\contentspage index.html
\previouspage quick-user-interaction.html
@@ -5366,6 +5396,7 @@
For an example of how to use JavaScript to develop a game, see the
\l {http://doc.qt.nokia.com/4.7-snapshot/qml-advtutorial.html} {QML Advanced Tutorial}.
+ \endif
*/
diff --git a/qtcreator.pri b/qtcreator.pri
index dfae8f9ef17..4d7a0cc4eab 100644
--- a/qtcreator.pri
+++ b/qtcreator.pri
@@ -116,3 +116,9 @@ win32-msvc* {
# Handle S60 support: default on Windows, conditionally built on other platforms.
macx:SUPPORT_QT_S60 = $$(QTCREATOR_WITH_S60)
else:SUPPORT_QT_S60=1
+
+# Define QTCREATOR_WITH_QML if building with Qml support
+SUPPORT_QT_QML = $$(QTCREATOR_WITH_QML)
+!isEmpty(SUPPORT_QT_QML) {
+ DEFINES += QTCREATOR_WITH_QML
+}
diff --git a/share/qtcreator/templates/wizards/qml-extension/wizard.xml b/share/qtcreator/templates/wizards/qml-extension/wizard.xml
index 82ab56676f3..90f69b80be9 100644
--- a/share/qtcreator/templates/wizards/qml-extension/wizard.xml
+++ b/share/qtcreator/templates/wizards/qml-extension/wizard.xml
@@ -36,7 +36,7 @@ leave room for the Qt 4 target page.
-->
<wizard version="1" kind="project"
class="qt4project" firstpage="10"
- id="QmlExtensionPlugin" category="F.Projects">
+ id="QmlExtensionPlugin" category="F.Projects" enabled="false">
<icon>lib.png</icon>
<description>Creates a C++ plugin that makes it possible to offer extensions that can be loaded dynamically into applications using the QDeclarativeEngine class.</description>
<displayname>Custom QML Extension Plugin</displayname>
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index f59ddb97a4d..66145f60b46 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -35,20 +35,25 @@ SUBDIRS = plugin_coreplugin \
plugin_mercurial \
debugger/dumper.pro
-contains(QT_CONFIG, declarative) {
+SUPPORT_QT_QML = $$(QTCREATOR_WITH_QML)
+contains(QT_CONFIG, declarative) {
SUBDIRS += plugin_qmlprojectmanager
- include(private_headers.pri)
- exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
- SUBDIRS += plugin_qmldesigner \
- plugin_qmlinspector
- } else {
- 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()
+ !isEmpty(SUPPORT_QT_QML) {
+ message("Adding support for QmlDesigner, QmlInspector and Qml wizards.")
+
+ include(private_headers.pri)
+ exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
+ SUBDIRS += plugin_qmldesigner \
+ plugin_qmlinspector
+ } else {
+ 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()
+ }
}
}
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
index 144d5d00880..3a321bfc8fa 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
@@ -82,8 +82,10 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
addAutoReleasedObject(manager);
addAutoReleasedObject(new Internal::QmlProjectRunConfigurationFactory);
addAutoReleasedObject(new Internal::QmlRunControlFactory);
+#ifdef QTCREATOR_WITH_QML
addAutoReleasedObject(new QmlProjectApplicationWizard);
addAutoReleasedObject(new QmlProjectImportWizard);
+#endif
QmlProjectFileFormat::registerDeclarativeTypes();
diff --git a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp
index a44cbb90d04..3ffac7f42d4 100644
--- a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp
+++ b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp
@@ -67,6 +67,10 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
{
ui->setupUi(this);
+#ifndef QTCREATOR_WITH_QML
+ ui->demosExamplesFrameQml->hide();
+#endif
+
ui->didYouKnowTextBrowser->viewport()->setAutoFillBackground(false);
connect(ui->tutorialTreeWidget, SIGNAL(activated(QString)), SLOT(slotOpenHelpPage(const QString&)));
@@ -79,8 +83,10 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-writing-program.html?view=split"));
ui->tutorialTreeWidget->addItem(tr("Creating a Mobile Application"),
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-mobile-example.html?view=split"));
+#ifdef QTCREATOR_WITH_QML
ui->tutorialTreeWidget->addItem(tr("Creating a Qt Quick Application"),
QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-qml-application.html?view=split"));
+#endif
srand(QDateTime::currentDateTime().toTime_t());
QStringList tips = tipsOfTheDay();