Commit 1c18090b authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Fixing the generation of examples.

parent 0762e4f8
...@@ -16,7 +16,7 @@ bool processXmlFile(const QString &xmlFile) ...@@ -16,7 +16,7 @@ bool processXmlFile(const QString &xmlFile)
const QLatin1String attrib_screenOrientation("screenorientation"); const QLatin1String attrib_screenOrientation("screenorientation");
const QLatin1String value_screenOrientationLockLandscape("LockLandscape"); const QLatin1String value_screenOrientationLockLandscape("LockLandscape");
const QLatin1String value_screenOrientationLockPortrait("LockPortrait"); const QLatin1String value_screenOrientationLockPortrait("LockPortrait");
const QLatin1String attrib_networkAccess("networkAccess"); const QLatin1String attrib_networkAccess("networkaccess");
static const QString qtDir = static const QString qtDir =
QLibraryInfo::location(QLibraryInfo::PrefixPath) + QLatin1Char('/'); QLibraryInfo::location(QLibraryInfo::PrefixPath) + QLatin1Char('/');
...@@ -79,7 +79,7 @@ bool processXmlFile(const QString &xmlFile) ...@@ -79,7 +79,7 @@ bool processXmlFile(const QString &xmlFile)
} }
if (reader.attributes().hasAttribute(attrib_networkAccess)) if (reader.attributes().hasAttribute(attrib_networkAccess))
qmlApp.setNetworkEnabled( qmlApp.setNetworkEnabled(
reader.attributes().value(attrib_networkAccess) == QLatin1String("true")); reader.attributes().value(attrib_networkAccess).toString() == QLatin1String("true"));
if (!qmlApp.generateFiles(0)) if (!qmlApp.generateFiles(0))
qDebug() << "Unable to generate the files for" << qmlApp.projectName(); qDebug() << "Unable to generate the files for" << qmlApp.projectName();
} }
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<qmlapps> <qmlapps>
<!--
<app
mainqmlfile="demos/declarative/calculator/calculator.qml"
projectpath="../examples/declarative/demos"
/>
<app
mainqmlfile="demos/declarative/flickr/flickr.qml"
projectpath="../examples/declarative/demos"
networkaccess="true"
screenorientation="LockPortrait"
/>
<app
mainqmlfile="demos/declarative/photoviewer/photoviewer.qml"
projectpath="../examples/declarative/demos"
networkaccess="true"
screenorientation="LockPortrait"
/>
<app
mainqmlfile="demos/declarative/rssnews/rssnews.qml"
projectpath="../examples/declarative/demos"
networkaccess="true"
screenorientation="LockLandscape"
/>
<app
mainqmlfile="demos/declarative/samegame/samegame.qml"
projectpath="../examples/declarative/demos"
screenorientation="LockPortrait"
/>
<app
mainqmlfile="demos/declarative/twitter/twitter.qml"
projectpath="../examples/declarative/demos"
networkaccess="true"
screenorientation="LockPortrait"
/>
<app
mainqmlfile="demos/declarative/webbrowser/webbrowser.qml"
projectpath="../examples/declarative/demos"
networkaccess="true"
screenorientation="LockPortrait"
/>
-->
<app <app
mainqmlfile="examples/declarative/animation/basics/property-animation.qml" mainqmlfile="examples/declarative/animation/basics/property-animation.qml"
projectpath="../examples/declarative/animation/basics" projectpath="../examples/declarative/animation/basics"
...@@ -176,11 +217,13 @@ ...@@ -176,11 +217,13 @@
projectpath="../examples/declarative/modelviews" projectpath="../examples/declarative/modelviews"
screenorientation="LockLandscape" screenorientation="LockLandscape"
/> />
<!--
<app <app
mainqmlfile="examples/declarative/modelviews/parallax/parallax.qml" mainqmlfile="examples/declarative/modelviews/parallax/parallax.qml"
projectpath="../examples/declarative/modelviews" projectpath="../examples/declarative/modelviews"
screenorientation="LockLandscape" screenorientation="LockLandscape"
/> />
-->
<app <app
mainqmlfile="examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml" mainqmlfile="examples/declarative/modelviews/visualitemmodel/visualitemmodel.qml"
projectpath="../examples/declarative/modelviews" projectpath="../examples/declarative/modelviews"
......
Markdown is supported
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