summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2011-01-07 14:00:39 (GMT)
committerJerome Pasion <jerome.pasion@nokia.com>2011-01-07 14:00:39 (GMT)
commite4d86f23f4c1b9a5f960c0cb912256375e1c771d (patch)
tree32580b0bdb811dfab516aa624c44f1b879a5c516 /doc/src/snippets/declarative
parent6374bc9790310b85299aab251d817aa2e5360d55 (diff)
downloadQt-e4d86f23f4c1b9a5f960c0cb912256375e1c771d.zip
Qt-e4d86f23f4c1b9a5f960c0cb912256375e1c771d.tar.gz
Qt-e4d86f23f4c1b9a5f960c0cb912256375e1c771d.tar.bz2
Added content and snippet code to Basic Elements overview page.
Task-number: QTBUG-16071
Diffstat (limited to 'doc/src/snippets/declarative')
-rw-r--r--doc/src/snippets/declarative/focus/focusscopewidget.qml2
-rw-r--r--doc/src/snippets/declarative/focus/myfocusscopewidget.qml4
-rw-r--r--doc/src/snippets/declarative/focus/mywidget.qml2
3 files changed, 6 insertions, 2 deletions
diff --git a/doc/src/snippets/declarative/focus/focusscopewidget.qml b/doc/src/snippets/declarative/focus/focusscopewidget.qml
index 48e5750..3e35ec5 100644
--- a/doc/src/snippets/declarative/focus/focusscopewidget.qml
+++ b/doc/src/snippets/declarative/focus/focusscopewidget.qml
@@ -37,6 +37,7 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+//! [document]
import QtQuick 1.0
//! [focusscope window]
@@ -59,3 +60,4 @@ Rectangle {
}
//! [focusscope window]
+//! [document]
diff --git a/doc/src/snippets/declarative/focus/myfocusscopewidget.qml b/doc/src/snippets/declarative/focus/myfocusscopewidget.qml
index 231ae3a..cec4462 100644
--- a/doc/src/snippets/declarative/focus/myfocusscopewidget.qml
+++ b/doc/src/snippets/declarative/focus/myfocusscopewidget.qml
@@ -37,12 +37,13 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+//! [document]
import QtQuick 1.0
//! [widget in focusscope]
FocusScope {
- //FocusScope needs to bind to visual properties of the children
+ //FocusScope needs to bind to visual properties of the Rectangle
property alias color: rectangle.color
x: rectangle.x; y: rectangle.y
width: rectangle.width; height: rectangle.height
@@ -64,3 +65,4 @@ FocusScope {
}
}
//! [widget in focusscope]
+//! [document]
diff --git a/doc/src/snippets/declarative/focus/mywidget.qml b/doc/src/snippets/declarative/focus/mywidget.qml
index bea723d..e0b22a1 100644
--- a/doc/src/snippets/declarative/focus/mywidget.qml
+++ b/doc/src/snippets/declarative/focus/mywidget.qml
@@ -37,10 +37,10 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+//! [document]
import QtQuick 1.0
//! [mywidget]
-//MyWidget code
Rectangle {
id: widget
color: "lightsteelblue"; width: 175; height: 25; radius: 10; smooth: true