diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2011-03-10 12:49:39 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2011-03-10 12:49:39 (GMT) |
commit | 892d699c12775eda35cc9482f59050383dab3851 (patch) | |
tree | 24f0729c61415ce200740975de812f02fe86e257 | |
parent | 01a5cf5d8776b90b9bb86ba7848a5631ec1eccff (diff) | |
download | Qt-892d699c12775eda35cc9482f59050383dab3851.zip Qt-892d699c12775eda35cc9482f59050383dab3851.tar.gz Qt-892d699c12775eda35cc9482f59050383dab3851.tar.bz2 |
Imported demo documentation and their images.
Removed user files
-rw-r--r-- | demos/mobile/qtbubblelevel/qml/BubbleLevel.qml | 2 | ||||
-rw-r--r-- | demos/mobile/qtbubblelevel/qml/Button.qml | 2 | ||||
-rw-r--r-- | demos/mobile/qtbubblelevel/qml/Tube.qml | 2 | ||||
-rw-r--r-- | demos/mobile/qtbubblelevel/qtbubblelevel.desktop | 12 | ||||
-rw-r--r-- | demos/mobile/qtbubblelevel/qtbubblelevel.pro.user | 382 | ||||
-rw-r--r-- | demos/mobile/qtbubblelevel/qtbubblelevel.zip | bin | 1283530 -> 0 bytes | |||
-rw-r--r-- | doc/src/demos/guitartuner.qdoc | 44 | ||||
-rw-r--r-- | doc/src/demos/mobiledemos.qdoc | 32 | ||||
-rw-r--r-- | doc/src/demos/qcamera.qdoc | 68 | ||||
-rw-r--r-- | doc/src/demos/qml-qtbubblelevel.qdoc | 107 | ||||
-rw-r--r-- | doc/src/getting-started/demos.qdoc | 8 | ||||
-rw-r--r-- | doc/src/images/qcameraexample.png | bin | 0 -> 169265 bytes | |||
-rw-r--r-- | doc/src/images/qml-guitartuner-example.png | bin | 0 -> 46135 bytes | |||
-rw-r--r-- | doc/src/images/qml-qtbubblelevel-demo.png | bin | 0 -> 507456 bytes |
14 files changed, 228 insertions, 431 deletions
diff --git a/demos/mobile/qtbubblelevel/qml/BubbleLevel.qml b/demos/mobile/qtbubblelevel/qml/BubbleLevel.qml index ab7fbb3..237b662 100644 --- a/demos/mobile/qtbubblelevel/qml/BubbleLevel.qml +++ b/demos/mobile/qtbubblelevel/qml/BubbleLevel.qml @@ -38,7 +38,7 @@ ** ****************************************************************************/ -import Qt 4.7 +import QtQuick 1.0 Image { id: bubbleLevel diff --git a/demos/mobile/qtbubblelevel/qml/Button.qml b/demos/mobile/qtbubblelevel/qml/Button.qml index be1d8d5..213ee1b 100644 --- a/demos/mobile/qtbubblelevel/qml/Button.qml +++ b/demos/mobile/qtbubblelevel/qml/Button.qml @@ -38,7 +38,7 @@ ** ****************************************************************************/ -import Qt 4.7 +import QtQuick 1.0 Rectangle { id: button diff --git a/demos/mobile/qtbubblelevel/qml/Tube.qml b/demos/mobile/qtbubblelevel/qml/Tube.qml index 2e63ecc..f39c9d6 100644 --- a/demos/mobile/qtbubblelevel/qml/Tube.qml +++ b/demos/mobile/qtbubblelevel/qml/Tube.qml @@ -38,7 +38,7 @@ ** ****************************************************************************/ -import Qt 4.7 +import QtQuick 1.0 //! [0] Item { diff --git a/demos/mobile/qtbubblelevel/qtbubblelevel.desktop b/demos/mobile/qtbubblelevel/qtbubblelevel.desktop deleted file mode 100644 index 6d83002..0000000 --- a/demos/mobile/qtbubblelevel/qtbubblelevel.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Version=1.0 -Type=Application -Name=QtBubbleLevel -Exec=/opt/usr/bin/qtbubblelevel -Icon=qtbubblelevel -StartupWMClass= -X-Window-Icon=qtbubblelevel -X-HildonDesk-ShowInToolbar=true -X-Osso-Type=application/x-executable -Terminal=false diff --git a/demos/mobile/qtbubblelevel/qtbubblelevel.pro.user b/demos/mobile/qtbubblelevel/qtbubblelevel.pro.user deleted file mode 100644 index 18f2250..0000000 --- a/demos/mobile/qtbubblelevel/qtbubblelevel.pro.user +++ /dev/null @@ -1,382 +0,0 @@ -<!DOCTYPE QtCreatorProject> -<qtcreator> - <data> - <variable>ProjectExplorer.Project.ActiveTarget</variable> - <value type="int">1</value> - </data> - <data> - <variable>ProjectExplorer.Project.EditorSettings</variable> - <valuemap type="QVariantMap"> - <value key="EditorConfiguration.Codec" type="QByteArray">Default</value> - </valuemap> - </data> - <data> - <variable>ProjectExplorer.Project.Target.0</variable> - <valuemap type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Desktop</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Desktop</value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.DesktopTarget</value> - <value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value> - <value key="ProjectExplorer.Target.ActiveDeployConfiguration" type="int">0</value> - <value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value> - <valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">qmake</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value> - <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/> - <value key="QtProjectManager.QMakeBuildStep.QMakeForced" type="bool">false</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildStepList.Step.1" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">2</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Build</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Build</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.1" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"> - <value type="QString">clean</value> - </valuelist> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Clean</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Clean</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">2</value> - <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value> - <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Release</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/jpasion/gitorious/jpasions-qt-doc-team-qtquick/demos/mobile/qtbubblelevel-build-desktop</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">4</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value> - </valuemap> - <valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">qmake</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value> - <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/> - <value key="QtProjectManager.QMakeBuildStep.QMakeForced" type="bool">false</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildStepList.Step.1" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">2</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Build</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Build</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.1" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"> - <value type="QString">clean</value> - </valuelist> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Clean</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Clean</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">2</value> - <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value> - <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Debug</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/jpasion/gitorious/jpasions-qt-doc-team-qtquick/demos/mobile/qtbubblelevel-build-desktop</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">4</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value> - </valuemap> - <value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value> - <valuemap key="ProjectExplorer.Target.DeployConfiguration.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">0</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Deploy</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Deploy</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">No deployment</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.DefaultDeployConfiguration</value> - </valuemap> - <value key="ProjectExplorer.Target.DeployConfigurationCount" type="int">1</value> - <valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">qtbubblelevel</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4RunConfiguration</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase" type="int">2</value> - <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments" type="QVariantList"/> - <value key="Qt4ProjectManager.Qt4RunConfiguration.ProFile" type="QString">qtbubblelevel.pro</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix" type="bool">false</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal" type="bool">false</value> - <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetWorkingDirectory" type="bool">false</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory" type="QString"></value> - <value key="RunConfiguration.QmlDebugServerPort" type="uint">3768</value> - <value key="RunConfiguration.UseCppDebugger" type="bool">true</value> - <value key="RunConfiguration.UseQmlDebugger" type="bool">false</value> - </valuemap> - <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value> - </valuemap> - </data> - <data> - <variable>ProjectExplorer.Project.Target.1</variable> - <valuemap type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Qt Simulator</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Qt Simulator</value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.QtSimulatorTarget</value> - <value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value> - <value key="ProjectExplorer.Target.ActiveDeployConfiguration" type="int">0</value> - <value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value> - <valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">qmake</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value> - <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/> - <value key="QtProjectManager.QMakeBuildStep.QMakeForced" type="bool">false</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildStepList.Step.1" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">2</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Build</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Build</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.1" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"> - <value type="QString">clean</value> - </valuelist> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Clean</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Clean</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">2</value> - <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value> - <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Release</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/jpasion/gitorious/jpasions-qt-doc-team-qtquick/demos/mobile/qtbubblelevel-build-simulator</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">6</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value> - </valuemap> - <valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">qmake</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value> - <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/> - <value key="QtProjectManager.QMakeBuildStep.QMakeForced" type="bool">false</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildStepList.Step.1" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">2</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Build</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Build</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.1" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Make</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value> - <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value> - <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"> - <value type="QString">clean</value> - </valuelist> - <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Clean</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Clean</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">2</value> - <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value> - <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Debug</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/jpasion/gitorious/jpasions-qt-doc-team-qtquick/demos/mobile/qtbubblelevel-build-simulator</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">6</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value> - </valuemap> - <value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value> - <valuemap key="ProjectExplorer.Target.DeployConfiguration.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">0</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Deploy</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Deploy</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">No deployment</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.DefaultDeployConfiguration</value> - </valuemap> - <value key="ProjectExplorer.Target.DeployConfigurationCount" type="int">1</value> - <valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">qtbubblelevel</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4RunConfiguration</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase" type="int">2</value> - <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments" type="QVariantList"/> - <value key="Qt4ProjectManager.Qt4RunConfiguration.ProFile" type="QString">qtbubblelevel.pro</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix" type="bool">false</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal" type="bool">false</value> - <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetWorkingDirectory" type="bool">false</value> - <value key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory" type="QString"></value> - <value key="RunConfiguration.QmlDebugServerPort" type="uint">3768</value> - <value key="RunConfiguration.UseCppDebugger" type="bool">true</value> - <value key="RunConfiguration.UseQmlDebugger" type="bool">false</value> - </valuemap> - <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value> - </valuemap> - </data> - <data> - <variable>ProjectExplorer.Project.Target.2</variable> - <valuemap type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Remote Compiler</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Remote Compiler</value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.WccCompilerTarget</value> - <value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value> - <value key="ProjectExplorer.Target.ActiveDeployConfiguration" type="int">0</value> - <value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value> - <valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildStepList.Step.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.WccBuildStep</value> - <value key="Qt4ProjectManager.WccBuildStep.CertFile" type="QString"></value> - <value key="Qt4ProjectManager.WccBuildStep.CertKeyFile" type="QString"></value> - <value key="Qt4ProjectManager.WccBuildStep.CertKeyPass" type="QString"></value> - <value key="Qt4ProjectManager.WccBuildStep.PkgOpt" type="int">1</value> - <value key="Qt4ProjectManager.WccBuildStep.PostOp" type="int">1</value> - <value key="Qt4ProjectManager.WccBuildStep.QtVersion" type="QString">4_7_0_m1_0_2</value> - <value key="Qt4ProjectManager.WccBuildStep.SisOpt" type="int">1</value> - <value key="Qt4ProjectManager.WccBuildStep.Target" type="QString">maemo5</value> - </valuemap> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Build</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Build</value> - </valuemap> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.1" type="QVariantMap"> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">0</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Clean</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Clean</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">2</value> - <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value> - <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Remote Compiler</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/home/jpasion/gitorious/jpasions-qt-doc-team-qtquick/demos/mobile/qtbubblelevel-build-remote</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">7</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">12</value> - <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value> - </valuemap> - <value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">1</value> - <valuemap key="ProjectExplorer.Target.DeployConfiguration.0" type="QVariantMap"> - <valuemap key="ProjectExplorer.BuildConfiguration.BuildStepList.0" type="QVariantMap"> - <value key="ProjectExplorer.BuildStepList.StepsCount" type="int">0</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">Deploy</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.BuildSteps.Deploy</value> - </valuemap> - <value key="ProjectExplorer.BuildConfiguration.BuildStepListCount" type="int">1</value> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString">No deployment</value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">ProjectExplorer.DefaultDeployConfiguration</value> - </valuemap> - <value key="ProjectExplorer.Target.DeployConfigurationCount" type="int">1</value> - <valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap"> - <value key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName" type="QString"></value> - <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Remote Compiler - Empty Run Configuration</value> - <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.WccRunConfiguration</value> - <value key="Qt4ProjectManager.WccRunConfiguration.ProFile" type="QString">qtbubblelevel.pro</value> - <value key="RunConfiguration.QmlDebugServerPort" type="uint">3768</value> - <value key="RunConfiguration.UseCppDebugger" type="bool">true</value> - <value key="RunConfiguration.UseQmlDebugger" type="bool">false</value> - </valuemap> - <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value> - </valuemap> - </data> - <data> - <variable>ProjectExplorer.Project.TargetCount</variable> - <value type="int">3</value> - </data> - <data> - <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> - <value type="QString">{7d0e1b67-5eac-4464-8506-ed03165c2662}</value> - </data> - <data> - <variable>ProjectExplorer.Project.Updater.FileVersion</variable> - <value type="int">8</value> - </data> -</qtcreator> diff --git a/demos/mobile/qtbubblelevel/qtbubblelevel.zip b/demos/mobile/qtbubblelevel/qtbubblelevel.zip Binary files differdeleted file mode 100644 index 62f0a81..0000000 --- a/demos/mobile/qtbubblelevel/qtbubblelevel.zip +++ /dev/null diff --git a/doc/src/demos/guitartuner.qdoc b/doc/src/demos/guitartuner.qdoc new file mode 100644 index 0000000..91937fe --- /dev/null +++ b/doc/src/demos/guitartuner.qdoc @@ -0,0 +1,44 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:FDL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Free Documentation License +** Alternatively, this file may be used under the terms of the GNU Free +** Documentation License version 1.3 as published by the Free Software +** Foundation and appearing in the file included in the packaging of this +** file. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/*! + \page guitartuner_example.html + \title Guitar Tuner Example + \example demos/mobile/guitartuner + +The Guitar Tuner application can be used to tune guitar strings by analyzing the +audio recorded by the device microphone. Guitar Tuner can be also used in the +listening mode. It will then play the audio by the corresponding frequency, and +the user can tune the guitar by ear. The application demonstrates the audio-in +and the audio-out interfaces of +\l{external: Mobility Multimedia}{Qt Mobility Multimedia} and integrating Qt +code to the Qt Quick UI. + + The example is hosted in Projects Forum Nokia: https://projects.forum.nokia.com/guitartuner + + \image qml-guitartuner-example.png +*/ diff --git a/doc/src/demos/mobiledemos.qdoc b/doc/src/demos/mobiledemos.qdoc index 7ab5602..4a146d5 100644 --- a/doc/src/demos/mobiledemos.qdoc +++ b/doc/src/demos/mobiledemos.qdoc @@ -25,43 +25,15 @@ ** ****************************************************************************/ -/*! - \example demos/mobile/guitartuner - \title Guitar Tuner - - This demo shows how to use Mobility APIs to analyze audio input. The - interface uses QML to display images onto the screen and - \l{external: Qt Mobility Manual}{Mobility}'s Multimedia APIs to access - audio information. - -*/ - -/*! - \example demos/mobile/qcamera - \title QCamera - - This demo shows how to use Mobility APIs to access camera hardware and to - send these images to contacts. Uses the contacts, messaging, multimedia, - location, and systeminfo modules of - \l{external: Qt Mobility Manual}{Mobility}. - -*/ /*! \example demos/mobile/quickhit - \title QCamera + \title Quick Hit Demo This demo shows how to use Mobility APIs to access device audio capabilities. Uses the multimedia and systeminfo modules of - \l{external: Qt Mobility Manual}{Mobility}. + \l{external: Qt Mobility Manual}{Qt Mobility}. */ -/*! - \example demos/mobile/qtbubblelevel - \title Qt Bubble Level - This demo shows how to use Mobility APIs to access hardware accelerometers. - Demonstrates the use of sensors and accelerometers provided by - \l{external: Qt Mobility Manual}{Mobility}. -*/ diff --git a/doc/src/demos/qcamera.qdoc b/doc/src/demos/qcamera.qdoc new file mode 100644 index 0000000..cb717d5 --- /dev/null +++ b/doc/src/demos/qcamera.qdoc @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:FDL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Free Documentation License +** Alternatively, this file may be used under the terms of the GNU Free +** Documentation License version 1.3 as published by the Free Software +** Foundation and appearing in the file included in the packaging of this +** file. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/*! + \page qcamera_example.html + \title QCamera Example + \example demos/mobile/qcamera + + This Qt C++ application demonstrates how to use Multimedia, Messaging and Contacts modules from \l{external: Qt Mobility Manual}{Qt Mobility}. + + \image qcameraexample.png + + The application shows the viewfinder picture from the device camera and allows the user to capture images. Captured images are stored into the gallery and can be sent as an MMS message to a friend. Application listens for incoming MMS messages in the Inbox folder. If the MMS message contains a picture, the application asks the user whether he or she wants to add the picture as an avatar of the sender. The person's general contact information has to exist in the device phonebook in order to store the avatar in it. + + The application uses own MyVideoSurface video surface derived from QAbstractVideoSurface for showing camera view finder pictures. A video surface presents a continuous stream of identically formatted frames. + + \snippet demos/mobile/qcamera/cameraexample.cpp 0 + + The application handles Graphics Out Of Memory (GOOM) events in it's QApplication::symbianEventFilter() method. + + \snippet demos/mobile/qcamera/main.cpp 0 + + \section1 Required capabilities + + Application can be self-signed. + + After enabling Qt Mobility Messaging module (MESSAGING_ENABLED flag in .pro file) + from the project file is ReadDeviceData WriteDeviceData capabilities also needed and + application have to be Developer Signed. Enabling Messaging adds MMS sending feature for the application. + + \section1 Compatibility + + Qt SDK 1.1 + + Qt 4.7.2 for Symbian + + QtMobility 1.1.1 + + Tested on: Nokia N8, Nokia E7 + + Developed with: Qt SDK 1.1 + + +*/ diff --git a/doc/src/demos/qml-qtbubblelevel.qdoc b/doc/src/demos/qml-qtbubblelevel.qdoc new file mode 100644 index 0000000..e965026 --- /dev/null +++ b/doc/src/demos/qml-qtbubblelevel.qdoc @@ -0,0 +1,107 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:FDL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Free Documentation License +** Alternatively, this file may be used under the terms of the GNU Free +** Documentation License version 1.3 as published by the Free Software +** Foundation and appearing in the file included in the packaging of this +** file. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/*! + \page qtbubblelevel_example.html + \title Qt Bubble Level Example + \example demos/mobile/qtbubblelevel + +Qt Bubble Level is a simple application that uses +\l{external: Qt Mobility Manual}{Qt Mobility's} accelerometer APIs and hardware +sensor information to calculate the inclination of the device and presents this +as atraditional bubble level. The application provides a calibration feature to +handle any possible errors in accelerometer readings. The example is hosted in +Projects Forum Nokia: https://projects.forum.nokia.com/qtbubblelevel + + \image qml-qtbubblelevel-demo.png + + \section1 Initialising the application + + All of the initialisations are done in the main function. + + First, QDeclarativeView is created to intepret the QML files. The QML file given is found in the Qt resource. The root QML element is set to resize to the view whenever the view is resized. + + \snippet demos/mobile/qtbubblelevel/main.cpp 0 + + The Settings object will handle the loading or storing of the calibration value. Next, we create instances from QAccelerometer and AccelerometerFilter and attach the filter to the sensor. + + \snippet demos/mobile/qtbubblelevel/main.cpp 1 + + The Qt code is then connected to QML code by using Qt Signals and Slots connections. First, the root object is retrieved from QDeclarativeView. The root object now represents the Qt object of the QML root element. + + The saveCorrectionAngle signal of the QML root element is connected to the Qt slot saveCorrectionAngle. The rotationChanged and correctionAngle Qt signals are connected to the handleRotation and setCorrectionAngle slot of the QML root element. Finally, the quit signal of QDeclarativeEngine is connected to QApplication's quit slot. + + \snippet demos/mobile/qtbubblelevel/main.cpp 2 + + On the Maemo target, the application needs a minimise button, so we connect one additional QML signal to the Qt slot. The minimise button is made visible by setting the value of the QML root element's taskSwitcherVisible property to true. + + \snippet demos/mobile/qtbubblelevel/main.cpp 3 + + The correction factor of the accelerometer is retrieved from persistent storage by using QSettings. The correction factor is signalled to the QML side by using the function setCorrectionAngle. The accelerometer sensor is started and it will eventually begin to signal the changes in accelerometer readings. + + \snippet demos/mobile/qtbubblelevel/main.cpp 4 + + Finally, in the end of the function the view is shown in full screen on mobile devices. On other targets, the application is shown as 800 x 480 resolution in the 100, 100 position from the top-left corner of the desktop. + + \snippet demos/mobile/qtbubblelevel/main.cpp 5 + + \section1 Accessing the accelerometer information + + The inclination of the device is resolved by using the QAccelerometer sensor of QtMobility. We already created the sensor in the main function and attached our self-derived AccelerometerFilter object to it. Here is the definition of the AccelerometerFilter class: + + \snippet demos/mobile/qtbubblelevel/accelerometerfilter.h 0 + + The class is multiderived from QObject and QAccelerometerFilter classes. The QAccelerometerFilter class is derived from QObject because we want to use Qt Signals and Slots to signal changes in accelerometer readings. + + The members x, y, and z store the previous values of the sensor reading in order to implement a low pass filter to the values. + + In the implementation of the AccelerometerFilter class, we first read the value of each axis from the QAccelerometerReading object. The values are then converted from radians to degrees and applied the low pass filter to reduce noise in the sensor readings. Different low pass factors are used depending on the platform (these were determined to be good via experimenting). Finally, the calculated value is emitted. + + Note that the accelerometer sensors are oriented differently in Symbian and Maemo devices, and we must account for this by using platform-specific code. + + \snippet demos/mobile/qtbubblelevel/accelerometerfilter.cpp 0 + + \section1 The Qt Quick UI + + BubbleLevel.qml is the main QML element. It represents the wooden board of the bubble level, and it also acts as a connection point between the QML and the Qt side. In the beginning of the element, there are two signals, two functions, and one property. All of these define the interface between Qt and QML. + + On the Maemo platform, when the application is to be minimised, minimizeApplication is signalled. When a new calibration factor is to be stored in the device's memory, saveCorrectionAngle is signalled. + + The handleRotation function acts as a Qt slot to which the AccelerometerFilters signal rotationChanged is connected. Similarly, the setCorrectionAngle function also acts as a Qt slot to which the Settings object's signal, correctionAngle, is connected. + + The property alias taskSwitcherVisible is provided to allow the Qt model to show or hide the task switcher button which minimises the application. This is only meaningful on Maemo platforms, where every application normally has a task switcher button. + + \snippet demos/mobile/qtbubblelevel/qml/BubbleLevel.qml 0 + + The Tube element represents the the glass tube of the bubble level. It is anchored to the centre of the wooden board. The width and height are calculated with specific factors to make the glass tube scale to different resolutions. + + \snippet demos/mobile/qtbubblelevel/qml/BubbleLevel.qml 1 + + In the implementation of Tube.qml, the property deg represents the current inclination. The x-position of the bubble is bound to the JavaScript function calX which is called every time the property deg, center, or bubblCenter is changed. The function places the bubble in the corresponding place on its parent. + + \snippet demos/mobile/qtbubblelevel/qml/Tube.qml 0 +*/ diff --git a/doc/src/getting-started/demos.qdoc b/doc/src/getting-started/demos.qdoc index 8b21fc3..111b405 100644 --- a/doc/src/getting-started/demos.qdoc +++ b/doc/src/getting-started/demos.qdoc @@ -60,10 +60,10 @@ \l{external: Qt Mobility Manual}{Mobility} to create feature rich mobile applications. \list - \o \l{demos/mobile/guitartuner}{Guitar Tuner} - a guitar tuner made with a QML frontend and a Mobility based backend - \o \l{demos/mobile/quickhit}{Quick Hit} - a game that uses multimedia and Qt Quick - \o \l{demos/mobile/qtbubblelevel}{Qt Bubble Level} - a game that utilizes hardware sensors for effects - \o \l{demos/mobile/qcamera}{QCamera} - a camera application that accesses mobile contacts and networking + \o \l{Guitar Tuner Example}{Guitar Tuner} - a guitar tuner made with a QML frontend and a Mobility based backend + \o \l{Quick Hit Demo}{Quick Hit} - a game that uses multimedia and Qt Quick + \o \l{Qt Bubble Level Example}{Qt Bubble Level} - a game that utilizes hardware sensors for effects + \o \l{QCamera Example}{QCamera} - a camera application that accesses mobile contacts and networking \endlist \section1 Painting diff --git a/doc/src/images/qcameraexample.png b/doc/src/images/qcameraexample.png Binary files differnew file mode 100644 index 0000000..4873633 --- /dev/null +++ b/doc/src/images/qcameraexample.png diff --git a/doc/src/images/qml-guitartuner-example.png b/doc/src/images/qml-guitartuner-example.png Binary files differnew file mode 100644 index 0000000..2f13e8d --- /dev/null +++ b/doc/src/images/qml-guitartuner-example.png diff --git a/doc/src/images/qml-qtbubblelevel-demo.png b/doc/src/images/qml-qtbubblelevel-demo.png Binary files differnew file mode 100644 index 0000000..422ecd8 --- /dev/null +++ b/doc/src/images/qml-qtbubblelevel-demo.png |