summaryrefslogtreecommitdiffstats
path: root/doc/src/getting-started/gettingstartedqml.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/getting-started/gettingstartedqml.qdoc')
-rw-r--r--doc/src/getting-started/gettingstartedqml.qdoc11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/src/getting-started/gettingstartedqml.qdoc b/doc/src/getting-started/gettingstartedqml.qdoc
index 14d0db073..cd6cedf16 100644
--- a/doc/src/getting-started/gettingstartedqml.qdoc
+++ b/doc/src/getting-started/gettingstartedqml.qdoc
@@ -168,6 +168,7 @@
}
MouseArea{
+ id: buttonMouseArea
onClicked: buttonClick()
hoverEnabled: true
onEntered: parent.border.color = onHoverColor
@@ -231,9 +232,9 @@
\c FileMenu.qml.
\code
- import QtQuick 2.3 \\ Import the main Qt QML module
- import "folderName" \\ import the contents of a folder
- import "script.js" as Script \\ Import a Javascript file and name it as Script
+ import QtQuick 2.3 // Import the main Qt QML module
+ import "folderName" // import the contents of a folder
+ import "script.js" as Script // Import a Javascript file and name it as Script
\endcode
The syntax shown above shows how to use the \c import keyword. This is required to
@@ -366,14 +367,14 @@
Additionally, \c ListView inherits from \l Flickable, making the list respond
to mouse drags and other gestures. The last portion of the code above sets
\c Flickable properties to create the desired flicking movement to our view.
- In particular,the property \c highlightMoveDuration changes the duration of
+ In particular, the property \c highlightMoveDuration changes the duration of
the flick transition. A higher \c highlightMoveDuration value results in
slower menu switching.
The \c ListView maintains the model items through an \c index and each visual
item in the model is accessible through the \c index, in the order of the
declaration. Changing the \c currentIndex effectively changes the highlighted
- item in the \c ListView. The header of our menu bar exemplify this effect.
+ item in the \c ListView. The header of our menu bar exemplifies this effect.
There are two buttons in a row, both changing the current menu when clicked.
The \c fileButton changes the current menu to the file menu when clicked,
the \c index being \c 0 because \c FileMenu is declared first in the