summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/declarative/models/views-models-delegates.qml2
-rw-r--r--doc/src/snippets/declarative/models/visual-model-and-view.qml2
-rw-r--r--doc/src/snippets/declarative/mousearea/mousearea-snippet.qml6
3 files changed, 7 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/models/views-models-delegates.qml b/doc/src/snippets/declarative/models/views-models-delegates.qml
index 65775811..4f4c0c07 100644
--- a/doc/src/snippets/declarative/models/views-models-delegates.qml
+++ b/doc/src/snippets/declarative/models/views-models-delegates.qml
@@ -38,6 +38,8 @@
**
****************************************************************************/
+import QtQuick 1.0
+
//! [rectangle]
Rectangle {
width: 200; height: 200
diff --git a/doc/src/snippets/declarative/models/visual-model-and-view.qml b/doc/src/snippets/declarative/models/visual-model-and-view.qml
index b53081ea..d78bbea3 100644
--- a/doc/src/snippets/declarative/models/visual-model-and-view.qml
+++ b/doc/src/snippets/declarative/models/visual-model-and-view.qml
@@ -38,6 +38,8 @@
**
****************************************************************************/
+import QtQuick 1.0
+
Rectangle {
width: 200; height: 200
diff --git a/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml b/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
index 2f704979..26a414d4 100644
--- a/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
+++ b/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
@@ -50,7 +50,7 @@ Rectangle {
Column {
//! [anchor fill]
Rectangle {
- id: button
+ id: button1
width: 100; height: 100
MouseArea {
@@ -65,7 +65,7 @@ Rectangle {
//! [anchor fill]
Rectangle {
- id: button
+ id: button2
width: 100; height: 100
//! [enable handlers]
@@ -79,7 +79,7 @@ Rectangle {
}
Rectangle {
- id: button
+ id: button3
width: 100; height: 100
//! [mouse handlers]