aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/extras
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-23 13:21:14 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-06-23 13:59:52 +0000
commita7a5cf66eeee8754e9a8e156396d1540fc2c2c85 (patch)
treed40c34abfd3d0ade0b1add81f00699fbdc6d5555 /src/imports/extras
parenta6bcd2624533ed00ce5cc1dd50ffbb042be5cb93 (diff)
Docs: Customizing Qt Quick Controls 2
Change-Id: I6fa85e9fa9a2f7c98ec751786271a60c6c050db5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/extras')
-rw-r--r--src/imports/extras/Drawer.qml2
-rw-r--r--src/imports/extras/SwipeView.qml2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/extras/Drawer.qml b/src/imports/extras/Drawer.qml
index a62a3d14..421cdc93 100644
--- a/src/imports/extras/Drawer.qml
+++ b/src/imports/extras/Drawer.qml
@@ -44,10 +44,12 @@ AbstractDrawer {
width: parent.width // TODO: Window.width
height: parent.height // TODO: Window.height
+ //! [background]
background: Rectangle {
color: control.Theme.shadowColor
opacity: position * control.Theme.disabledOpacity
}
+ //! [background]
// TODO: make this a proper transition
animation: SmoothedAnimation {
diff --git a/src/imports/extras/SwipeView.qml b/src/imports/extras/SwipeView.qml
index 6e88bcfc..da358c4e 100644
--- a/src/imports/extras/SwipeView.qml
+++ b/src/imports/extras/SwipeView.qml
@@ -49,6 +49,7 @@ AbstractSwipeView {
Accessible.role: Accessible.PageTabList
+ //! [contentItem]
contentItem: ListView {
id: listView
@@ -69,4 +70,5 @@ AbstractSwipeView {
model: control.model
}
+ //! [contentItem]
}