summaryrefslogtreecommitdiffstats
path: root/src/doc
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-01-17 19:33:29 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-20 16:53:10 +0100
commita0d27513f4eff3f76fd85e6442aca443b7c05a53 (patch)
tree2239ed849796744299fbe25ab3cc50c2867160e9 /src/doc
parent9ba631edb469599d3973982f8d5d72a9ba059eab (diff)
whitespace fixes
remove trailing spaces & expand tabs Change-Id: Ia088c8cc8a83d068f6e2ec84903b5220cd3411f1 Reviewed-by: Alan Alpert <aalpert@blackberry.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/src/declarative/advtutorial.qdoc16
-rw-r--r--src/doc/src/declarative/dynamicobjects.qdoc4
-rw-r--r--src/doc/src/declarative/extending.qdoc6
-rw-r--r--src/doc/src/declarative/globalobject.qdoc10
-rw-r--r--src/doc/src/declarative/javascriptblocks.qdoc2
-rw-r--r--src/doc/src/declarative/qdeclarativedebugging.qdoc6
-rw-r--r--src/doc/src/declarative/whatsnew.qdoc2
-rw-r--r--src/doc/src/examples/qml-extending.qdoc46
-rw-r--r--src/doc/src/examples/qml-webbrowser.qdoc2
-rw-r--r--src/doc/src/snippets/declarative/SelfDestroyingRect.qml4
-rw-r--r--src/doc/src/snippets/declarative/animatedimage.qml2
-rw-r--r--src/doc/src/snippets/declarative/codingconventions/photo.qml10
-rw-r--r--src/doc/src/snippets/declarative/colors.qml2
-rw-r--r--src/doc/src/snippets/declarative/createQmlObject.qml2
-rw-r--r--src/doc/src/snippets/declarative/listmodel-nested.qml2
-rw-r--r--src/doc/src/snippets/declarative/listview/listview.qml2
-rw-r--r--src/doc/src/snippets/declarative/loader/connections.qml2
-rw-r--r--src/doc/src/snippets/declarative/loader/simple.qml2
-rw-r--r--src/doc/src/snippets/declarative/parentanimation.qml4
-rw-r--r--src/doc/src/snippets/declarative/parentchange.qml4
-rw-r--r--src/doc/src/snippets/declarative/propertyanimation.qml4
-rw-r--r--src/doc/src/snippets/declarative/propertychanges.qml4
-rw-r--r--src/doc/src/snippets/declarative/qml-documents/inline-component.qml4
-rw-r--r--src/doc/src/snippets/declarative/qml-documents/inline-text-component.qml4
-rw-r--r--src/doc/src/snippets/declarative/qml-documents/non-trivial.qml4
-rw-r--r--src/doc/src/snippets/declarative/qml-documents/qmldocuments.qml2
-rw-r--r--src/doc/src/snippets/declarative/qtbinding/functions-cpp/myclass.h2
-rw-r--r--src/doc/src/snippets/declarative/qtobject.qml2
-rw-r--r--src/doc/src/snippets/declarative/repeaters/repeater.qml6
-rw-r--r--src/doc/src/snippets/declarative/rotationanimation.qml4
-rw-r--r--src/doc/src/snippets/declarative/row.qml2
-rw-r--r--src/doc/src/snippets/declarative/state.qml4
-rw-r--r--src/doc/src/snippets/declarative/transition-from-to.qml2
-rw-r--r--src/doc/src/snippets/declarative/transition-reversible.qml2
-rw-r--r--src/doc/src/snippets/declarative/transition.qml4
-rw-r--r--src/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml2
36 files changed, 91 insertions, 91 deletions
diff --git a/src/doc/src/declarative/advtutorial.qdoc b/src/doc/src/declarative/advtutorial.qdoc
index 4118836e..75724573 100644
--- a/src/doc/src/declarative/advtutorial.qdoc
+++ b/src/doc/src/declarative/advtutorial.qdoc
@@ -33,7 +33,7 @@
This tutorial walks step-by-step through the creation of a full application using QML.
It assumes that you already know the basics of QML (for example, from reading the
-\l{QML Tutorial}{simple tutorial}).
+\l{QML Tutorial}{simple tutorial}).
In this tutorial we write a game, \e {Same Game}, based on the Same Game application
included in the declarative \c demos directory, which looks like this:
@@ -41,7 +41,7 @@ included in the declarative \c demos directory, which looks like this:
\image declarative-samegame.png
We will cover concepts for producing a fully functioning application, including
-JavaScript integration, using QML \l{State}{States} and \l{Behavior}{Behaviors} to
+JavaScript integration, using QML \l{State}{States} and \l{Behavior}{Behaviors} to
manage components and enhance your interface, and storing persistent application data.
An understanding of JavaScript is helpful to understand parts of this tutorial, but if you don't
@@ -121,7 +121,7 @@ This means that when we dynamically create and resize the block items
later on in the tutorial, the image will be scaled automatically to the
correct size.
-Notice the relative path for the Image element's \c source property.
+Notice the relative path for the Image element's \c source property.
This path is relative to the location of the file that contains the \l Image element.
Alternatively, you could set the Image source to an absolute file path or a URL
that contains an image.
@@ -147,7 +147,7 @@ Now that we've written some basic elements, let's start writing the game.
The first task is to generate the game blocks. Each time the New Game button
is clicked, the game canvas is populated with a new, random set of
blocks. Since we need to dynamically generate new blocks for each new game,
-we cannot use \l Repeater to define the blocks. Instead, we will
+we cannot use \l Repeater to define the blocks. Instead, we will
create the blocks in JavaScript.
Here is the JavaScript code for generating the blocks, contained in a new
@@ -192,7 +192,7 @@ the JavaScript file as a \l{Modules#QML Modules}{module}:
\snippet declarative/tutorials/samegame/samegame2/samegame.qml 2
This allows us to refer to any functions within \c samegame.js using "SameGame"
-as a prefix: for example, \c SameGame.startNewGame() or \c SameGame.createBlock().
+as a prefix: for example, \c SameGame.startNewGame() or \c SameGame.createBlock().
This means we can now connect the New Game button's \c onClicked handler to the \c startNewGame()
function, like this:
@@ -231,7 +231,7 @@ To do this, we have added the following functions to \c samegame.js:
\li \c{floodMoveCheck(xIdx, yIdx, type)}
\endlist
-As this is a tutorial about QML, not game design, we will only discuss \c handleClick() and \c victoryCheck() below since they interface directly with the QML elements. Note that although the game logic here is written in JavaScript, it could have been written in C++ and then exposed to QML.
+As this is a tutorial about QML, not game design, we will only discuss \c handleClick() and \c victoryCheck() below since they interface directly with the QML elements. Note that although the game logic here is written in JavaScript, it could have been written in C++ and then exposed to QML.
\section3 Enabling mouse click interaction
@@ -340,7 +340,7 @@ element in \c BoomBlock.qml:
Note the \c{opacity: 0} which means the block is transparent when it is first created. We could set the opacity
in \c samegame.js when we create and destroy the blocks,
-but instead we'll use \l{QML States}{states}, since this is useful for the next animation we're going to add.
+but instead we'll use \l{QML States}{states}, since this is useful for the next animation we're going to add.
Initially, we add these States to the root element of \c{BoomBlock.qml}:
\code
property bool dying: false
@@ -405,7 +405,7 @@ Now the dialog can be used in \c samegame.qml:
\snippet declarative/tutorials/samegame/samegame4/samegame.qml 0
-When the dialog emits the \c closed signal, we call the new \c saveHighScore() function in \c samegame.js, which stores the high score locally in an SQL database and also send the score to an online database if possible.
+When the dialog emits the \c closed signal, we call the new \c saveHighScore() function in \c samegame.js, which stores the high score locally in an SQL database and also send the score to an online database if possible.
The \c nameInputDialog is activated in the \c victoryCheck() function in \c samegame.js:
diff --git a/src/doc/src/declarative/dynamicobjects.qdoc b/src/doc/src/declarative/dynamicobjects.qdoc
index 7e871a96..86fc3621 100644
--- a/src/doc/src/declarative/dynamicobjects.qdoc
+++ b/src/doc/src/declarative/dynamicobjects.qdoc
@@ -70,8 +70,8 @@ Once you have a \l Component, you can call its \l {Component::createObject()}{cr
the component. This function can take one or two arguments:
\list
\li The first is the parent for the new item. Since graphical items will not appear on the scene without a parent, it is
- recommended that you set the parent this way. However, if you wish to set the parent later you can safely pass \c null to
- this function.
+ recommended that you set the parent this way. However, if you wish to set the parent later you can safely pass \c null to
+ this function.
\li The second is optional and is a map of property-value items that define initial any property values for the item.
Property values specified by this argument are applied to the object before its creation is finalized, avoiding
binding errors that may occur if particular properties must be initialized to enable other property bindings.
diff --git a/src/doc/src/declarative/extending.qdoc b/src/doc/src/declarative/extending.qdoc
index b048337a..06dad490 100644
--- a/src/doc/src/declarative/extending.qdoc
+++ b/src/doc/src/declarative/extending.qdoc
@@ -143,11 +143,11 @@ CppItem {
where CppItem maps to the C++ class QCppItem.
-If the author of QCppItem adds a "root" property to QCppItem in a new version of the module,
+If the author of QCppItem adds a "root" property to QCppItem in a new version of the module,
it will break the above program as \c root.x now resolves to a different value.
-The solution is to allow the author of QCppItem to state that the new \c root property is
+The solution is to allow the author of QCppItem to state that the new \c root property is
only available from a particular version of QCppItem onwards. This permits new properties
-and features to be added to existing elements without breaking existing programs.
+and features to be added to existing elements without breaking existing programs.
QML enables this by allowing the properties, methods and signals of a class to be tagged with
a particular \e revision, so that they are only accessible if the relevant module version
diff --git a/src/doc/src/declarative/globalobject.qdoc b/src/doc/src/declarative/globalobject.qdoc
index 5b5aee50..92e41af4 100644
--- a/src/doc/src/declarative/globalobject.qdoc
+++ b/src/doc/src/declarative/globalobject.qdoc
@@ -36,14 +36,14 @@ Contains all the properties of the JavaScript global object, plus:
\section1 Qt Object
The \l{QmlGlobalQtObject}{Qt object} provides useful enums and functions from Qt, for use in all QML
-files.
+files.
\section1 XMLHttpRequest
\target XMLHttpRequest
-QML script supports the XMLHttpRequest object, which can be used to asynchronously obtain
-data from over a network.
+QML script supports the XMLHttpRequest object, which can be used to asynchronously obtain
+data from over a network.
The XMLHttpRequest API implements the same \l {http://www.w3.org/TR/XMLHttpRequest/}{W3C standard}
as many popular web browsers with following exceptions:
@@ -89,7 +89,7 @@ browser. The following objects and properties are supported by the QML implemen
\endlist
\li
-\list
+\list
\li tagName
\endlist
@@ -101,7 +101,7 @@ browser. The following objects and properties are supported by the QML implemen
\endlist
\li
-\list
+\list
\li data
\li length
\endlist
diff --git a/src/doc/src/declarative/javascriptblocks.qdoc b/src/doc/src/declarative/javascriptblocks.qdoc
index 997db5a2..f22db122 100644
--- a/src/doc/src/declarative/javascriptblocks.qdoc
+++ b/src/doc/src/declarative/javascriptblocks.qdoc
@@ -293,7 +293,7 @@ To run code after the environment setup has completed, refer to
\li The value of \c this is currently undefined in QML in the majority of contexts
-The \c this keyword is supported when binding properties from JavaScript.
+The \c this keyword is supported when binding properties from JavaScript.
In all other situations, the value of
\c this is undefined in QML.
diff --git a/src/doc/src/declarative/qdeclarativedebugging.qdoc b/src/doc/src/declarative/qdeclarativedebugging.qdoc
index d3858212..093addb4 100644
--- a/src/doc/src/declarative/qdeclarativedebugging.qdoc
+++ b/src/doc/src/declarative/qdeclarativedebugging.qdoc
@@ -54,7 +54,7 @@ click on the "Debugging" menu, then "Slow Down Animations".
\section1 Debugging module imports
The \c QML_IMPORT_TRACE environment variable can be set to enable debug output
-from QML's import loading mechanisms.
+from QML's import loading mechanisms.
For example, for a simple QML file like this:
@@ -68,8 +68,8 @@ If you set \c {QML_IMPORT_TRACE=1} before running the \l {QML Viewer}
(or your QML C++ application), you will see output similar to this:
\code
-QDeclarativeImportDatabase::addImportPath "/qt-sdk/imports"
-QDeclarativeImportDatabase::addImportPath "/qt-sdk/bin/QMLViewer.app/Contents/MacOS"
+QDeclarativeImportDatabase::addImportPath "/qt-sdk/imports"
+QDeclarativeImportDatabase::addImportPath "/qt-sdk/bin/QMLViewer.app/Contents/MacOS"
QDeclarativeImportDatabase::addToImport 0x106237370 "." -1.-1 File as ""
QDeclarativeImportDatabase::addToImport 0x106237370 "Qt" 4.7 Library as ""
QDeclarativeImportDatabase::resolveType "Rectangle" = "QDeclarativeRectangle"
diff --git a/src/doc/src/declarative/whatsnew.qdoc b/src/doc/src/declarative/whatsnew.qdoc
index 99cf900b..5cc9cbb5 100644
--- a/src/doc/src/declarative/whatsnew.qdoc
+++ b/src/doc/src/declarative/whatsnew.qdoc
@@ -175,7 +175,7 @@ The change for developers is very simple - where you previously wrote
\e {import Qt 4.7}, just replace it with \e {import QtQuick 1.0}, like this:
\code
-import QtQuick 1.0
+import QtQuick 1.0
Text {
text: "Welcome to QtQuick 1.0!"
diff --git a/src/doc/src/examples/qml-extending.qdoc b/src/doc/src/examples/qml-extending.qdoc
index 68ed2936..bc09bba9 100644
--- a/src/doc/src/examples/qml-extending.qdoc
+++ b/src/doc/src/examples/qml-extending.qdoc
@@ -37,9 +37,9 @@ The \c Person type can be used from QML like this:
\section1 Declare the Person class
-All QML elements map to C++ types. Here we declare a basic C++ Person class
+All QML elements map to C++ types. Here we declare a basic C++ Person class
with the two properties we want accessible on the QML type - name and shoeSize.
-Although in this example we use the same name for the C++ class as the QML
+Although in this example we use the same name for the C++ class as the QML
element, the C++ class can be named differently, or appear in a namespace.
\snippet examples/declarative/cppextensions/referenceexamples/adding/person.h 0
@@ -57,8 +57,8 @@ and defines the mapping between the C++ and QML class names.
\section1 Running the example
-The main.cpp file in the example includes a simple shell application that
-loads and runs the QML snippet shown at the beginning of this page.
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
*/
/*!
@@ -86,12 +86,12 @@ The BirthdayParty class is declared like this:
\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.h 2
\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.h 3
-The class contains a member to store the celebrant object, and also a
-QList<Person *> member.
+The class contains a member to store the celebrant object, and also a
+QList<Person *> member.
-In QML, the type of a list properties - and the guests property is a list of
+In QML, the type of a list properties - and the guests property is a list of
people - are all of type QDeclarativeListProperty<T>. QDeclarativeListProperty is simple value
-type that contains a set of function pointers. QML calls these function
+type that contains a set of function pointers. QML calls these function
pointers whenever it needs to read from, write to or otherwise interact with
the list. In addition to concrete lists like the people list used in this
example, the use of QDeclarativeListProperty allows for "virtual lists" and other advanced
@@ -105,8 +105,8 @@ The implementation of BirthdayParty property accessors is straight forward.
\section1 Running the example
-The main.cpp file in the example includes a simple shell application that
-loads and runs the QML snippet shown at the beginning of this page.
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
*/
/*!
@@ -129,10 +129,10 @@ developed in the previous examples into two elements - a \c Boy and a \c Girl.
\snippet examples/declarative/cppextensions/referenceexamples/coercion/person.h 0
-The Person class remains unaltered in this example and the Boy and Girl C++
+The Person class remains unaltered in this example and the Boy and Girl C++
classes are trivial extensions of it. As an example, the inheritance used here
is a little contrived, but in real applications it is likely that the two
-extensions would add additional properties or modify the Person classes
+extensions would add additional properties or modify the Person classes
behavior.
\section2 Define People as a base class
@@ -159,8 +159,8 @@ and their QML name with the QML engine.
\section1 Running the example
-The BirthdayParty element has not changed since the previous example. The
-celebrant and guests property still use the People type.
+The BirthdayParty element has not changed since the previous example. The
+celebrant and guests property still use the People type.
\snippet examples/declarative/cppextensions/referenceexamples/coercion/birthdayparty.h 0
@@ -168,8 +168,8 @@ However, as all three types, Person, Boy and Girl, have been registered with the
QML system, on assignment QML automatically (and type-safely) converts the Boy
and Girl objects into a Person.
-The main.cpp file in the example includes a simple shell application that
-loads and runs the QML snippet shown at the beginning of this page.
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
*/
/*!
@@ -183,8 +183,8 @@ This example builds on:
\li \l {Extending QML - Adding Types Example}
\endlist
-The Default Property Example is a minor modification of the
-\l {Extending QML - Inheritance and Coercion Example} that simplifies the
+The Default Property Example is a minor modification of the
+\l {Extending QML - Inheritance and Coercion Example} that simplifies the
specification of a BirthdayParty through the use of a default property.
\snippet examples/declarative/cppextensions/referenceexamples/default/example.qml 0
@@ -192,20 +192,20 @@ specification of a BirthdayParty through the use of a default property.
\section1 Declaring the BirthdayParty class
The only difference between this example and the last, is the addition of the
-\c DefaultProperty class info annotation.
+\c DefaultProperty class info annotation.
\snippet examples/declarative/cppextensions/referenceexamples/default/birthdayparty.h 0
-The default property specifies the property to assign to whenever an explicit
+The default property specifies the property to assign to whenever an explicit
property is not specified, in the case of the BirthdayParty element the guest
-property. It is purely a syntactic simplification, the behavior is identical
+property. It is purely a syntactic simplification, the behavior is identical
to specifying the property by name, but it can add a more natural feel in many
situations. The default property must be either an object or list property.
\section1 Running the example
-The main.cpp file in the example includes a simple shell application that
-loads and runs the QML snippet shown at the beginning of this page.
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
*/
/*!
diff --git a/src/doc/src/examples/qml-webbrowser.qdoc b/src/doc/src/examples/qml-webbrowser.qdoc
index f9efb82b..3f13ca43 100644
--- a/src/doc/src/examples/qml-webbrowser.qdoc
+++ b/src/doc/src/examples/qml-webbrowser.qdoc
@@ -31,7 +31,7 @@
\depends helper/qmlapplicationviewer
\brief The Qt Quick Web Browser demo shows how to write a simple web browser in QML by combining the
- WebView element with other components including scroll bars,
+ WebView element with other components including scroll bars,
\l Flickable views and TextInput fields.
\image qml-webbrowser-demo.png
diff --git a/src/doc/src/snippets/declarative/SelfDestroyingRect.qml b/src/doc/src/snippets/declarative/SelfDestroyingRect.qml
index 59b350cb..3029a448 100644
--- a/src/doc/src/snippets/declarative/SelfDestroyingRect.qml
+++ b/src/doc/src/snippets/declarative/SelfDestroyingRect.qml
@@ -45,9 +45,9 @@ Rectangle {
width: 80; height: 80
color: "red"
- NumberAnimation on opacity {
+ NumberAnimation on opacity {
to: 0
- duration: 1000
+ duration: 1000
onRunningChanged: {
if (!running) {
diff --git a/src/doc/src/snippets/declarative/animatedimage.qml b/src/doc/src/snippets/declarative/animatedimage.qml
index 3d810007..e2e2014e 100644
--- a/src/doc/src/snippets/declarative/animatedimage.qml
+++ b/src/doc/src/snippets/declarative/animatedimage.qml
@@ -49,7 +49,7 @@ Rectangle {
AnimatedImage { id: animation; source: "animation.gif" }
- Rectangle {
+ Rectangle {
property int frames: animation.frameCount
width: 4; height: 8
diff --git a/src/doc/src/snippets/declarative/codingconventions/photo.qml b/src/doc/src/snippets/declarative/codingconventions/photo.qml
index 0e9e5d3b..e70b055e 100644
--- a/src/doc/src/snippets/declarative/codingconventions/photo.qml
+++ b/src/doc/src/snippets/declarative/codingconventions/photo.qml
@@ -50,7 +50,7 @@ Rectangle {
signal clicked // signal declarations
function doSomething(x) // javascript functions
- {
+ {
return x + photoImage.width
}
@@ -58,10 +58,10 @@ Rectangle {
x: 20; y: 20; height: 150 // try to group related properties together
width: { // large bindings
if(photoImage.width > 200){
- photoImage.width;
- }else{
- 200;
- }
+ photoImage.width;
+ } else {
+ 200;
+ }
}
Rectangle { // child objects
diff --git a/src/doc/src/snippets/declarative/colors.qml b/src/doc/src/snippets/declarative/colors.qml
index 00e7e7bb..c75795d9 100644
--- a/src/doc/src/snippets/declarative/colors.qml
+++ b/src/doc/src/snippets/declarative/colors.qml
@@ -42,7 +42,7 @@ import QtQuick 1.0
Rectangle {
width: 160; height: 250
-
+
Image {
width: 160; height: 200
source: "pics/checker.svg"
diff --git a/src/doc/src/snippets/declarative/createQmlObject.qml b/src/doc/src/snippets/declarative/createQmlObject.qml
index ad4bee45..adb3d51e 100644
--- a/src/doc/src/snippets/declarative/createQmlObject.qml
+++ b/src/doc/src/snippets/declarative/createQmlObject.qml
@@ -45,7 +45,7 @@ Rectangle {
width: 100
height: 100
-
+
function createIt() {
//![0]
var newObject = Qt.createQmlObject('import QtQuick 1.0; Rectangle {color: "red"; width: 20; height: 20}',
diff --git a/src/doc/src/snippets/declarative/listmodel-nested.qml b/src/doc/src/snippets/declarative/listmodel-nested.qml
index 0ebc2f70..92f193d4 100644
--- a/src/doc/src/snippets/declarative/listmodel-nested.qml
+++ b/src/doc/src/snippets/declarative/listmodel-nested.qml
@@ -86,7 +86,7 @@ Component {
Text { text: "Attributes:" }
Repeater {
model: attributes
- Text { text: description }
+ Text { text: description }
}
}
}
diff --git a/src/doc/src/snippets/declarative/listview/listview.qml b/src/doc/src/snippets/declarative/listview/listview.qml
index e2f369b7..a528bda4 100644
--- a/src/doc/src/snippets/declarative/listview/listview.qml
+++ b/src/doc/src/snippets/declarative/listview/listview.qml
@@ -141,7 +141,7 @@ ListView {
}
model: ContactModel {}
- delegate: contactsDelegate
+ delegate: contactsDelegate
focus: true
}
//![isCurrentItem]
diff --git a/src/doc/src/snippets/declarative/loader/connections.qml b/src/doc/src/snippets/declarative/loader/connections.qml
index f489df17..db5700bb 100644
--- a/src/doc/src/snippets/declarative/loader/connections.qml
+++ b/src/doc/src/snippets/declarative/loader/connections.qml
@@ -48,7 +48,7 @@ Item {
source: "MyItem.qml"
}
- Connections {
+ Connections {
target: myLoader.item
onMessage: console.log(msg)
}
diff --git a/src/doc/src/snippets/declarative/loader/simple.qml b/src/doc/src/snippets/declarative/loader/simple.qml
index 419bb38d..f83708d6 100644
--- a/src/doc/src/snippets/declarative/loader/simple.qml
+++ b/src/doc/src/snippets/declarative/loader/simple.qml
@@ -45,7 +45,7 @@ Item {
Loader { id: pageLoader }
- MouseArea {
+ MouseArea {
anchors.fill: parent
onClicked: pageLoader.source = "Page1.qml"
}
diff --git a/src/doc/src/snippets/declarative/parentanimation.qml b/src/doc/src/snippets/declarative/parentanimation.qml
index 83a4bb1a..179e8cd2 100644
--- a/src/doc/src/snippets/declarative/parentanimation.qml
+++ b/src/doc/src/snippets/declarative/parentanimation.qml
@@ -43,13 +43,13 @@ import QtQuick 1.0
Item {
width: 200; height: 100
- Rectangle {
+ Rectangle {
id: redRect
width: 100; height: 100
color: "red"
}
- Rectangle {
+ Rectangle {
id: blueRect
x: redRect.width
width: 50; height: 50
diff --git a/src/doc/src/snippets/declarative/parentchange.qml b/src/doc/src/snippets/declarative/parentchange.qml
index c50fc46d..705ef4ab 100644
--- a/src/doc/src/snippets/declarative/parentchange.qml
+++ b/src/doc/src/snippets/declarative/parentchange.qml
@@ -43,13 +43,13 @@ import QtQuick 1.0
Item {
width: 200; height: 100
- Rectangle {
+ Rectangle {
id: redRect
width: 100; height: 100
color: "red"
}
- Rectangle {
+ Rectangle {
id: blueRect
x: redRect.width
width: 50; height: 50
diff --git a/src/doc/src/snippets/declarative/propertyanimation.qml b/src/doc/src/snippets/declarative/propertyanimation.qml
index fdd265c9..c003b6cc 100644
--- a/src/doc/src/snippets/declarative/propertyanimation.qml
+++ b/src/doc/src/snippets/declarative/propertyanimation.qml
@@ -55,8 +55,8 @@ Rectangle {
}
//! [single state]
- transitions: Transition {
- PropertyAnimation { properties: "x,y"; easing.type: Easing.InOutQuad }
+ transitions: Transition {
+ PropertyAnimation { properties: "x,y"; easing.type: Easing.InOutQuad }
}
}
//![transition]
diff --git a/src/doc/src/snippets/declarative/propertychanges.qml b/src/doc/src/snippets/declarative/propertychanges.qml
index aecffedb..177ff875 100644
--- a/src/doc/src/snippets/declarative/propertychanges.qml
+++ b/src/doc/src/snippets/declarative/propertychanges.qml
@@ -53,9 +53,9 @@ Item {
width: 100; height: 100
color: "red"
- MouseArea {
+ MouseArea {
id: mouseArea
- anchors.fill: parent
+ anchors.fill: parent
}
states: State {
diff --git a/src/doc/src/snippets/declarative/qml-documents/inline-component.qml b/src/doc/src/snippets/declarative/qml-documents/inline-component.qml
index f2897fb5..6e64da5f 100644
--- a/src/doc/src/snippets/declarative/qml-documents/inline-component.qml
+++ b/src/doc/src/snippets/declarative/qml-documents/inline-component.qml
@@ -42,7 +42,7 @@
import QtQuick 1.0
Rectangle {
- width: 240; height: 320;
+ width: 240; height: 320;
ListView {
anchors.fill: parent
@@ -52,6 +52,6 @@ Rectangle {
text: modelData.firstName + " " + modelData.lastName
}
}
- }
+ }
}
//! [document]
diff --git a/src/doc/src/snippets/declarative/qml-documents/inline-text-component.qml b/src/doc/src/snippets/declarative/qml-documents/inline-text-component.qml
index eaf8ce94..b9cca4fb 100644
--- a/src/doc/src/snippets/declarative/qml-documents/inline-text-component.qml
+++ b/src/doc/src/snippets/declarative/qml-documents/inline-text-component.qml
@@ -42,7 +42,7 @@
import QtQuick 1.0
Rectangle {
- width: 240; height: 320;
+ width: 240; height: 320;
ListView {
anchors.fill: parent
@@ -50,6 +50,6 @@ Rectangle {
delegate: Text {
text: modelData.firstName + " " + modelData.lastName
}
- }
+ }
}
//! [document]
diff --git a/src/doc/src/snippets/declarative/qml-documents/non-trivial.qml b/src/doc/src/snippets/declarative/qml-documents/non-trivial.qml
index 1c584b7a..77785582 100644
--- a/src/doc/src/snippets/declarative/qml-documents/non-trivial.qml
+++ b/src/doc/src/snippets/declarative/qml-documents/non-trivial.qml
@@ -42,7 +42,7 @@
import QtQuick 1.0
Rectangle {
- width: 240; height: 320;
+ width: 240; height: 320;
resources: [
Component {
@@ -57,6 +57,6 @@ Rectangle {
anchors.fill: parent
model: contactModel
delegate: contactDelegate
- }
+ }
}
//! [document]
diff --git a/src/doc/src/snippets/declarative/qml-documents/qmldocuments.qml b/src/doc/src/snippets/declarative/qml-documents/qmldocuments.qml
index d0ce29fd..25790855 100644
--- a/src/doc/src/snippets/declarative/qml-documents/qmldocuments.qml
+++ b/src/doc/src/snippets/declarative/qml-documents/qmldocuments.qml
@@ -45,7 +45,7 @@ Rectangle {
property alias text: textItem.text
width: 100; height: 30
- border.width: 1
+ border.width: 1
radius: 5
smooth: true
diff --git a/src/doc/src/snippets/declarative/qtbinding/functions-cpp/myclass.h b/src/doc/src/snippets/declarative/qtbinding/functions-cpp/myclass.h
index 35ef8a39..51e61d58 100644
--- a/src/doc/src/snippets/declarative/qtbinding/functions-cpp/myclass.h
+++ b/src/doc/src/snippets/declarative/qtbinding/functions-cpp/myclass.h
@@ -48,7 +48,7 @@ public:
Q_INVOKABLE void cppMethod(const QString &msg) {
qDebug() << "Called the C++ method with" << msg;
}
-
+
public slots:
void cppSlot(int number) {
qDebug() << "Called the C++ slot with" << number;
diff --git a/src/doc/src/snippets/declarative/qtobject.qml b/src/doc/src/snippets/declarative/qtobject.qml
index 15cc463c..14446921 100644
--- a/src/doc/src/snippets/declarative/qtobject.qml
+++ b/src/doc/src/snippets/declarative/qtobject.qml
@@ -41,7 +41,7 @@
import QtQuick 1.0
Item {
- QtObject {
+ QtObject {
id: attributes
property string name
property int size
diff --git a/src/doc/src/snippets/declarative/repeaters/repeater.qml b/src/doc/src/snippets/declarative/repeaters/repeater.qml
index 139cabec..586a75d7 100644
--- a/src/doc/src/snippets/declarative/repeaters/repeater.qml
+++ b/src/doc/src/snippets/declarative/repeaters/repeater.qml
@@ -48,7 +48,7 @@ Row {
Row {
Repeater {
model: 3
- Rectangle {
+ Rectangle {
width: 100; height: 40
border.width: 1
color: "yellow"
@@ -60,7 +60,7 @@ Row {
//! [index]
Column {
Repeater {
- model: 10
+ model: 10
Text { text: "I'm item " + index }
}
}
@@ -79,7 +79,7 @@ Column {
Row {
Rectangle { width: 10; height: 20; color: "red" }
Repeater {
- model: 10
+ model: 10
Rectangle { width: 20; height: 20; radius: 10; color: "green" }
}
Rectangle { width: 10; height: 20; color: "blue" }
diff --git a/src/doc/src/snippets/declarative/rotationanimation.qml b/src/doc/src/snippets/declarative/rotationanimation.qml
index ccf228b3..2f429503 100644
--- a/src/doc/src/snippets/declarative/rotationanimation.qml
+++ b/src/doc/src/snippets/declarative/rotationanimation.qml
@@ -50,9 +50,9 @@ Item {
color: "red"
smooth: true
- states: State {
+ states: State {
name: "rotated"
- PropertyChanges { target: rect; rotation: 180 }
+ PropertyChanges { target: rect; rotation: 180 }
}
transitions: Transition {
diff --git a/src/doc/src/snippets/declarative/row.qml b/src/doc/src/snippets/declarative/row.qml
index d8cb0eb1..328bd463 100644
--- a/src/doc/src/snippets/declarative/row.qml
+++ b/src/doc/src/snippets/declarative/row.qml
@@ -48,7 +48,7 @@ Rectangle {
Row {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
-
+
spacing: 5
Rectangle { width: 100; height: 100; radius: 20.0
diff --git a/src/doc/src/snippets/declarative/state.qml b/src/doc/src/snippets/declarative/state.qml
index f58ad1f0..26ab99f6 100644
--- a/src/doc/src/snippets/declarative/state.qml
+++ b/src/doc/src/snippets/declarative/state.qml
@@ -45,9 +45,9 @@ Rectangle {
width: 100; height: 100
color: "black"
- MouseArea {
+ MouseArea {
id: mouseArea
- anchors.fill: parent
+ anchors.fill: parent
onClicked: myRect.state == 'clicked' ? myRect.state = "" : myRect.state = 'clicked';
}
diff --git a/src/doc/src/snippets/declarative/transition-from-to.qml b/src/doc/src/snippets/declarative/transition-from-to.qml
index dd03364d..2ad6bb00 100644
--- a/src/doc/src/snippets/declarative/transition-from-to.qml
+++ b/src/doc/src/snippets/declarative/transition-from-to.qml
@@ -52,7 +52,7 @@ Rectangle {
PropertyChanges { target: rect; color: "yellow" }
}
- transitions: Transition {
+ transitions: Transition {
ColorAnimation { duration: 1000 }
}
}
diff --git a/src/doc/src/snippets/declarative/transition-reversible.qml b/src/doc/src/snippets/declarative/transition-reversible.qml
index fc9ed265..352a25f9 100644
--- a/src/doc/src/snippets/declarative/transition-reversible.qml
+++ b/src/doc/src/snippets/declarative/transition-reversible.qml
@@ -54,7 +54,7 @@ Rectangle {
}
//! [sequential animations]
- transitions: Transition {
+ transitions: Transition {
SequentialAnimation {
PropertyAnimation { property: "x"; duration: 1000 }
ColorAnimation { duration: 1000 }
diff --git a/src/doc/src/snippets/declarative/transition.qml b/src/doc/src/snippets/declarative/transition.qml
index 50480873..cd3c0936 100644
--- a/src/doc/src/snippets/declarative/transition.qml
+++ b/src/doc/src/snippets/declarative/transition.qml
@@ -55,8 +55,8 @@ Rectangle {
PropertyChanges { target: rect; x: 50; y: 50 }
}
- transitions: Transition {
- NumberAnimation { properties: "x,y"; easing.type: Easing.InOutQuad }
+ transitions: Transition {
+ NumberAnimation { properties: "x,y"; easing.type: Easing.InOutQuad }
}
}
//![0]
diff --git a/src/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml b/src/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml
index f4ab9895..a8f68776 100644
--- a/src/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml
+++ b/src/doc/src/snippets/declarative/visualdatamodel_rootindex/view.qml
@@ -55,7 +55,7 @@ ListView {
MouseArea {
anchors.fill: parent
onClicked: {
- if (model.hasModelChildren)
+ if (model.hasModelChildren)
view.model.rootIndex = view.model.modelIndex(index)
}
}