aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2012-05-07 13:06:02 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-09 00:56:16 +0200
commit727180c98472d94ec393e8fb15bb0938ddacb2a0 (patch)
tree04426756896b1ec840f7f68bdcca8451bd09644c /doc/src
parent0b1ab6ba5553ecd0ba485d0d4a1aead83482fb46 (diff)
Doc: Moving Qt Quick docs for new doc structure
-moved documentation from doc/src/qtquick2 doc/src/localstorage doc/src/particles to src/quick/doc/ -fixed qdocconf file -fixed snippets, images, and other qdoc errors related to the new directories -fixed links in the main Qt Quick page Change-Id: Ie3408c2624f623c17de07e5635d5c7284d02b973 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/images/3d-rotation-axis.pngbin11078 -> 0 bytes
-rw-r--r--doc/src/images/ListViewHorizontal.pngbin5802 -> 0 bytes
-rw-r--r--doc/src/images/anchorchanges.pngbin566 -> 0 bytes
-rw-r--r--doc/src/images/animatedimageitem.gifbin9997 -> 0 bytes
-rw-r--r--doc/src/images/axisrotation.pngbin8891 -> 0 bytes
-rw-r--r--doc/src/images/declarative-anchors_example.pngbin3654 -> 0 bytes
-rw-r--r--doc/src/images/declarative-anchors_example2.pngbin3819 -> 0 bytes
-rw-r--r--doc/src/images/declarative-arcdirection.pngbin8422 -> 0 bytes
-rw-r--r--doc/src/images/declarative-arcradius.pngbin4535 -> 0 bytes
-rw-r--r--doc/src/images/declarative-gridmesh.pngbin9349 -> 0 bytes
-rw-r--r--doc/src/images/declarative-item_opacity1.pngbin464 -> 0 bytes
-rw-r--r--doc/src/images/declarative-item_opacity2.pngbin464 -> 0 bytes
-rw-r--r--doc/src/images/declarative-item_stacking1.pngbin460 -> 0 bytes
-rw-r--r--doc/src/images/declarative-item_stacking2.pngbin461 -> 0 bytes
-rw-r--r--doc/src/images/declarative-item_stacking3.pngbin464 -> 0 bytes
-rw-r--r--doc/src/images/declarative-item_stacking4.pngbin463 -> 0 bytes
-rw-r--r--doc/src/images/declarative-largearc.pngbin8340 -> 0 bytes
-rw-r--r--doc/src/images/declarative-nopercent.pngbin553 -> 0 bytes
-rw-r--r--doc/src/images/declarative-patharc.pngbin4827 -> 0 bytes
-rw-r--r--doc/src/images/declarative-pathattribute.pngbin7207 -> 0 bytes
-rw-r--r--doc/src/images/declarative-pathcubic.pngbin1261 -> 0 bytes
-rw-r--r--doc/src/images/declarative-pathcurve.pngbin6092 -> 0 bytes
-rw-r--r--doc/src/images/declarative-pathquad.pngbin1517 -> 0 bytes
-rw-r--r--doc/src/images/declarative-pathsvg.pngbin4233 -> 0 bytes
-rw-r--r--doc/src/images/declarative-percent.pngbin530 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qmlfocus1.pngbin1890 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qmlfocus2.pngbin2756 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qmlfocus3.pngbin2743 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qmlfocus4.pngbin4137 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qmlfocus5.pngbin1376 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo-preserveaspectcrop.pngbin6440 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo-preserveaspectfit.pngbin4076 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo-stretch.pngbin5584 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo-tile.pngbin3940 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo-tilehorizontally.pngbin5544 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo-tilevertically.pngbin6288 -> 0 bytes
-rw-r--r--doc/src/images/declarative-qtlogo.pngbin3436 -> 0 bytes
-rw-r--r--doc/src/images/declarative-rect.pngbin674 -> 0 bytes
-rw-r--r--doc/src/images/declarative-rect_gradient.pngbin873 -> 0 bytes
-rw-r--r--doc/src/images/declarative-rotation.pngbin667 -> 0 bytes
-rw-r--r--doc/src/images/declarative-scale.pngbin336 -> 0 bytes
-rw-r--r--doc/src/images/declarative-scalegrid.pngbin4228 -> 0 bytes
-rw-r--r--doc/src/images/declarative-shadereffectitem.pngbin6557 -> 0 bytes
-rw-r--r--doc/src/images/declarative-shadereffectsource.pngbin1133 -> 0 bytes
-rw-r--r--doc/src/images/declarative-text.pngbin3289 -> 0 bytes
-rw-r--r--doc/src/images/declarative-textedit.gifbin15286 -> 0 bytes
-rw-r--r--doc/src/images/declarative-textformat.pngbin11498 -> 0 bytes
-rw-r--r--doc/src/images/declarative-textstyle.pngbin6825 -> 0 bytes
-rw-r--r--doc/src/images/declarative-transformorigin.pngbin8927 -> 0 bytes
-rw-r--r--doc/src/images/edge1.pngbin3423 -> 0 bytes
-rw-r--r--doc/src/images/edge2.pngbin3436 -> 0 bytes
-rw-r--r--doc/src/images/edge3.pngbin3854 -> 0 bytes
-rw-r--r--doc/src/images/edge4.pngbin5152 -> 0 bytes
-rw-r--r--doc/src/images/edges_qml.pngbin21731 -> 0 bytes
-rw-r--r--doc/src/images/flickable.gifbin185221 -> 0 bytes
-rw-r--r--doc/src/images/flipable.gifbin131710 -> 0 bytes
-rw-r--r--doc/src/images/gridLayout_example.pngbin437 -> 0 bytes
-rw-r--r--doc/src/images/gridview-highlight.pngbin11806 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-lefttoright-ltr-btt.pngbin8722 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-lefttoright-ltr-ttb.pngbin7727 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-lefttoright-rtl-btt.pngbin8725 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-lefttoright-rtl-ttb.pngbin8693 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-toptobottom-ltr-btt.pngbin8746 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-toptobottom-ltr-ttb.pngbin8655 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-toptobottom-rtl-btt.pngbin8746 -> 0 bytes
-rw-r--r--doc/src/images/gridview-layout-toptobottom-rtl-ttb.pngbin7657 -> 0 bytes
-rw-r--r--doc/src/images/gridview-simple.pngbin10149 -> 0 bytes
-rw-r--r--doc/src/images/horizontalpositioner_example.pngbin292 -> 0 bytes
-rw-r--r--doc/src/images/imageprovider.pngbin420 -> 0 bytes
-rw-r--r--doc/src/images/layoutmirroring.pngbin2542 -> 0 bytes
-rw-r--r--doc/src/images/listview-decorations.pngbin12131 -> 0 bytes
-rw-r--r--doc/src/images/listview-highlight.pngbin5918 -> 0 bytes
-rw-r--r--doc/src/images/listview-layout-bottomtotop.pngbin5620 -> 0 bytes
-rw-r--r--doc/src/images/listview-layout-lefttoright.pngbin5859 -> 0 bytes
-rw-r--r--doc/src/images/listview-layout-righttoleft.pngbin5840 -> 0 bytes
-rw-r--r--doc/src/images/listview-layout-toptobottom.pngbin5587 -> 0 bytes
-rw-r--r--doc/src/images/listview-section.pngbin11053 -> 0 bytes
-rw-r--r--doc/src/images/listview-setup.pngbin7117 -> 0 bytes
-rw-r--r--doc/src/images/listview-simple.pngbin5351 -> 0 bytes
-rw-r--r--doc/src/images/margins_qml.pngbin18476 -> 0 bytes
-rw-r--r--doc/src/images/modelview-overview.pngbin15042 -> 0 bytes
-rw-r--r--doc/src/images/parentchange.pngbin509 -> 0 bytes
-rw-r--r--doc/src/images/pathview.gifbin90512 -> 0 bytes
-rw-r--r--doc/src/images/positioner-example.pngbin7020 -> 0 bytes
-rw-r--r--doc/src/images/propanim.gifbin74909 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inback.pngbin2808 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inbounce.pngbin3154 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-incirc.pngbin2605 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-incubic.pngbin2722 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inelastic.pngbin3304 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inexpo.pngbin2675 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutback.pngbin3241 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutbounce.pngbin3386 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutcirc.pngbin2843 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutcubic.pngbin2931 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutelastic.pngbin3461 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutexpo.pngbin3004 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutquad.pngbin2893 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutquart.pngbin2925 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutquint.pngbin2823 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inoutsine.pngbin2891 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inquad.pngbin2733 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inquart.pngbin2727 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-inquint.pngbin2630 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-insine.pngbin2567 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-linear.pngbin2318 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outback.pngbin2852 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outbounce.pngbin3360 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outcirc.pngbin2796 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outcubic.pngbin2792 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outelastic.pngbin3423 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outexpo.pngbin2803 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinback.pngbin3026 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinbounce.pngbin3629 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outincirc.pngbin2822 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outincubic.pngbin2872 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinelastic.pngbin3941 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinexpo.pngbin2923 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinquad.pngbin2858 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinquart.pngbin2830 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinquint.pngbin2724 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outinsine.pngbin2817 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outquad.pngbin2760 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outquart.pngbin2764 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outquint.pngbin2687 -> 0 bytes
-rw-r--r--doc/src/images/qeasingcurve-outsine.pngbin2773 -> 0 bytes
-rw-r--r--doc/src/images/qml-borderimage-normal-image.pngbin5282 -> 0 bytes
-rw-r--r--doc/src/images/qml-borderimage-scaled.pngbin5580 -> 0 bytes
-rw-r--r--doc/src/images/qml-borderimage-tiled.pngbin5889 -> 0 bytes
-rw-r--r--doc/src/images/qml-clocks-example.pngbin40742 -> 0 bytes
-rw-r--r--doc/src/images/qml-column.pngbin6264 -> 0 bytes
-rw-r--r--doc/src/images/qml-extending-types.pngbin738 -> 0 bytes
-rw-r--r--doc/src/images/qml-flow-snippet.pngbin11465 -> 0 bytes
-rw-r--r--doc/src/images/qml-flow-text1.pngbin9647 -> 0 bytes
-rw-r--r--doc/src/images/qml-flow-text2.pngbin10870 -> 0 bytes
-rw-r--r--doc/src/images/qml-gradient.pngbin364 -> 0 bytes
-rw-r--r--doc/src/images/qml-grid-no-spacing.pngbin416 -> 0 bytes
-rw-r--r--doc/src/images/qml-grid-spacing.pngbin421 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-arcTo.pngbin8917 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-arcTo2.pngbin6532 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-bezierCurveTo.pngbin1261 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-context.gifbin4473 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-math-rotate.pngbin3206 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-math.pngbin1961 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-rotate.pngbin8238 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-scale.pngbin4988 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-scalex.pngbin1023 -> 0 bytes
-rw-r--r--doc/src/images/qml-item-canvas-startAngle.pngbin10254 -> 0 bytes
-rw-r--r--doc/src/images/qml-listview-sections-example.pngbin5491 -> 0 bytes
-rw-r--r--doc/src/images/qml-mousearea-snippet.pngbin780 -> 0 bytes
-rw-r--r--doc/src/images/qml-repeater-grid-index.pngbin17964 -> 0 bytes
-rw-r--r--doc/src/images/qml-row.pngbin3090 -> 0 bytes
-rw-r--r--doc/src/images/qmldesigner-visual-editor.pngbin102238 -> 0 bytes
-rw-r--r--doc/src/images/qtcreator-target-selector.pngbin36463 -> 0 bytes
-rw-r--r--doc/src/images/rect-border-width.pngbin374 -> 0 bytes
-rw-r--r--doc/src/images/rect-color.pngbin570 -> 0 bytes
-rw-r--r--doc/src/images/rect-smooth.pngbin24241 -> 0 bytes
-rw-r--r--doc/src/images/repeater-index.pngbin3024 -> 0 bytes
-rw-r--r--doc/src/images/repeater-modeldata.pngbin3394 -> 0 bytes
-rw-r--r--doc/src/images/repeater-simple.pngbin404 -> 0 bytes
-rw-r--r--doc/src/images/repeater.pngbin800 -> 0 bytes
-rw-r--r--doc/src/images/translate.pngbin398 -> 0 bytes
-rw-r--r--doc/src/images/verticalpositioner_example.pngbin385 -> 0 bytes
-rw-r--r--doc/src/images/verticalpositioner_transition.gifbin12641 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-basic.gifbin49932 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-delayedbyindex.gifbin69623 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-intermediatemove.gifbin109530 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-interruptedbad.gifbin30112 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-interruptedgood.gifbin38076 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-pathanim.gifbin43741 -> 0 bytes
-rw-r--r--doc/src/images/viewtransitions-scriptactionbad.gifbin49200 -> 0 bytes
-rw-r--r--doc/src/images/visualitemmodel.pngbin347 -> 0 bytes
-rw-r--r--doc/src/particles/particles.qdoc154
-rw-r--r--doc/src/snippets/qml/anchoranimation.qml66
-rw-r--r--doc/src/snippets/qml/anchorchanges.qml68
-rw-r--r--doc/src/snippets/qml/animatedimage.qml61
-rw-r--r--doc/src/snippets/qml/animation.qml226
-rw-r--r--doc/src/snippets/qml/behavior.qml58
-rw-r--r--doc/src/snippets/qml/borderimage/borderimage-scaled.qml81
-rw-r--r--doc/src/snippets/qml/borderimage/borderimage-tiled.qml81
-rw-r--r--doc/src/snippets/qml/borderimage/normal-image.qml77
-rw-r--r--doc/src/snippets/qml/coloranimation.qml51
-rw-r--r--doc/src/snippets/qml/column/column-transitions.qml58
-rw-r--r--doc/src/snippets/qml/column/column.qml67
-rw-r--r--doc/src/snippets/qml/column/vertical-positioner.qml51
-rw-r--r--doc/src/snippets/qml/drag.qml75
-rw-r--r--doc/src/snippets/qml/flickable.qml50
-rw-r--r--doc/src/snippets/qml/flickableScrollbar.qml66
-rw-r--r--doc/src/snippets/qml/flipable/flipable.qml78
-rw-r--r--doc/src/snippets/qml/flow.qml64
-rw-r--r--doc/src/snippets/qml/focus/MyClickableWidget.qml69
-rw-r--r--doc/src/snippets/qml/focus/MyWidget.qml58
-rw-r--r--doc/src/snippets/qml/focus/advancedFocus.qml67
-rw-r--r--doc/src/snippets/qml/focus/basicwidget.qml59
-rw-r--r--doc/src/snippets/qml/focus/clickablewidget.qml61
-rw-r--r--doc/src/snippets/qml/focus/myfocusscopewidget.qml68
-rw-r--r--doc/src/snippets/qml/focus/rectangle.qml62
-rw-r--r--doc/src/snippets/qml/focus/widget.qml61
-rw-r--r--doc/src/snippets/qml/gradient.qml52
-rw-r--r--doc/src/snippets/qml/grid-spacing.qml60
-rw-r--r--doc/src/snippets/qml/grid/grid.qml53
-rw-r--r--doc/src/snippets/qml/gridview/ContactModel.qml63
-rw-r--r--doc/src/snippets/qml/gridview/gridview.qml163
-rw-r--r--doc/src/snippets/qml/image.qml47
-rw-r--r--doc/src/snippets/qml/keynavigation.qml84
-rw-r--r--doc/src/snippets/qml/keys/keys-handler.qml60
-rw-r--r--doc/src/snippets/qml/keys/keys-pressed.qml65
-rw-r--r--doc/src/snippets/qml/layoutmirroring.qml71
-rw-r--r--doc/src/snippets/qml/listview-decorations.qml111
-rw-r--r--doc/src/snippets/qml/listview-sections.qml101
-rw-r--r--doc/src/snippets/qml/listview.qml87
-rw-r--r--doc/src/snippets/qml/listview/ContactModel.qml58
-rw-r--r--doc/src/snippets/qml/listview/listview.qml149
-rw-r--r--doc/src/snippets/qml/loader/KeyReader.qml53
-rw-r--r--doc/src/snippets/qml/loader/MyItem.qml55
-rw-r--r--doc/src/snippets/qml/loader/connections.qml57
-rw-r--r--doc/src/snippets/qml/loader/focus.qml62
-rw-r--r--doc/src/snippets/qml/loader/simple.qml54
-rw-r--r--doc/src/snippets/qml/loader/sizeitem.qml62
-rw-r--r--doc/src/snippets/qml/loader/sizeloader.qml62
-rw-r--r--doc/src/snippets/qml/models/views-models-delegates.qml79
-rw-r--r--doc/src/snippets/qml/models/visual-model-and-view.qml58
-rw-r--r--doc/src/snippets/qml/mousearea/mousearea-snippet.qml98
-rw-r--r--doc/src/snippets/qml/mousearea/mousearea.qml117
-rw-r--r--doc/src/snippets/qml/mousearea/mouseareadragfilter.qml72
-rw-r--r--doc/src/snippets/qml/multipointtoucharea/multipointtoucharea.qml67
-rw-r--r--doc/src/snippets/qml/numberanimation.qml51
-rw-r--r--doc/src/snippets/qml/parallelanimation.qml56
-rw-r--r--doc/src/snippets/qml/parentanimation.qml73
-rw-r--r--doc/src/snippets/qml/parentchange.qml67
-rw-r--r--doc/src/snippets/qml/path/arcdirection.qml51
-rw-r--r--doc/src/snippets/qml/path/arcradius.qml63
-rw-r--r--doc/src/snippets/qml/path/basicarc.qml52
-rw-r--r--doc/src/snippets/qml/path/basiccurve.qml63
-rw-r--r--doc/src/snippets/qml/path/largearc.qml51
-rw-r--r--doc/src/snippets/qml/pathinterpolator.qml74
-rw-r--r--doc/src/snippets/qml/pathview/ContactModel.qml58
-rw-r--r--doc/src/snippets/qml/pathview/pathattributes.qml79
-rw-r--r--doc/src/snippets/qml/pathview/pathview.qml80
-rw-r--r--doc/src/snippets/qml/propertyaction-sequential.qml72
-rw-r--r--doc/src/snippets/qml/propertyaction.qml83
-rw-r--r--doc/src/snippets/qml/propertyanimation.qml100
-rw-r--r--doc/src/snippets/qml/propertychanges.qml91
-rw-r--r--doc/src/snippets/qml/qml-data-models/dynamic-listmodel.qml67
-rw-r--r--doc/src/snippets/qml/qml-data-models/listelements.qml77
-rw-r--r--doc/src/snippets/qml/qml-data-models/listmodel-listview.qml64
-rw-r--r--doc/src/snippets/qml/rectangle/rect-border-width.qml59
-rw-r--r--doc/src/snippets/qml/rectangle/rectangle-colors.qml62
-rw-r--r--doc/src/snippets/qml/rectangle/rectangle-gradient.qml74
-rw-r--r--doc/src/snippets/qml/rectangle/rectangle.qml52
-rw-r--r--doc/src/snippets/qml/repeaters/repeater-grid-index.qml61
-rw-r--r--doc/src/snippets/qml/repeaters/repeater.qml89
-rw-r--r--doc/src/snippets/qml/righttoleft.qml149
-rw-r--r--doc/src/snippets/qml/rotation.qml69
-rw-r--r--doc/src/snippets/qml/rotationanimation.qml66
-rw-r--r--doc/src/snippets/qml/row.qml62
-rw-r--r--doc/src/snippets/qml/row/row.qml50
-rw-r--r--doc/src/snippets/qml/sequentialanimation.qml56
-rw-r--r--doc/src/snippets/qml/smoothedanimation.qml69
-rw-r--r--doc/src/snippets/qml/springanimation.qml65
-rw-r--r--doc/src/snippets/qml/state-when.qml54
-rw-r--r--doc/src/snippets/qml/state.qml61
-rw-r--r--doc/src/snippets/qml/states.qml121
-rw-r--r--doc/src/snippets/qml/states/statechangescript.qml63
-rw-r--r--doc/src/snippets/qml/systempalette.qml54
-rw-r--r--doc/src/snippets/qml/text/onLinkActivated.qml54
-rw-r--r--doc/src/snippets/qml/texthandling.qml89
-rw-r--r--doc/src/snippets/qml/transition-from-to-modified.qml60
-rw-r--r--doc/src/snippets/qml/transition-from-to.qml59
-rw-r--r--doc/src/snippets/qml/transition-reversible.qml66
-rw-r--r--doc/src/snippets/qml/transition.qml63
-rw-r--r--doc/src/snippets/qml/transitions-list.qml89
-rw-r--r--doc/src/snippets/qml/visualdatagroup.qml81
-rw-r--r--doc/src/snippets/qml/visualdatamodel.qml64
-rw-r--r--doc/src/snippets/qml/visualdatamodel_rootindex/main.cpp62
-rw-r--r--doc/src/snippets/qml/visualdatamodel_rootindex/view.qml65
276 files changed, 0 insertions, 7517 deletions
diff --git a/doc/src/images/3d-rotation-axis.png b/doc/src/images/3d-rotation-axis.png
deleted file mode 100644
index b9402156f0..0000000000
--- a/doc/src/images/3d-rotation-axis.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/ListViewHorizontal.png b/doc/src/images/ListViewHorizontal.png
deleted file mode 100644
index 4633a0e151..0000000000
--- a/doc/src/images/ListViewHorizontal.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/anchorchanges.png b/doc/src/images/anchorchanges.png
deleted file mode 100644
index 4973e4e9aa..0000000000
--- a/doc/src/images/anchorchanges.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/animatedimageitem.gif b/doc/src/images/animatedimageitem.gif
deleted file mode 100644
index 85c3cb5609..0000000000
--- a/doc/src/images/animatedimageitem.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/axisrotation.png b/doc/src/images/axisrotation.png
deleted file mode 100644
index 4cddcdfcaf..0000000000
--- a/doc/src/images/axisrotation.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-anchors_example.png b/doc/src/images/declarative-anchors_example.png
deleted file mode 100644
index 293cd4b362..0000000000
--- a/doc/src/images/declarative-anchors_example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-anchors_example2.png b/doc/src/images/declarative-anchors_example2.png
deleted file mode 100644
index 6d3be7d05d..0000000000
--- a/doc/src/images/declarative-anchors_example2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-arcdirection.png b/doc/src/images/declarative-arcdirection.png
deleted file mode 100644
index 28f4dc2e51..0000000000
--- a/doc/src/images/declarative-arcdirection.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-arcradius.png b/doc/src/images/declarative-arcradius.png
deleted file mode 100644
index 9b25a9f3f8..0000000000
--- a/doc/src/images/declarative-arcradius.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-gridmesh.png b/doc/src/images/declarative-gridmesh.png
deleted file mode 100644
index 6007d3b9e3..0000000000
--- a/doc/src/images/declarative-gridmesh.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-item_opacity1.png b/doc/src/images/declarative-item_opacity1.png
deleted file mode 100644
index cde973be8d..0000000000
--- a/doc/src/images/declarative-item_opacity1.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-item_opacity2.png b/doc/src/images/declarative-item_opacity2.png
deleted file mode 100644
index 8627360717..0000000000
--- a/doc/src/images/declarative-item_opacity2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-item_stacking1.png b/doc/src/images/declarative-item_stacking1.png
deleted file mode 100644
index 18f41484e5..0000000000
--- a/doc/src/images/declarative-item_stacking1.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-item_stacking2.png b/doc/src/images/declarative-item_stacking2.png
deleted file mode 100644
index 7a71bcd36d..0000000000
--- a/doc/src/images/declarative-item_stacking2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-item_stacking3.png b/doc/src/images/declarative-item_stacking3.png
deleted file mode 100644
index cde973be8d..0000000000
--- a/doc/src/images/declarative-item_stacking3.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-item_stacking4.png b/doc/src/images/declarative-item_stacking4.png
deleted file mode 100644
index 3fdf627f1a..0000000000
--- a/doc/src/images/declarative-item_stacking4.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-largearc.png b/doc/src/images/declarative-largearc.png
deleted file mode 100644
index 9bb94b362e..0000000000
--- a/doc/src/images/declarative-largearc.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-nopercent.png b/doc/src/images/declarative-nopercent.png
deleted file mode 100644
index 28b00a91e7..0000000000
--- a/doc/src/images/declarative-nopercent.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-patharc.png b/doc/src/images/declarative-patharc.png
deleted file mode 100644
index 81c9b803e5..0000000000
--- a/doc/src/images/declarative-patharc.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-pathattribute.png b/doc/src/images/declarative-pathattribute.png
deleted file mode 100644
index 57cd049e04..0000000000
--- a/doc/src/images/declarative-pathattribute.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-pathcubic.png b/doc/src/images/declarative-pathcubic.png
deleted file mode 100644
index ffbca5d91e..0000000000
--- a/doc/src/images/declarative-pathcubic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-pathcurve.png b/doc/src/images/declarative-pathcurve.png
deleted file mode 100644
index c585cff0f0..0000000000
--- a/doc/src/images/declarative-pathcurve.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-pathquad.png b/doc/src/images/declarative-pathquad.png
deleted file mode 100644
index 65f199974f..0000000000
--- a/doc/src/images/declarative-pathquad.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-pathsvg.png b/doc/src/images/declarative-pathsvg.png
deleted file mode 100644
index 949149e722..0000000000
--- a/doc/src/images/declarative-pathsvg.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-percent.png b/doc/src/images/declarative-percent.png
deleted file mode 100644
index c277055299..0000000000
--- a/doc/src/images/declarative-percent.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qmlfocus1.png b/doc/src/images/declarative-qmlfocus1.png
deleted file mode 100644
index 317b34b1bf..0000000000
--- a/doc/src/images/declarative-qmlfocus1.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qmlfocus2.png b/doc/src/images/declarative-qmlfocus2.png
deleted file mode 100644
index e3f96431b7..0000000000
--- a/doc/src/images/declarative-qmlfocus2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qmlfocus3.png b/doc/src/images/declarative-qmlfocus3.png
deleted file mode 100644
index a5897ce98f..0000000000
--- a/doc/src/images/declarative-qmlfocus3.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qmlfocus4.png b/doc/src/images/declarative-qmlfocus4.png
deleted file mode 100644
index f2e64cdc33..0000000000
--- a/doc/src/images/declarative-qmlfocus4.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qmlfocus5.png b/doc/src/images/declarative-qmlfocus5.png
deleted file mode 100644
index ec7307bd0b..0000000000
--- a/doc/src/images/declarative-qmlfocus5.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo-preserveaspectcrop.png b/doc/src/images/declarative-qtlogo-preserveaspectcrop.png
deleted file mode 100644
index 64fb086fac..0000000000
--- a/doc/src/images/declarative-qtlogo-preserveaspectcrop.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo-preserveaspectfit.png b/doc/src/images/declarative-qtlogo-preserveaspectfit.png
deleted file mode 100644
index 2585fa5f5f..0000000000
--- a/doc/src/images/declarative-qtlogo-preserveaspectfit.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo-stretch.png b/doc/src/images/declarative-qtlogo-stretch.png
deleted file mode 100644
index 32a0114e4e..0000000000
--- a/doc/src/images/declarative-qtlogo-stretch.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo-tile.png b/doc/src/images/declarative-qtlogo-tile.png
deleted file mode 100644
index 7d1b9d0485..0000000000
--- a/doc/src/images/declarative-qtlogo-tile.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo-tilehorizontally.png b/doc/src/images/declarative-qtlogo-tilehorizontally.png
deleted file mode 100644
index 367a8c7d0b..0000000000
--- a/doc/src/images/declarative-qtlogo-tilehorizontally.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo-tilevertically.png b/doc/src/images/declarative-qtlogo-tilevertically.png
deleted file mode 100644
index 68afafa8c3..0000000000
--- a/doc/src/images/declarative-qtlogo-tilevertically.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-qtlogo.png b/doc/src/images/declarative-qtlogo.png
deleted file mode 100644
index 940d159ae4..0000000000
--- a/doc/src/images/declarative-qtlogo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-rect.png b/doc/src/images/declarative-rect.png
deleted file mode 100644
index 173759ae57..0000000000
--- a/doc/src/images/declarative-rect.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-rect_gradient.png b/doc/src/images/declarative-rect_gradient.png
deleted file mode 100644
index f79d579bec..0000000000
--- a/doc/src/images/declarative-rect_gradient.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-rotation.png b/doc/src/images/declarative-rotation.png
deleted file mode 100644
index b4031f5ae2..0000000000
--- a/doc/src/images/declarative-rotation.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-scale.png b/doc/src/images/declarative-scale.png
deleted file mode 100644
index bab729e216..0000000000
--- a/doc/src/images/declarative-scale.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-scalegrid.png b/doc/src/images/declarative-scalegrid.png
deleted file mode 100644
index 32d8712568..0000000000
--- a/doc/src/images/declarative-scalegrid.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-shadereffectitem.png b/doc/src/images/declarative-shadereffectitem.png
deleted file mode 100644
index 2c8e8447e7..0000000000
--- a/doc/src/images/declarative-shadereffectitem.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-shadereffectsource.png b/doc/src/images/declarative-shadereffectsource.png
deleted file mode 100644
index 86d6d1ea35..0000000000
--- a/doc/src/images/declarative-shadereffectsource.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-text.png b/doc/src/images/declarative-text.png
deleted file mode 100644
index c1a4112500..0000000000
--- a/doc/src/images/declarative-text.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-textedit.gif b/doc/src/images/declarative-textedit.gif
deleted file mode 100644
index 7186eb9f4f..0000000000
--- a/doc/src/images/declarative-textedit.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-textformat.png b/doc/src/images/declarative-textformat.png
deleted file mode 100644
index ade1b45429..0000000000
--- a/doc/src/images/declarative-textformat.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-textstyle.png b/doc/src/images/declarative-textstyle.png
deleted file mode 100644
index 858c1bcbff..0000000000
--- a/doc/src/images/declarative-textstyle.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/declarative-transformorigin.png b/doc/src/images/declarative-transformorigin.png
deleted file mode 100644
index 4af320fbc5..0000000000
--- a/doc/src/images/declarative-transformorigin.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/edge1.png b/doc/src/images/edge1.png
deleted file mode 100644
index f4bc16d01f..0000000000
--- a/doc/src/images/edge1.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/edge2.png b/doc/src/images/edge2.png
deleted file mode 100644
index 71bda8eb0b..0000000000
--- a/doc/src/images/edge2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/edge3.png b/doc/src/images/edge3.png
deleted file mode 100644
index 51bb894c3e..0000000000
--- a/doc/src/images/edge3.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/edge4.png b/doc/src/images/edge4.png
deleted file mode 100644
index aee3bd109f..0000000000
--- a/doc/src/images/edge4.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/edges_qml.png b/doc/src/images/edges_qml.png
deleted file mode 100644
index 73f22f92b3..0000000000
--- a/doc/src/images/edges_qml.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/flickable.gif b/doc/src/images/flickable.gif
deleted file mode 100644
index f7a3319496..0000000000
--- a/doc/src/images/flickable.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/flipable.gif b/doc/src/images/flipable.gif
deleted file mode 100644
index fd187906bb..0000000000
--- a/doc/src/images/flipable.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridLayout_example.png b/doc/src/images/gridLayout_example.png
deleted file mode 100644
index 6b120e9639..0000000000
--- a/doc/src/images/gridLayout_example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-highlight.png b/doc/src/images/gridview-highlight.png
deleted file mode 100644
index b54af37f93..0000000000
--- a/doc/src/images/gridview-highlight.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-lefttoright-ltr-btt.png b/doc/src/images/gridview-layout-lefttoright-ltr-btt.png
deleted file mode 100644
index 4439f8370a..0000000000
--- a/doc/src/images/gridview-layout-lefttoright-ltr-btt.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-lefttoright-ltr-ttb.png b/doc/src/images/gridview-layout-lefttoright-ltr-ttb.png
deleted file mode 100644
index af745b7d1e..0000000000
--- a/doc/src/images/gridview-layout-lefttoright-ltr-ttb.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-lefttoright-rtl-btt.png b/doc/src/images/gridview-layout-lefttoright-rtl-btt.png
deleted file mode 100644
index bc7e568972..0000000000
--- a/doc/src/images/gridview-layout-lefttoright-rtl-btt.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-lefttoright-rtl-ttb.png b/doc/src/images/gridview-layout-lefttoright-rtl-ttb.png
deleted file mode 100644
index 3ebf74fae5..0000000000
--- a/doc/src/images/gridview-layout-lefttoright-rtl-ttb.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-toptobottom-ltr-btt.png b/doc/src/images/gridview-layout-toptobottom-ltr-btt.png
deleted file mode 100644
index b60ab4b5e7..0000000000
--- a/doc/src/images/gridview-layout-toptobottom-ltr-btt.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-toptobottom-ltr-ttb.png b/doc/src/images/gridview-layout-toptobottom-ltr-ttb.png
deleted file mode 100644
index 9078cbde6f..0000000000
--- a/doc/src/images/gridview-layout-toptobottom-ltr-ttb.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-toptobottom-rtl-btt.png b/doc/src/images/gridview-layout-toptobottom-rtl-btt.png
deleted file mode 100644
index 0d0f095598..0000000000
--- a/doc/src/images/gridview-layout-toptobottom-rtl-btt.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-layout-toptobottom-rtl-ttb.png b/doc/src/images/gridview-layout-toptobottom-rtl-ttb.png
deleted file mode 100644
index c1c353a4da..0000000000
--- a/doc/src/images/gridview-layout-toptobottom-rtl-ttb.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/gridview-simple.png b/doc/src/images/gridview-simple.png
deleted file mode 100644
index a102939f2b..0000000000
--- a/doc/src/images/gridview-simple.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/horizontalpositioner_example.png b/doc/src/images/horizontalpositioner_example.png
deleted file mode 100644
index 42f90ec7ae..0000000000
--- a/doc/src/images/horizontalpositioner_example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/imageprovider.png b/doc/src/images/imageprovider.png
deleted file mode 100644
index 422103cb07..0000000000
--- a/doc/src/images/imageprovider.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/layoutmirroring.png b/doc/src/images/layoutmirroring.png
deleted file mode 100644
index df90ac4f9a..0000000000
--- a/doc/src/images/layoutmirroring.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-decorations.png b/doc/src/images/listview-decorations.png
deleted file mode 100644
index 445c64819a..0000000000
--- a/doc/src/images/listview-decorations.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-highlight.png b/doc/src/images/listview-highlight.png
deleted file mode 100644
index dc5c6b3b57..0000000000
--- a/doc/src/images/listview-highlight.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-layout-bottomtotop.png b/doc/src/images/listview-layout-bottomtotop.png
deleted file mode 100644
index 980f81d07f..0000000000
--- a/doc/src/images/listview-layout-bottomtotop.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-layout-lefttoright.png b/doc/src/images/listview-layout-lefttoright.png
deleted file mode 100644
index 2ee0e4c4ff..0000000000
--- a/doc/src/images/listview-layout-lefttoright.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-layout-righttoleft.png b/doc/src/images/listview-layout-righttoleft.png
deleted file mode 100644
index 2c54a2a7b1..0000000000
--- a/doc/src/images/listview-layout-righttoleft.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-layout-toptobottom.png b/doc/src/images/listview-layout-toptobottom.png
deleted file mode 100644
index 2054a5743b..0000000000
--- a/doc/src/images/listview-layout-toptobottom.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-section.png b/doc/src/images/listview-section.png
deleted file mode 100644
index a3664fc55e..0000000000
--- a/doc/src/images/listview-section.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-setup.png b/doc/src/images/listview-setup.png
deleted file mode 100644
index 5293d0517f..0000000000
--- a/doc/src/images/listview-setup.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/listview-simple.png b/doc/src/images/listview-simple.png
deleted file mode 100644
index 71a1c5172f..0000000000
--- a/doc/src/images/listview-simple.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/margins_qml.png b/doc/src/images/margins_qml.png
deleted file mode 100644
index d7d73a3fc9..0000000000
--- a/doc/src/images/margins_qml.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/modelview-overview.png b/doc/src/images/modelview-overview.png
deleted file mode 100644
index 41e3a6827f..0000000000
--- a/doc/src/images/modelview-overview.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/parentchange.png b/doc/src/images/parentchange.png
deleted file mode 100644
index 93206fbbb2..0000000000
--- a/doc/src/images/parentchange.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/pathview.gif b/doc/src/images/pathview.gif
deleted file mode 100644
index 4052eb264b..0000000000
--- a/doc/src/images/pathview.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/positioner-example.png b/doc/src/images/positioner-example.png
deleted file mode 100644
index 636eeb7a13..0000000000
--- a/doc/src/images/positioner-example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/propanim.gif b/doc/src/images/propanim.gif
deleted file mode 100644
index f86406ee7f..0000000000
--- a/doc/src/images/propanim.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inback.png b/doc/src/images/qeasingcurve-inback.png
deleted file mode 100644
index 0064cb341c..0000000000
--- a/doc/src/images/qeasingcurve-inback.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inbounce.png b/doc/src/images/qeasingcurve-inbounce.png
deleted file mode 100644
index eaa64f8c41..0000000000
--- a/doc/src/images/qeasingcurve-inbounce.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-incirc.png b/doc/src/images/qeasingcurve-incirc.png
deleted file mode 100644
index 7bd0f09d41..0000000000
--- a/doc/src/images/qeasingcurve-incirc.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-incubic.png b/doc/src/images/qeasingcurve-incubic.png
deleted file mode 100644
index 1ac9eafba5..0000000000
--- a/doc/src/images/qeasingcurve-incubic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inelastic.png b/doc/src/images/qeasingcurve-inelastic.png
deleted file mode 100644
index f976b5a576..0000000000
--- a/doc/src/images/qeasingcurve-inelastic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inexpo.png b/doc/src/images/qeasingcurve-inexpo.png
deleted file mode 100644
index 1af3652985..0000000000
--- a/doc/src/images/qeasingcurve-inexpo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutback.png b/doc/src/images/qeasingcurve-inoutback.png
deleted file mode 100644
index 480bc051ef..0000000000
--- a/doc/src/images/qeasingcurve-inoutback.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutbounce.png b/doc/src/images/qeasingcurve-inoutbounce.png
deleted file mode 100644
index de623091cf..0000000000
--- a/doc/src/images/qeasingcurve-inoutbounce.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutcirc.png b/doc/src/images/qeasingcurve-inoutcirc.png
deleted file mode 100644
index b4be8ac21e..0000000000
--- a/doc/src/images/qeasingcurve-inoutcirc.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutcubic.png b/doc/src/images/qeasingcurve-inoutcubic.png
deleted file mode 100644
index 49dfbef1b6..0000000000
--- a/doc/src/images/qeasingcurve-inoutcubic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutelastic.png b/doc/src/images/qeasingcurve-inoutelastic.png
deleted file mode 100644
index 5b0e54a019..0000000000
--- a/doc/src/images/qeasingcurve-inoutelastic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutexpo.png b/doc/src/images/qeasingcurve-inoutexpo.png
deleted file mode 100644
index 776984a113..0000000000
--- a/doc/src/images/qeasingcurve-inoutexpo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutquad.png b/doc/src/images/qeasingcurve-inoutquad.png
deleted file mode 100644
index 264333085a..0000000000
--- a/doc/src/images/qeasingcurve-inoutquad.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutquart.png b/doc/src/images/qeasingcurve-inoutquart.png
deleted file mode 100644
index 31fc0c8852..0000000000
--- a/doc/src/images/qeasingcurve-inoutquart.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutquint.png b/doc/src/images/qeasingcurve-inoutquint.png
deleted file mode 100644
index 4d7a745be6..0000000000
--- a/doc/src/images/qeasingcurve-inoutquint.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inoutsine.png b/doc/src/images/qeasingcurve-inoutsine.png
deleted file mode 100644
index 012ff751c9..0000000000
--- a/doc/src/images/qeasingcurve-inoutsine.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inquad.png b/doc/src/images/qeasingcurve-inquad.png
deleted file mode 100644
index e697c208a5..0000000000
--- a/doc/src/images/qeasingcurve-inquad.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inquart.png b/doc/src/images/qeasingcurve-inquart.png
deleted file mode 100644
index 6d6517551e..0000000000
--- a/doc/src/images/qeasingcurve-inquart.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-inquint.png b/doc/src/images/qeasingcurve-inquint.png
deleted file mode 100644
index faaaea71fd..0000000000
--- a/doc/src/images/qeasingcurve-inquint.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-insine.png b/doc/src/images/qeasingcurve-insine.png
deleted file mode 100644
index 09449034b5..0000000000
--- a/doc/src/images/qeasingcurve-insine.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-linear.png b/doc/src/images/qeasingcurve-linear.png
deleted file mode 100644
index fb3aaf3541..0000000000
--- a/doc/src/images/qeasingcurve-linear.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outback.png b/doc/src/images/qeasingcurve-outback.png
deleted file mode 100644
index 83b3fa233f..0000000000
--- a/doc/src/images/qeasingcurve-outback.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outbounce.png b/doc/src/images/qeasingcurve-outbounce.png
deleted file mode 100644
index 27ac979642..0000000000
--- a/doc/src/images/qeasingcurve-outbounce.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outcirc.png b/doc/src/images/qeasingcurve-outcirc.png
deleted file mode 100644
index 00193700e0..0000000000
--- a/doc/src/images/qeasingcurve-outcirc.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outcubic.png b/doc/src/images/qeasingcurve-outcubic.png
deleted file mode 100644
index 45477c045a..0000000000
--- a/doc/src/images/qeasingcurve-outcubic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outelastic.png b/doc/src/images/qeasingcurve-outelastic.png
deleted file mode 100644
index 1d407ed845..0000000000
--- a/doc/src/images/qeasingcurve-outelastic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outexpo.png b/doc/src/images/qeasingcurve-outexpo.png
deleted file mode 100644
index 56851554ed..0000000000
--- a/doc/src/images/qeasingcurve-outexpo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinback.png b/doc/src/images/qeasingcurve-outinback.png
deleted file mode 100644
index 4700ab02e8..0000000000
--- a/doc/src/images/qeasingcurve-outinback.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinbounce.png b/doc/src/images/qeasingcurve-outinbounce.png
deleted file mode 100644
index 12cc1a8bd4..0000000000
--- a/doc/src/images/qeasingcurve-outinbounce.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outincirc.png b/doc/src/images/qeasingcurve-outincirc.png
deleted file mode 100644
index c8a5c86a23..0000000000
--- a/doc/src/images/qeasingcurve-outincirc.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outincubic.png b/doc/src/images/qeasingcurve-outincubic.png
deleted file mode 100644
index 42af870d99..0000000000
--- a/doc/src/images/qeasingcurve-outincubic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinelastic.png b/doc/src/images/qeasingcurve-outinelastic.png
deleted file mode 100644
index 308be57900..0000000000
--- a/doc/src/images/qeasingcurve-outinelastic.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinexpo.png b/doc/src/images/qeasingcurve-outinexpo.png
deleted file mode 100644
index 0692baa264..0000000000
--- a/doc/src/images/qeasingcurve-outinexpo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinquad.png b/doc/src/images/qeasingcurve-outinquad.png
deleted file mode 100644
index 9e3cd83896..0000000000
--- a/doc/src/images/qeasingcurve-outinquad.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinquart.png b/doc/src/images/qeasingcurve-outinquart.png
deleted file mode 100644
index 9a3c16f122..0000000000
--- a/doc/src/images/qeasingcurve-outinquart.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinquint.png b/doc/src/images/qeasingcurve-outinquint.png
deleted file mode 100644
index add9feb26f..0000000000
--- a/doc/src/images/qeasingcurve-outinquint.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outinsine.png b/doc/src/images/qeasingcurve-outinsine.png
deleted file mode 100644
index 4bc2aaf9e3..0000000000
--- a/doc/src/images/qeasingcurve-outinsine.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outquad.png b/doc/src/images/qeasingcurve-outquad.png
deleted file mode 100644
index c505ff9e7b..0000000000
--- a/doc/src/images/qeasingcurve-outquad.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outquart.png b/doc/src/images/qeasingcurve-outquart.png
deleted file mode 100644
index 6eac058d18..0000000000
--- a/doc/src/images/qeasingcurve-outquart.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outquint.png b/doc/src/images/qeasingcurve-outquint.png
deleted file mode 100644
index 77a9ad417f..0000000000
--- a/doc/src/images/qeasingcurve-outquint.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qeasingcurve-outsine.png b/doc/src/images/qeasingcurve-outsine.png
deleted file mode 100644
index d135b2f98c..0000000000
--- a/doc/src/images/qeasingcurve-outsine.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-borderimage-normal-image.png b/doc/src/images/qml-borderimage-normal-image.png
deleted file mode 100644
index ae7460a7d7..0000000000
--- a/doc/src/images/qml-borderimage-normal-image.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-borderimage-scaled.png b/doc/src/images/qml-borderimage-scaled.png
deleted file mode 100644
index 8035c79f37..0000000000
--- a/doc/src/images/qml-borderimage-scaled.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-borderimage-tiled.png b/doc/src/images/qml-borderimage-tiled.png
deleted file mode 100644
index 14883d0dd6..0000000000
--- a/doc/src/images/qml-borderimage-tiled.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-clocks-example.png b/doc/src/images/qml-clocks-example.png
deleted file mode 100644
index 1b352b589b..0000000000
--- a/doc/src/images/qml-clocks-example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-column.png b/doc/src/images/qml-column.png
deleted file mode 100644
index c589ad8212..0000000000
--- a/doc/src/images/qml-column.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-extending-types.png b/doc/src/images/qml-extending-types.png
deleted file mode 100644
index 6990d7c190..0000000000
--- a/doc/src/images/qml-extending-types.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-flow-snippet.png b/doc/src/images/qml-flow-snippet.png
deleted file mode 100644
index af873d1b4f..0000000000
--- a/doc/src/images/qml-flow-snippet.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-flow-text1.png b/doc/src/images/qml-flow-text1.png
deleted file mode 100644
index 99ce7523ca..0000000000
--- a/doc/src/images/qml-flow-text1.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-flow-text2.png b/doc/src/images/qml-flow-text2.png
deleted file mode 100644
index 844e0def93..0000000000
--- a/doc/src/images/qml-flow-text2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-gradient.png b/doc/src/images/qml-gradient.png
deleted file mode 100644
index 5eefdd2031..0000000000
--- a/doc/src/images/qml-gradient.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-grid-no-spacing.png b/doc/src/images/qml-grid-no-spacing.png
deleted file mode 100644
index c2092e0bf9..0000000000
--- a/doc/src/images/qml-grid-no-spacing.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-grid-spacing.png b/doc/src/images/qml-grid-spacing.png
deleted file mode 100644
index 1083bee59f..0000000000
--- a/doc/src/images/qml-grid-spacing.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-arcTo.png b/doc/src/images/qml-item-canvas-arcTo.png
deleted file mode 100644
index 6bc187175a..0000000000
--- a/doc/src/images/qml-item-canvas-arcTo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-arcTo2.png b/doc/src/images/qml-item-canvas-arcTo2.png
deleted file mode 100644
index 5f9d32d8d3..0000000000
--- a/doc/src/images/qml-item-canvas-arcTo2.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-bezierCurveTo.png b/doc/src/images/qml-item-canvas-bezierCurveTo.png
deleted file mode 100644
index ffbca5d91e..0000000000
--- a/doc/src/images/qml-item-canvas-bezierCurveTo.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-context.gif b/doc/src/images/qml-item-canvas-context.gif
deleted file mode 100644
index f18e52ca05..0000000000
--- a/doc/src/images/qml-item-canvas-context.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-math-rotate.png b/doc/src/images/qml-item-canvas-math-rotate.png
deleted file mode 100644
index e80cc09eae..0000000000
--- a/doc/src/images/qml-item-canvas-math-rotate.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-math.png b/doc/src/images/qml-item-canvas-math.png
deleted file mode 100644
index c039a38532..0000000000
--- a/doc/src/images/qml-item-canvas-math.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-rotate.png b/doc/src/images/qml-item-canvas-rotate.png
deleted file mode 100644
index 20947fda49..0000000000
--- a/doc/src/images/qml-item-canvas-rotate.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-scale.png b/doc/src/images/qml-item-canvas-scale.png
deleted file mode 100644
index 3b26fde871..0000000000
--- a/doc/src/images/qml-item-canvas-scale.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-scalex.png b/doc/src/images/qml-item-canvas-scalex.png
deleted file mode 100644
index d4e76aa932..0000000000
--- a/doc/src/images/qml-item-canvas-scalex.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-item-canvas-startAngle.png b/doc/src/images/qml-item-canvas-startAngle.png
deleted file mode 100644
index f81562e5e4..0000000000
--- a/doc/src/images/qml-item-canvas-startAngle.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-listview-sections-example.png b/doc/src/images/qml-listview-sections-example.png
deleted file mode 100644
index 4e8f0768b4..0000000000
--- a/doc/src/images/qml-listview-sections-example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-mousearea-snippet.png b/doc/src/images/qml-mousearea-snippet.png
deleted file mode 100644
index 15229446c7..0000000000
--- a/doc/src/images/qml-mousearea-snippet.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-repeater-grid-index.png b/doc/src/images/qml-repeater-grid-index.png
deleted file mode 100644
index 44aed24f55..0000000000
--- a/doc/src/images/qml-repeater-grid-index.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qml-row.png b/doc/src/images/qml-row.png
deleted file mode 100644
index 30d9caad7c..0000000000
--- a/doc/src/images/qml-row.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qmldesigner-visual-editor.png b/doc/src/images/qmldesigner-visual-editor.png
deleted file mode 100644
index 9cd4b8b2dc..0000000000
--- a/doc/src/images/qmldesigner-visual-editor.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/qtcreator-target-selector.png b/doc/src/images/qtcreator-target-selector.png
deleted file mode 100644
index 1f2613811d..0000000000
--- a/doc/src/images/qtcreator-target-selector.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/rect-border-width.png b/doc/src/images/rect-border-width.png
deleted file mode 100644
index e232cf3ebd..0000000000
--- a/doc/src/images/rect-border-width.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/rect-color.png b/doc/src/images/rect-color.png
deleted file mode 100644
index b258ba9b6c..0000000000
--- a/doc/src/images/rect-color.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/rect-smooth.png b/doc/src/images/rect-smooth.png
deleted file mode 100644
index 7ffd8aba33..0000000000
--- a/doc/src/images/rect-smooth.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/repeater-index.png b/doc/src/images/repeater-index.png
deleted file mode 100644
index 3dbe6d0571..0000000000
--- a/doc/src/images/repeater-index.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/repeater-modeldata.png b/doc/src/images/repeater-modeldata.png
deleted file mode 100644
index 6d8df0d9d5..0000000000
--- a/doc/src/images/repeater-modeldata.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/repeater-simple.png b/doc/src/images/repeater-simple.png
deleted file mode 100644
index 6da62951dc..0000000000
--- a/doc/src/images/repeater-simple.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/repeater.png b/doc/src/images/repeater.png
deleted file mode 100644
index 973df27a74..0000000000
--- a/doc/src/images/repeater.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/translate.png b/doc/src/images/translate.png
deleted file mode 100644
index baf58b0eb6..0000000000
--- a/doc/src/images/translate.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/verticalpositioner_example.png b/doc/src/images/verticalpositioner_example.png
deleted file mode 100644
index 458dc7f481..0000000000
--- a/doc/src/images/verticalpositioner_example.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/verticalpositioner_transition.gif b/doc/src/images/verticalpositioner_transition.gif
deleted file mode 100644
index ed61adb5ab..0000000000
--- a/doc/src/images/verticalpositioner_transition.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-basic.gif b/doc/src/images/viewtransitions-basic.gif
deleted file mode 100644
index b2a6a618c0..0000000000
--- a/doc/src/images/viewtransitions-basic.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-delayedbyindex.gif b/doc/src/images/viewtransitions-delayedbyindex.gif
deleted file mode 100644
index 4ece2a2ffb..0000000000
--- a/doc/src/images/viewtransitions-delayedbyindex.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-intermediatemove.gif b/doc/src/images/viewtransitions-intermediatemove.gif
deleted file mode 100644
index e826183b19..0000000000
--- a/doc/src/images/viewtransitions-intermediatemove.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-interruptedbad.gif b/doc/src/images/viewtransitions-interruptedbad.gif
deleted file mode 100644
index d1f88f99bb..0000000000
--- a/doc/src/images/viewtransitions-interruptedbad.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-interruptedgood.gif b/doc/src/images/viewtransitions-interruptedgood.gif
deleted file mode 100644
index 1d59db387e..0000000000
--- a/doc/src/images/viewtransitions-interruptedgood.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-pathanim.gif b/doc/src/images/viewtransitions-pathanim.gif
deleted file mode 100644
index e6bc737456..0000000000
--- a/doc/src/images/viewtransitions-pathanim.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/viewtransitions-scriptactionbad.gif b/doc/src/images/viewtransitions-scriptactionbad.gif
deleted file mode 100644
index 9e618d911c..0000000000
--- a/doc/src/images/viewtransitions-scriptactionbad.gif
+++ /dev/null
Binary files differ
diff --git a/doc/src/images/visualitemmodel.png b/doc/src/images/visualitemmodel.png
deleted file mode 100644
index 5e6d1325b2..0000000000
--- a/doc/src/images/visualitemmodel.png
+++ /dev/null
Binary files differ
diff --git a/doc/src/particles/particles.qdoc b/doc/src/particles/particles.qdoc
deleted file mode 100644
index d2806bac5a..0000000000
--- a/doc/src/particles/particles.qdoc
+++ /dev/null
@@ -1,154 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** GNU Free Documentation License
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms
-** and conditions contained in a signed written agreement between you
-** and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule QtQuick.Particles 2
- \title QML Module QtQuick.Particles 2
-
- \brief Elements for the Qt Quick particle system
-
- This QML module contains a particle system for Qt Quick. To use these elements, you will need to import the module with the following line:
- \code
- import QtQuick.Particles 2.0
- \endcode
-
- For a simple overview of how the system can be used, see \l{qml-particlesystem.html}{Using the Qt Quick Particle System}.
-
- For details on the performance characteristics see \l{qml-particlesystem-performance.html}{Qt Quick Particle System Performance}.
-
-*/
-
-/*!
- \page qml-particlesystem.html
-\inqmlmodule QtQuick.Particles 2
- \title Using the Qt Quick Particle System
-
-
- Note that to use elements from the particles module, you will need to import the types with the following line:
- \code
- import QtQuick.Particles 2.0
- \endcode
-
- \section1 The ParticleSystem
- This particle system contains four main types of QML Elements: ParticleSystem, Painters, Emitters and Affectors.
-
- The ParticleSystem element ties all the other elements together, and manages the shared timeline. Painters, Emitters
- and Affectors must all have the same ParticleSystem to be able to interact with each other.
-
- You may have as many ParticleSystems as you want subject to this constraint, so the logical separation is to have
- one ParticleSystem for all the elements that you want to interact, or just one if the number of elements is small
- and they are easily kept under control..
-
- \section1 Logical Particles
- All the particle system elements act on "logical particles". Every particle has a logical representation inside
- the particle system, and this is what the elements act upon. Not every logical particle needs to be visualized,
- and some logical particles could lead to multiple visual particles being drawn on screen.
-
- \section1 Particle Groups
- Every logical particle is a member of a particle group, and each group is identified by a name. If no other
- group has been specified, a logical particle belongs to the group with the name "" (the empty string), which
- acts the same as any other group. Groups are used for two purposes, for controlling particles and because they
- can have stochastic state transitions.
-
- Groups control particles because you can never access an individual particle with any of the particle system
- elements. All elements act on groups as a whole, and so any particles that need to behave differently from each
- other (aside from the usual stochastic parameter variation) will need to be in different groups.
-
- Particles can also change groups dynamically. When this happens the particles trajectory is unaltered, but it
- can be acted upon by different ParticlePainters or Affectors. Particles can either have their group changed by
- an Affector, or stochastic state transitions can be defined in a ParticleGroup element.
-
- Generally, groups should only be defined in a ParticleGroup if they require stochastic state transitions. Otherwise,
- it is sufficient to have the groups be defined simply by the strings used in the particle/particles properties
- of the elements.
-
- \section1 Emitters
- Emitters emit logical particles into the system. These particles have a trajectory and lifespan, but no visualization.
- These particles are emitted from the location of the Emitter.
-
- TrailEmitters are a special type of emitter which emits particles from the location of other logicial particles. Any logical
- particle of the followed type within the bounds of a TrailEmitter will cause particle emission from its location, as if there
- were an Emitter on it with the same properties as the TrailEmitter.
-
- \section1 ParticlePainters
- Painters are the elements that visualize logical particles. For each logical particle in the groups assigned to it,
- which are within its bounds (or outside, if you do not set the clip property on the element) it will be visualized
- in a manner dependent on the type of ParticlePainter. The base type of ParticlePainter does not draw anything.
- ImageParticle renders an image at the particle location. CustomParticle allows you to write your own shaders to render
- the particles, passing in the logical particle state as vertex data. ItemParticle allows you to visualize logical
- particles using arbitrary QML delegates. ModelParticle is similar, but coordinates model data amongst the delegates
- in a similar manner to the view classes.
-
- As the ParticlePainter is the QML element visualizing the particles in the scene, it is its Z value which is important
- when trying to place particles above or below other elements visually.
-
- \section1 Affectors
- Affectors are an optional component of a particle system. They can perform a variety of manipulations to the simulation,
- such as altering the trajectory of particles or prematurely ending their life in the simulation. For performance reasons,
- it is recommended not to use Affectors in high-volume particle systems.
-
- \section1 Stochastic Parameters
- As particle systems benefit from stochastic control of parameters across a large number of instances, several stochastic
- helper types are used by the particle system. If you do not wish to have any stochastic variation in these parameters,
- then do not specify any variation in these elements.
-
- \section2 Directions
- Directions can be specified by angle and magnitude, or by x and y components. While any direction can be specified with
- either method, there is a significant difference between varying the x and y components and varying the angle and magnitude.
- Varying the x and y components will lead to a rectangular area around the specified point, while varying the angle will lead
- to an arc centered on the specified point.
-
- \section2 Shapes
- The particle system contains several elements which represent shapes. These elements do not visualize shapes, and are used
- for the purpose of selecting a random point within the shape. If you want a specific point with no randomness, use a 0 width
- and 0 height shape (which is the default). Otherwise you can use the shape elements provides to specify an area, so that the
- result can use a random point selected from that area.
-*/
-
-/*!
- \page qml-particlesystem-performance.html
-\inqmlmodule QtQuick 2
- \title Particle System Performance Guide
-
- The performance of the particle system scales with the number of particles it is maintaining. After prototyping the desired
- effect, performance can be improved by lowering the particle count. Conversely, if performance is well within the acceptable
- bounds, you can increase the number of particles until you hit that point (should that improve the effect).
-
- Note that particle count is often estimated by the particle system, and in some cases explicitly providing hints as to how
- many particles will be needed will improve performance. You can do this by setting maximumEmitted on an Emitter, and it is
- generally useful for Emitters which do not continuously emit particles.
-
- Like ShaderEffect, the performance of the particle system is largely dependent on the graphics hardware it is running on.
- The exception to this is Affectors. For systems not including Affectors, the majority of the performance cost of particles
- will be on the GPU. Since the GPU is better at parallelizing large numbers of operations more particles can be drawn at 60FPS
- when Affectors are not used.
-
- Affectors, particularly if modifying the particles in javascript, can be relatively slow as well as increasing the CPU cost
- of using particles. Avoid using them in high-volume systems where possible. Some easy cases where Affectors can be avoided
- are using timed ParticleGroup transitions instead of time-triggered Affectors, or setting acceleration due to gravity in the
- acceleration property of the Emitter instead of with a Gravity Affector.
-*/
diff --git a/doc/src/snippets/qml/anchoranimation.qml b/doc/src/snippets/qml/anchoranimation.qml
deleted file mode 100644
index 8f0603fab8..0000000000
--- a/doc/src/snippets/qml/anchoranimation.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Item {
- id: container
- width: 200; height: 200
-
- Rectangle {
- id: myRect
- width: 100; height: 100
- color: "red"
- }
-
- states: State {
- name: "reanchored"
- AnchorChanges { target: myRect; anchors.right: container.right }
- }
-
- transitions: Transition {
- // smoothly reanchor myRect and move into new position
- AnchorAnimation { duration: 1000 }
- }
-
- Component.onCompleted: container.state = "reanchored"
-}
-//![0]
diff --git a/doc/src/snippets/qml/anchorchanges.qml b/doc/src/snippets/qml/anchorchanges.qml
deleted file mode 100644
index 9cc9d15221..0000000000
--- a/doc/src/snippets/qml/anchorchanges.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: window
- width: 120; height: 120
- color: "black"
-
- Rectangle { id: myRect; width: 50; height: 50; color: "red" }
-
- states: State {
- name: "reanchored"
-
- AnchorChanges {
- target: myRect
- anchors.top: window.top
- anchors.bottom: window.bottom
- }
- PropertyChanges {
- target: myRect
- anchors.topMargin: 10
- anchors.bottomMargin: 10
- }
- }
-
- MouseArea { anchors.fill: parent; onClicked: window.state = "reanchored" }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/animatedimage.qml b/doc/src/snippets/qml/animatedimage.qml
deleted file mode 100644
index a483619e11..0000000000
--- a/doc/src/snippets/qml/animatedimage.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// This snippet should be turned into an example and put in
-// examples/declarative/imageelements/animatedimage
-
-//! [document]
-import QtQuick 2.0
-
-Rectangle {
- width: animation.width; height: animation.height + 8
-
- AnimatedImage { id: animation; source: "animation.gif" }
-
- Rectangle {
- property int frames: animation.frameCount
-
- width: 4; height: 8
- x: (animation.width - width) * animation.currentFrame / frames
- y: animation.height
- color: "red"
- }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/animation.qml b/doc/src/snippets/qml/animation.qml
deleted file mode 100644
index d45ded397f..0000000000
--- a/doc/src/snippets/qml/animation.qml
+++ /dev/null
@@ -1,226 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [document]
-import QtQuick 2.0
-
-
-//! [parent begin]
-Rectangle {
-//! [parent begin]
- width: 200; height: 600
- id: screen
-
-Column {
- spacing: 12
-//! [direct property change]
-Rectangle {
- id: blob
- width: 75; height: 75
- color: "blue"
-
- MouseArea {
- anchors.fill: parent
- onClicked: blob.color = "green"
- }
-}
-//! [direct property change]
-
-//! [property animation]
-Rectangle {
- id: flashingblob
- width: 75; height: 75
- color: "blue"
- opacity: 1.0
-
- MouseArea {
- anchors.fill: parent
- onClicked: {
- animateColor.start()
- animateOpacity.start()
- }
- }
-
- PropertyAnimation {id: animateColor; target: flashingblob; properties: "color"; to: "green"; duration: 100}
-
- NumberAnimation {
- id: animateOpacity
- target: flashingblob
- properties: "opacity"
- from: 0.99
- to: 1.0
- loops: Animation.Infinite
- easing {type: Easing.OutBack; overshoot: 500}
- }
-}
-//! [property animation]
-
-//! [transition animation]
-Rectangle {
- width: 75; height: 75
- id: button
- state: "RELEASED"
-
- MouseArea {
- anchors.fill: parent
- onPressed: button.state = "PRESSED"
- onReleased: button.state = "RELEASED"
- }
-
- states: [
- State {
- name: "PRESSED"
- PropertyChanges { target: button; color: "lightblue"}
- },
- State {
- name: "RELEASED"
- PropertyChanges { target: button; color: "lightsteelblue"}
- }
- ]
-
- transitions: [
- Transition {
- from: "PRESSED"
- to: "RELEASED"
- ColorAnimation { target: button; duration: 100}
- },
- Transition {
- from: "RELEASED"
- to: "PRESSED"
- ColorAnimation { target: button; duration: 100}
- }
- ]
-}
-//! [transition animation]
-
-Rectangle {
- width: 75; height: 75
- id: wildcard
- color: "green"
-//! [wildcard animation]
- transitions:
- Transition {
- to: "*"
- ColorAnimation { target: button; duration: 100}
- }
-//! [wildcard animation]
-
- MouseArea {
- anchors.fill: parent
- onPressed: {
- ball.x = 10
- ball.color = "red"
- }
- onReleased: {
- ball.x = screen.width / 2
- ball.color = "salmon"
- }
- }
-}
-
-//! [behavior animation]
-Rectangle {
- width: 75; height: 75; radius: width
- id: ball
- color: "salmon"
-
- Behavior on x {
- NumberAnimation {
- id: bouncebehavior
- easing {
- type: Easing.OutElastic
- amplitude: 1.0
- period: 0.5
- }
- }
- }
- Behavior on y {
- animation: bouncebehavior
- }
- Behavior {
- ColorAnimation { target: ball; duration: 100 }
- }
-}
-//! [behavior animation]
-
-//! [sequential animation]
-Rectangle {
- id: banner
- width: 150; height: 100; border.color: "black"
-
- Column {
- anchors.centerIn: parent
- Text {
- id: code
- text: "Code less."
- opacity: 0.01
- }
- Text {
- id: create
- text: "Create more."
- opacity: 0.01
- }
- Text {
- id: deploy
- text: "Deploy everywhere."
- opacity: 0.01
- }
- }
-
- MouseArea {
- anchors.fill: parent
- onPressed: playbanner.start()
- }
-
- SequentialAnimation {
- id: playbanner
- running: false
- NumberAnimation { target: code; property: "opacity"; to: 1.0; duration: 200}
- NumberAnimation { target: create; property: "opacity"; to: 1.0; duration: 200}
- NumberAnimation { target: deploy; property: "opacity"; to: 1.0; duration: 200}
- }
-}
-//! [sequential animation]
-
-}//end of col
-//! [parent end]
-}
-//! [parent end]
-
-//! [document]
diff --git a/doc/src/snippets/qml/behavior.qml b/doc/src/snippets/qml/behavior.qml
deleted file mode 100644
index 4776e09a54..0000000000
--- a/doc/src/snippets/qml/behavior.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- Behavior on width {
- NumberAnimation { duration: 1000 }
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: rect.width = 50
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/borderimage/borderimage-scaled.qml b/doc/src/snippets/qml/borderimage/borderimage-scaled.qml
deleted file mode 100644
index 468aa24eab..0000000000
--- a/doc/src/snippets/qml/borderimage/borderimage-scaled.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: page
- color: "white"
- width: 180; height: 180
-
-//! [scaled border image]
-BorderImage {
- width: 180; height: 180
- border { left: 30; top: 30; right: 30; bottom: 30 }
- horizontalTileMode: BorderImage.Stretch
- verticalTileMode: BorderImage.Stretch
- source: "pics/borderframe.png"
-}
-//! [scaled border image]
-
- Rectangle {
- x: 30; y: 0
- width: 1; height: 180
- color: "gray"
- }
-
- Rectangle {
- x: 150; y: 0
- width: 1; height: 180
- color: "gray"
- }
-
- Rectangle {
- x: 0; y: 30
- width: 180; height: 1
- color: "gray"
- }
-
- Rectangle {
- x: 0; y: 150
- width: 180; height: 1
- color: "gray"
- }
-}
diff --git a/doc/src/snippets/qml/borderimage/borderimage-tiled.qml b/doc/src/snippets/qml/borderimage/borderimage-tiled.qml
deleted file mode 100644
index 69297378bf..0000000000
--- a/doc/src/snippets/qml/borderimage/borderimage-tiled.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: page
- color: "white"
- width: 180; height: 180
-
-//! [tiled border image]
-BorderImage {
- width: 180; height: 180
- border { left: 30; top: 30; right: 30; bottom: 30 }
- horizontalTileMode: BorderImage.Repeat
- verticalTileMode: BorderImage.Repeat
- source: "pics/borderframe.png"
-}
-//! [tiled border image]
-
- Rectangle {
- x: 30; y: 0
- width: 1; height: 180
- color: "gray"
- }
-
- Rectangle {
- x: 150; y: 0
- width: 1; height: 180
- color: "gray"
- }
-
- Rectangle {
- x: 0; y: 30
- width: 180; height: 1
- color: "gray"
- }
-
- Rectangle {
- x: 0; y: 150
- width: 180; height: 1
- color: "gray"
- }
-}
diff --git a/doc/src/snippets/qml/borderimage/normal-image.qml b/doc/src/snippets/qml/borderimage/normal-image.qml
deleted file mode 100644
index 3bd34e3933..0000000000
--- a/doc/src/snippets/qml/borderimage/normal-image.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- id: page
- color: "white"
- width: 120; height: 120
-
-//! [normal image]
-Image {
- source: "pics/borderframe.png"
-}
-//! [normal image]
-
- Rectangle {
- x: 30; y: 0
- width: 1; height: 120
- color: "gray"
- }
-
- Rectangle {
- x: 90; y: 0
- width: 1; height: 120
- color: "gray"
- }
-
- Rectangle {
- x: 0; y: 30
- width: 200; height: 1
- color: "gray"
- }
-
- Rectangle {
- x: 0; y: 90
- width: 200; height: 1
- color: "gray"
- }
-}
diff --git a/doc/src/snippets/qml/coloranimation.qml b/doc/src/snippets/qml/coloranimation.qml
deleted file mode 100644
index bb2d83bfb8..0000000000
--- a/doc/src/snippets/qml/coloranimation.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 100; height: 100
- color: "red"
-
- ColorAnimation on color { to: "yellow"; duration: 1000 }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/column/column-transitions.qml b/doc/src/snippets/qml/column/column-transitions.qml
deleted file mode 100644
index 8e291b12c8..0000000000
--- a/doc/src/snippets/qml/column/column-transitions.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-//! [document]
-Column {
- spacing: 2
-
- Rectangle { color: "red"; width: 50; height: 50 }
- Rectangle { id: greenRect; color: "green"; width: 20; height: 50 }
- Rectangle { color: "blue"; width: 50; height: 20 }
-
- move: Transition {
- NumberAnimation { properties: "x,y"; duration: 1000 }
- }
-
- focus: true
- Keys.onSpacePressed: greenRect.visible = !greenRect.visible
-}
-//! [document]
diff --git a/doc/src/snippets/qml/column/column.qml b/doc/src/snippets/qml/column/column.qml
deleted file mode 100644
index 3d51728d13..0000000000
--- a/doc/src/snippets/qml/column/column.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Item {
- width: 310; height: 170
-
- Column {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.verticalCenter: parent.verticalCenter
-
- spacing: 5
-
- Rectangle { color: "lightblue"; radius: 10.0
- width: 300; height: 50
- Text { anchors.centerIn: parent
- font.pointSize: 24; text: "Books" } }
- Rectangle { color: "gold"; radius: 10.0
- width: 300; height: 50
- Text { anchors.centerIn: parent
- font.pointSize: 24; text: "Music" } }
- Rectangle { color: "lightgreen"; radius: 10.0
- width: 300; height: 50
- Text { anchors.centerIn: parent
- font.pointSize: 24; text: "Movies" } }
- }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/column/vertical-positioner.qml b/doc/src/snippets/qml/column/vertical-positioner.qml
deleted file mode 100644
index 1661c46ba8..0000000000
--- a/doc/src/snippets/qml/column/vertical-positioner.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-//! [document]
-Column {
- spacing: 2
-
- Rectangle { color: "red"; width: 50; height: 50 }
- Rectangle { color: "green"; width: 20; height: 50 }
- Rectangle { color: "blue"; width: 50; height: 20 }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/drag.qml b/doc/src/snippets/qml/drag.qml
deleted file mode 100644
index 286fcfc52b..0000000000
--- a/doc/src/snippets/qml/drag.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 200
-
- DropArea {
- x: 75; y: 75
- width: 50; height: 50
-
- Rectangle {
- anchors.fill: parent
- color: "green"
-
- visible: parent.containsDrag
- }
- }
-
- Rectangle {
- x: 10; y: 10
- width: 20; height: 20
- color: "red"
-
- Drag.active: dragArea.drag.active
- Drag.hotSpot.x: 10
- Drag.hotSpot.y: 10
-
- MouseArea {
- id: dragArea
- anchors.fill: parent
-
- drag.target: parent
- }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/flickable.qml b/doc/src/snippets/qml/flickable.qml
deleted file mode 100644
index fda2615e14..0000000000
--- a/doc/src/snippets/qml/flickable.qml
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Flickable {
- width: 200; height: 200
- contentWidth: image.width; contentHeight: image.height
-
- Image { id: image; source: "bigImage.png" }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/flickableScrollbar.qml b/doc/src/snippets/qml/flickableScrollbar.qml
deleted file mode 100644
index fd0aee3fc1..0000000000
--- a/doc/src/snippets/qml/flickableScrollbar.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-//![0]
-Rectangle {
- width: 200; height: 200
-
- Flickable {
- id: flickable
-//![0]
- anchors.fill: parent
- contentWidth: image.width; contentHeight: image.height
-
- Image { id: image; source: "pics/qt.png" }
-//![1]
- }
-
- Rectangle {
- id: scrollbar
- anchors.right: flickable.right
- y: flickable.visibleArea.yPosition * flickable.height
- width: 10
- height: flickable.visibleArea.heightRatio * flickable.height
- color: "black"
- }
-}
-//![1]
diff --git a/doc/src/snippets/qml/flipable/flipable.qml b/doc/src/snippets/qml/flipable/flipable.qml
deleted file mode 100644
index 4e451204d4..0000000000
--- a/doc/src/snippets/qml/flipable/flipable.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import QtQuick 2.0
-
-Flipable {
- id: flipable
- width: 240
- height: 240
-
- property bool flipped: false
-
- front: Image { source: "front.png"; anchors.centerIn: parent }
- back: Image { source: "back.png"; anchors.centerIn: parent }
-
- transform: Rotation {
- id: rotation
- origin.x: flipable.width/2
- origin.y: flipable.height/2
- axis.x: 0; axis.y: 1; axis.z: 0 // set axis.y to 1 to rotate around y-axis
- angle: 0 // the default angle
- }
-
- states: State {
- name: "back"
- PropertyChanges { target: rotation; angle: 180 }
- when: flipable.flipped
- }
-
- transitions: Transition {
- NumberAnimation { target: rotation; property: "angle"; duration: 4000 }
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: flipable.flipped = !flipable.flipped
- }
-}
-//! [0]
-
diff --git a/doc/src/snippets/qml/flow.qml b/doc/src/snippets/qml/flow.qml
deleted file mode 100644
index 1141269986..0000000000
--- a/doc/src/snippets/qml/flow.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Rectangle {
- color: "lightblue"
- width: 300; height: 200
-
-//! [flow item]
- Flow {
- anchors.fill: parent
- anchors.margins: 4
- spacing: 10
-
- Text { text: "Text"; font.pixelSize: 40 }
- Text { text: "items"; font.pixelSize: 40 }
- Text { text: "flowing"; font.pixelSize: 40 }
- Text { text: "inside"; font.pixelSize: 40 }
- Text { text: "a"; font.pixelSize: 40 }
- Text { text: "Flow"; font.pixelSize: 40 }
- Text { text: "item"; font.pixelSize: 40 }
- }
-//! [flow item]
-}
-//! [document]
diff --git a/doc/src/snippets/qml/focus/MyClickableWidget.qml b/doc/src/snippets/qml/focus/MyClickableWidget.qml
deleted file mode 100644
index 7017f1bcb6..0000000000
--- a/doc/src/snippets/qml/focus/MyClickableWidget.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [clickable in focusscope]
-FocusScope {
-
- id: scope
-
- //FocusScope needs to bind to visual properties of the children
- property alias color: rectangle.color
- x: rectangle.x; y: rectangle.y
- width: rectangle.width; height: rectangle.height
-
- Rectangle {
- id: rectangle
- anchors.centerIn: parent
- color: "lightsteelblue"; width: 175; height: 25; radius: 10; smooth: true
- Text { id: label; anchors.centerIn: parent }
- focus: true
- Keys.onPressed: {
- if (event.key == Qt.Key_A)
- label.text = 'Key A was pressed'
- else if (event.key == Qt.Key_B)
- label.text = 'Key B was pressed'
- else if (event.key == Qt.Key_C)
- label.text = 'Key C was pressed'
- }
- }
- MouseArea { anchors.fill: parent; onClicked: { scope.focus = true } }
-}
-//! [clickable in focusscope]
diff --git a/doc/src/snippets/qml/focus/MyWidget.qml b/doc/src/snippets/qml/focus/MyWidget.qml
deleted file mode 100644
index 5899b18ae0..0000000000
--- a/doc/src/snippets/qml/focus/MyWidget.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [document]
-import QtQuick 2.0
-
-//! [mywidget]
-Rectangle {
- id: widget
- color: "lightsteelblue"; width: 175; height: 25; radius: 10; smooth: true
- Text { id: label; anchors.centerIn: parent}
- focus: true
- Keys.onPressed: {
- if (event.key == Qt.Key_A)
- label.text = 'Key A was pressed'
- else if (event.key == Qt.Key_B)
- label.text = 'Key B was pressed'
- else if (event.key == Qt.Key_C)
- label.text = 'Key C was pressed'
- }
-}
-//! [mywidget]
diff --git a/doc/src/snippets/qml/focus/advancedFocus.qml b/doc/src/snippets/qml/focus/advancedFocus.qml
deleted file mode 100644
index ec4efca450..0000000000
--- a/doc/src/snippets/qml/focus/advancedFocus.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [FocusScope delegate]
-Rectangle {
- color: "lightsteelblue"; width: 100; height: 50
-
- ListView {
- anchors.fill: parent
- focus: true
-
- model: ListModel {
- ListElement { name: "Bob" }
- ListElement { name: "John" }
- ListElement { name: "Michael" }
- }
-
- delegate: FocusScope {
- width: childrenRect.width; height: childrenRect.height
- x:childrenRect.x; y: childrenRect.y
- TextInput {
- focus: true
- text: name
- Keys.onReturnPressed: console.log(name)
- }
- }
- }
-}
-//! [FocusScope delegate]
diff --git a/doc/src/snippets/qml/focus/basicwidget.qml b/doc/src/snippets/qml/focus/basicwidget.qml
deleted file mode 100644
index bd5778948a..0000000000
--- a/doc/src/snippets/qml/focus/basicwidget.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [focus true]
-Rectangle {
- color: "lightsteelblue"; width: 240; height: 25
- Text { id: myText }
- Item {
- id: keyHandler
- focus: true
- Keys.onPressed: {
- if (event.key == Qt.Key_A)
- myText.text = 'Key A was pressed'
- else if (event.key == Qt.Key_B)
- myText.text = 'Key B was pressed'
- else if (event.key == Qt.Key_C)
- myText.text = 'Key C was pressed'
- }
- }
-}
-//! [focus true]
diff --git a/doc/src/snippets/qml/focus/clickablewidget.qml b/doc/src/snippets/qml/focus/clickablewidget.qml
deleted file mode 100644
index 81bd5f7e51..0000000000
--- a/doc/src/snippets/qml/focus/clickablewidget.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the FOO module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [clickable window]
-Rectangle {
- id: window
-
- color: "white"; width: 240; height: 150
-
- Column {
- anchors.centerIn: parent; spacing: 15
-
- MyClickableWidget {
- focus: true //set this MyWidget to receive the focus
- color: "lightblue"
- }
- MyClickableWidget {
- color: "palegreen"
- }
- }
-
-}
-//! [clickable window]
diff --git a/doc/src/snippets/qml/focus/myfocusscopewidget.qml b/doc/src/snippets/qml/focus/myfocusscopewidget.qml
deleted file mode 100644
index f568c39a32..0000000000
--- a/doc/src/snippets/qml/focus/myfocusscopewidget.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [document]
-import QtQuick 2.0
-
-//! [widget in focusscope]
-FocusScope {
-
- //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
-
- Rectangle {
- id: rectangle
- anchors.centerIn: parent
- color: "lightsteelblue"; width: 175; height: 25; radius: 10; smooth: true
- Text { id: label; anchors.centerIn: parent }
- focus: true
- Keys.onPressed: {
- if (event.key == Qt.Key_A)
- label.text = 'Key A was pressed'
- else if (event.key == Qt.Key_B)
- label.text = 'Key B was pressed'
- else if (event.key == Qt.Key_C)
- label.text = 'Key C was pressed'
- }
- }
-}
-//! [widget in focusscope]
-//! [document]
diff --git a/doc/src/snippets/qml/focus/rectangle.qml b/doc/src/snippets/qml/focus/rectangle.qml
deleted file mode 100644
index cb00f1f11a..0000000000
--- a/doc/src/snippets/qml/focus/rectangle.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the FOO module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [simple key event]
-Rectangle {
- width: 100; height: 100
- focus: true
- Keys.onPressed: {
- if (event.key == Qt.Key_A) {
- console.log('Key A was pressed');
- event.accepted = true;
- }
- }
-//! [simple key event]
-
-//! [active focus]
- Text {
- text: activeFocus ? "I have active focus!" : "I do not have active focus"
- }
-//! [active focus]
-
-//! [simple key event end]
-}
-//! [simple key event end]
diff --git a/doc/src/snippets/qml/focus/widget.qml b/doc/src/snippets/qml/focus/widget.qml
deleted file mode 100644
index 5ee8a71846..0000000000
--- a/doc/src/snippets/qml/focus/widget.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [window]
-
-//Window code that imports MyWidget
-Rectangle {
- id: window
- color: "white"; width: 240; height: 150
-
- Column {
- anchors.centerIn: parent; spacing: 15
-
- MyWidget {
- focus: true //set this MyWidget to receive the focus
- color: "lightblue"
- }
- MyWidget {
- color: "palegreen"
- }
- }
-}
-//! [window]
diff --git a/doc/src/snippets/qml/gradient.qml b/doc/src/snippets/qml/gradient.qml
deleted file mode 100644
index a5af6a7930..0000000000
--- a/doc/src/snippets/qml/gradient.qml
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-//![code]
-Rectangle {
- width: 100; height: 100
- gradient: Gradient {
- GradientStop { position: 0.0; color: "red" }
- GradientStop { position: 0.33; color: "yellow" }
- GradientStop { position: 1.0; color: "green" }
- }
-}
-//![code]
diff --git a/doc/src/snippets/qml/grid-spacing.qml b/doc/src/snippets/qml/grid-spacing.qml
deleted file mode 100644
index 1385492ac6..0000000000
--- a/doc/src/snippets/qml/grid-spacing.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Rectangle {
- width: 112; height: 112
- color: "#303030"
-
- Grid {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.verticalCenter: parent.verticalCenter
- columns: 2
- spacing: 6
-
- Rectangle { color: "#aa6666"; width: 50; height: 50 }
- Rectangle { color: "#aaaa66"; width: 50; height: 50 }
- Rectangle { color: "#9999aa"; width: 50; height: 50 }
- Rectangle { color: "#6666aa"; width: 50; height: 50 }
- }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/grid/grid.qml b/doc/src/snippets/qml/grid/grid.qml
deleted file mode 100644
index 7fb1bb6f5a..0000000000
--- a/doc/src/snippets/qml/grid/grid.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Grid {
- columns: 3
- spacing: 2
- Rectangle { color: "red"; width: 50; height: 50 }
- Rectangle { color: "green"; width: 20; height: 50 }
- Rectangle { color: "blue"; width: 50; height: 20 }
- Rectangle { color: "cyan"; width: 50; height: 50 }
- Rectangle { color: "magenta"; width: 10; height: 10 }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/gridview/ContactModel.qml b/doc/src/snippets/qml/gridview/ContactModel.qml
deleted file mode 100644
index f744c1e73f..0000000000
--- a/doc/src/snippets/qml/gridview/ContactModel.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-ListModel {
-
- ListElement {
- name: "Jim Williams"
- portrait: "pics/portrait.png"
- }
- ListElement {
- name: "John Brown"
- portrait: "pics/portrait.png"
- }
- ListElement {
- name: "Bill Smyth"
- portrait: "pics/portrait.png"
- }
- ListElement {
- name: "Sam Wise"
- portrait: "pics/portrait.png"
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/gridview/gridview.qml b/doc/src/snippets/qml/gridview/gridview.qml
deleted file mode 100644
index d3b37d1338..0000000000
--- a/doc/src/snippets/qml/gridview/gridview.qml
+++ /dev/null
@@ -1,163 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![import]
-import QtQuick 2.0
-//![import]
-
-Rectangle {
- width: childrenRect.width; height: childrenRect.height
-
-Row {
-
-//![classdocs simple]
-GridView {
- width: 300; height: 200
-
- model: ContactModel {}
- delegate: Column {
- Image { source: portrait; anchors.horizontalCenter: parent.horizontalCenter }
- Text { text: name; anchors.horizontalCenter: parent.horizontalCenter }
- }
-}
-//![classdocs simple]
-
-
-//![classdocs advanced]
-Rectangle {
- width: 300; height: 200
-
- Component {
- id: contactDelegate
- Item {
- width: grid.cellWidth; height: grid.cellHeight
- Column {
- anchors.fill: parent
- Image { source: portrait; anchors.horizontalCenter: parent.horizontalCenter }
- Text { text: name; anchors.horizontalCenter: parent.horizontalCenter }
- }
- }
- }
-
- GridView {
- id: grid
- anchors.fill: parent
- cellWidth: 80; cellHeight: 80
-
- model: ContactModel {}
- delegate: contactDelegate
- highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
- focus: true
- }
-}
-//![classdocs advanced]
-
-//![delayRemove]
-Component {
- id: delegate
- Item {
- GridView.onRemove: SequentialAnimation {
- PropertyAction { target: wrapper; property: "GridView.delayRemove"; value: true }
- NumberAnimation { target: wrapper; property: "scale"; to: 0; duration: 250; easing.type: Easing.InOutQuad }
- PropertyAction { target: wrapper; property: "GridView.delayRemove"; value: false }
- }
- }
-}
-//![delayRemove]
-
-//![highlightFollowsCurrentItem]
-Component {
- id: highlight
- Rectangle {
- width: view.cellWidth; height: view.cellHeight
- color: "lightsteelblue"; radius: 5
- x: view.currentItem.x
- y: view.currentItem.y
- Behavior on x { SpringAnimation { spring: 3; damping: 0.2 } }
- Behavior on y { SpringAnimation { spring: 3; damping: 0.2 } }
- }
-}
-
-GridView {
- id: view
- width: 300; height: 200
- cellWidth: 80; cellHeight: 80
-
- model: ContactModel {}
- delegate: Column {
- Image { source: portrait; anchors.horizontalCenter: parent.horizontalCenter }
- Text { text: name; anchors.horizontalCenter: parent.horizontalCenter }
- }
-
- highlight: highlight
- highlightFollowsCurrentItem: false
- focus: true
-}
-//![highlightFollowsCurrentItem]
-
-//![isCurrentItem]
-GridView {
- width: 300; height: 200
- cellWidth: 80; cellHeight: 80
-
- Component {
- id: contactsDelegate
- Rectangle {
- id: wrapper
- width: 80
- height: 80
- color: GridView.isCurrentItem ? "black" : "red"
- Text {
- id: contactInfo
- text: name + ": " + number
- color: wrapper.GridView.isCurrentItem ? "red" : "black"
- }
- }
- }
-
- model: ContactModel {}
- delegate: contactsDelegate
- focus: true
-}
-//![isCurrentItem]
-
-}
-
-}
diff --git a/doc/src/snippets/qml/image.qml b/doc/src/snippets/qml/image.qml
deleted file mode 100644
index 61724ffeea..0000000000
--- a/doc/src/snippets/qml/image.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Image {
- source: "pics/qtlogo.png"
-}
-//! [document]
diff --git a/doc/src/snippets/qml/keynavigation.qml b/doc/src/snippets/qml/keynavigation.qml
deleted file mode 100644
index 4854ecd0ed..0000000000
--- a/doc/src/snippets/qml/keynavigation.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Grid {
- width: 100; height: 100
- columns: 2
-
- Rectangle {
- id: topLeft
- width: 50; height: 50
- color: focus ? "red" : "lightgray"
- focus: true
-
- KeyNavigation.right: topRight
- KeyNavigation.down: bottomLeft
- }
-
- Rectangle {
- id: topRight
- width: 50; height: 50
- color: focus ? "red" : "lightgray"
-
- KeyNavigation.left: topLeft
- KeyNavigation.down: bottomRight
- }
-
- Rectangle {
- id: bottomLeft
- width: 50; height: 50
- color: focus ? "red" : "lightgray"
-
- KeyNavigation.right: bottomRight
- KeyNavigation.up: topLeft
- }
-
- Rectangle {
- id: bottomRight
- width: 50; height: 50
- color: focus ? "red" : "lightgray"
-
- KeyNavigation.left: bottomLeft
- KeyNavigation.up: topRight
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/keys/keys-handler.qml b/doc/src/snippets/qml/keys/keys-handler.qml
deleted file mode 100644
index 21fc98e23d..0000000000
--- a/doc/src/snippets/qml/keys/keys-handler.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 400; height: 400
-
-//! [key item]
-Item {
- anchors.fill: parent
- focus: true
- Keys.onLeftPressed: console.log("move left")
-}
-//! [key item]
-
-Text {
- anchors.fill: parent
- text: "Press a cursor key"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
-}
-}
diff --git a/doc/src/snippets/qml/keys/keys-pressed.qml b/doc/src/snippets/qml/keys/keys-pressed.qml
deleted file mode 100644
index 3c9a2d9dce..0000000000
--- a/doc/src/snippets/qml/keys/keys-pressed.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 400; height: 400
-
-//! [key item]
-Item {
- anchors.fill: parent
- focus: true
- Keys.onPressed: {
- if (event.key == Qt.Key_Left) {
- console.log("move left");
- event.accepted = true;
- }
- }
-}
-//! [key item]
-
-Text {
- anchors.fill: parent
- text: "Press a cursor key"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
-}
-}
diff --git a/doc/src/snippets/qml/layoutmirroring.qml b/doc/src/snippets/qml/layoutmirroring.qml
deleted file mode 100644
index 5daf3f58b3..0000000000
--- a/doc/src/snippets/qml/layoutmirroring.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- LayoutMirroring.enabled: true
- LayoutMirroring.childrenInherit: true
-
- width: 300; height: 50
- color: "yellow"
- border.width: 1
-
- Row {
- anchors { left: parent.left; margins: 5 }
- y: 5; spacing: 5
-
- Repeater {
- model: 5
-
- Rectangle {
- color: "red"
- opacity: (5 - index) / 5
- width: 40; height: 40
-
- Text {
- text: index + 1
- anchors.centerIn: parent
- }
- }
- }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/listview-decorations.qml b/doc/src/snippets/qml/listview-decorations.qml
deleted file mode 100644
index ccd7023d9c..0000000000
--- a/doc/src/snippets/qml/listview-decorations.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-//! [parent begin]
-Rectangle {
-//! [parent begin]
- width: 550; height: 220; color: "white"
-
-//! [model]
-ListModel {
- id: nameModel
- ListElement { name: "Alice" }
- ListElement { name: "Bob" }
- ListElement { name: "Jane" }
- ListElement { name: "Harry" }
- ListElement { name: "Wendy" }
-}
-//! [model]
-
-//! [delegate]
-Component {
- id: nameDelegate
- Text {
- text: name;
- font.pixelSize: 24
- }
-}
-//! [delegate]
-
-//! [decorations]
-ListView {
- anchors.fill: parent
- clip: true
- model: nameModel
- delegate: nameDelegate
- header: bannercomponent
- footer: Rectangle {
- width: parent.width; height: 30;
- gradient: clubcolors
- }
- highlight: Rectangle {
- width: parent.width
- color: "lightgray"
- }
-}
-
-Component { //instantiated when header is processed
- id: bannercomponent
- Rectangle {
- id: banner
- width: parent.width; height: 50
- gradient: clubcolors
- border {color: "#9EDDF2"; width: 2}
- Text {
- anchors.centerIn: parent
- text: "Club Members"
- font.pixelSize: 32
- }
- }
-}
-Gradient {
- id: clubcolors
- GradientStop { position: 0.0; color: "#8EE2FE"}
- GradientStop { position: 0.66; color: "#7ED2EE"}
-}
-//! [decorations]
-
-//! [parent end]
-}
-//! [parent end]
-//! [document]
diff --git a/doc/src/snippets/qml/listview-sections.qml b/doc/src/snippets/qml/listview-sections.qml
deleted file mode 100644
index 59cfdf80bb..0000000000
--- a/doc/src/snippets/qml/listview-sections.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [document]
-import QtQuick 2.0
-
-//! [parent begin]
-Rectangle {
-//! [parent begin]
- width: 150; height: 300; color: "white"
-
-//! [model]
-ListModel {
- id: nameModel
- ListElement { name: "Alice"; team: "Crypto" }
- ListElement { name: "Bob"; team: "Crypto" }
- ListElement { name: "Jane"; team: "QA" }
- ListElement { name: "Victor"; team: "QA" }
- ListElement { name: "Wendy"; team: "Graphics" }
-}
-//! [model]
-
-//! [delegate]
-Component {
- id: nameDelegate
- Text {
- text: name;
- font.pixelSize: 24
- anchors.left: parent.left
- anchors.leftMargin: 2
- }
-}
-//! [delegate]
-
-//! [section]
-ListView {
- anchors.fill: parent
- model: nameModel
- delegate: nameDelegate
- focus: true
- highlight: Rectangle {
- color: "lightblue"
- width: parent.width
- }
- section {
- property: "team"
- criteria: ViewSection.FullString
- delegate: Rectangle {
- color: "#b0dfb0"
- width: parent.width
- height: childrenRect.height + 4
- Text { anchors.horizontalCenter: parent.horizontalCenter
- font.pixelSize: 16
- font.bold: true
- text: section
- }
- }
- }
-}
-//! [section]
-
-//! [parent end]
-}
-//! [parent end]
-//! [document]
diff --git a/doc/src/snippets/qml/listview.qml b/doc/src/snippets/qml/listview.qml
deleted file mode 100644
index e8752a47cd..0000000000
--- a/doc/src/snippets/qml/listview.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-//! [parent begin]
-Rectangle {
-//! [parent begin]
- width: 175; height: 175; color: "white"
-
-//! [model]
-ListModel {
- id: petlist
- ListElement { type: "Cat" }
- ListElement { type: "Dog" }
- ListElement { type: "Mouse" }
- ListElement { type: "Rabbit" }
- ListElement { type: "Horse" }
-}
-//! [model]
-
-//! [delegate]
-Component {
- id: petdelegate
- Text {
- id: label
- font.pixelSize: 24
- text: if (index == 0)
- label.text = type + " (default)"
- else
- text: type
- }
-}
-//! [delegate]
-
-//! [view]
-ListView {
- id: view
- anchors.fill: parent
-
- model: petlist
- delegate: petdelegate
-}
-//! [view]
-
-//! [parent end]
-}
-//! [parent end]
-//! [document]
diff --git a/doc/src/snippets/qml/listview/ContactModel.qml b/doc/src/snippets/qml/listview/ContactModel.qml
deleted file mode 100644
index 395c637b6a..0000000000
--- a/doc/src/snippets/qml/listview/ContactModel.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-ListModel {
- ListElement {
- name: "Bill Smith"
- number: "555 3264"
- }
- ListElement {
- name: "John Brown"
- number: "555 8426"
- }
- ListElement {
- name: "Sam Wise"
- number: "555 0473"
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/listview/listview.qml b/doc/src/snippets/qml/listview/listview.qml
deleted file mode 100644
index 689e6d2c45..0000000000
--- a/doc/src/snippets/qml/listview/listview.qml
+++ /dev/null
@@ -1,149 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![import]
-import QtQuick 2.0
-//![import]
-
-Item {
-
-//![classdocs simple]
-ListView {
- width: 180; height: 200
-
- model: ContactModel {}
- delegate: Text {
- text: name + ": " + number
- }
-}
-//![classdocs simple]
-
-//![classdocs advanced]
-Rectangle {
- width: 180; height: 200
-
- Component {
- id: contactDelegate
- Item {
- width: 180; height: 40
- Column {
- Text { text: '<b>Name:</b> ' + name }
- Text { text: '<b>Number:</b> ' + number }
- }
- }
- }
-
- ListView {
- anchors.fill: parent
- model: ContactModel {}
- delegate: contactDelegate
- highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
- focus: true
- }
-}
-//![classdocs advanced]
-
-//![delayRemove]
-Component {
- id: delegate
- Item {
- ListView.onRemove: SequentialAnimation {
- PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
- NumberAnimation { target: wrapper; property: "scale"; to: 0; duration: 250; easing.type: Easing.InOutQuad }
- PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: false }
- }
- }
-}
-//![delayRemove]
-
-//![highlightFollowsCurrentItem]
-Component {
- id: highlight
- Rectangle {
- width: 180; height: 40
- color: "lightsteelblue"; radius: 5
- y: list.currentItem.y
- Behavior on y {
- SpringAnimation {
- spring: 3
- damping: 0.2
- }
- }
- }
-}
-
-ListView {
- id: list
- width: 180; height: 200
- model: ContactModel {}
- delegate: Text { text: name }
-
- highlight: highlight
- highlightFollowsCurrentItem: false
- focus: true
-}
-//![highlightFollowsCurrentItem]
-
-//![isCurrentItem]
-ListView {
- width: 180; height: 200
-
- Component {
- id: contactsDelegate
- Rectangle {
- id: wrapper
- width: 180
- height: contactInfo.height
- color: ListView.isCurrentItem ? "black" : "red"
- Text {
- id: contactInfo
- text: name + ": " + number
- color: wrapper.ListView.isCurrentItem ? "red" : "black"
- }
- }
- }
-
- model: ContactModel {}
- delegate: contactsDelegate
- focus: true
-}
-//![isCurrentItem]
-
-}
diff --git a/doc/src/snippets/qml/loader/KeyReader.qml b/doc/src/snippets/qml/loader/KeyReader.qml
deleted file mode 100644
index ef15a01bb1..0000000000
--- a/doc/src/snippets/qml/loader/KeyReader.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- Item {
- focus: true
- Keys.onPressed: {
- console.log("Loaded item captured:", event.text);
- event.accepted = true;
- }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/loader/MyItem.qml b/doc/src/snippets/qml/loader/MyItem.qml
deleted file mode 100644
index 2879e7ae23..0000000000
--- a/doc/src/snippets/qml/loader/MyItem.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: myItem
- signal message(string msg)
-
- width: 100; height: 100
-
- MouseArea {
- anchors.fill: parent
- onClicked: myItem.message("clicked!")
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/loader/connections.qml b/doc/src/snippets/qml/loader/connections.qml
deleted file mode 100644
index 82d770b2cb..0000000000
--- a/doc/src/snippets/qml/loader/connections.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 100; height: 100
-
- Loader {
- id: myLoader
- source: "MyItem.qml"
- }
-
- Connections {
- target: myLoader.item
- onMessage: console.log(msg)
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/loader/focus.qml b/doc/src/snippets/qml/loader/focus.qml
deleted file mode 100644
index 4447c62905..0000000000
--- a/doc/src/snippets/qml/loader/focus.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 200; height: 200
-
- Loader {
- id: loader
- focus: true
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: loader.source = "KeyReader.qml"
- }
-
- Keys.onPressed: {
- console.log("Captured:", event.text);
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/loader/simple.qml b/doc/src/snippets/qml/loader/simple.qml
deleted file mode 100644
index a4408c2231..0000000000
--- a/doc/src/snippets/qml/loader/simple.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 200
-
- Loader { id: pageLoader }
-
- MouseArea {
- anchors.fill: parent
- onClicked: pageLoader.source = "Page1.qml"
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/loader/sizeitem.qml b/doc/src/snippets/qml/loader/sizeitem.qml
deleted file mode 100644
index d673d82817..0000000000
--- a/doc/src/snippets/qml/loader/sizeitem.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 200
-
- Loader {
- // position the Loader in the center of the parent
- anchors.centerIn: parent
- sourceComponent: rect
- }
-
- Component {
- id: rect
- Rectangle {
- width: 50
- height: 50
- color: "red"
- }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/loader/sizeloader.qml b/doc/src/snippets/qml/loader/sizeloader.qml
deleted file mode 100644
index 551324598c..0000000000
--- a/doc/src/snippets/qml/loader/sizeloader.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this
-** file. Please review the following information to ensure the GNU Lesser
-** General Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 200
-
- Loader {
- // Explicitly set the size of the Loader to the parent item's size
- anchors.fill: parent
- sourceComponent: rect
- }
-
- Component {
- id: rect
- Rectangle {
- width: 50
- height: 50
- color: "red"
- }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/models/views-models-delegates.qml b/doc/src/snippets/qml/models/views-models-delegates.qml
deleted file mode 100644
index e9f872578f..0000000000
--- a/doc/src/snippets/qml/models/views-models-delegates.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//! [rectangle]
-Rectangle {
- width: 200; height: 200
-
- ListModel {
- id: fruitModel
- property string language: "en"
- ListElement {
- name: "Apple"
- cost: 2.45
- }
- ListElement {
- name: "Orange"
- cost: 3.25
- }
- ListElement {
- name: "Banana"
- cost: 1.95
- }
- }
-
- Component {
- id: fruitDelegate
- Row {
- Text { text: " Fruit: " + name; color: ListView.view.fruit_color }
- Text { text: " Cost: $" + cost }
- Text { text: " Language: " + ListView.view.model.language }
- }
- }
-
- ListView {
- property color fruit_color: "green"
- model: fruitModel
- delegate: fruitDelegate
- anchors.fill: parent
- }
-}
-//! [rectangle]
diff --git a/doc/src/snippets/qml/models/visual-model-and-view.qml b/doc/src/snippets/qml/models/visual-model-and-view.qml
deleted file mode 100644
index 97e443b675..0000000000
--- a/doc/src/snippets/qml/models/visual-model-and-view.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-Rectangle {
- width: 200; height: 200
-
- //! [visual model and view]
- VisualItemModel {
- id: itemModel
- Rectangle { height: 30; width: 80; color: "red" }
- Rectangle { height: 30; width: 80; color: "green" }
- Rectangle { height: 30; width: 80; color: "blue" }
- }
-
- ListView {
- anchors.fill: parent
- model: itemModel
- }
- //! [visual model and view]
-}
diff --git a/doc/src/snippets/qml/mousearea/mousearea-snippet.qml b/doc/src/snippets/qml/mousearea/mousearea-snippet.qml
deleted file mode 100644
index 237c0c31b0..0000000000
--- a/doc/src/snippets/qml/mousearea/mousearea-snippet.qml
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-//! [parent begin]
-Rectangle {
-//! [parent begin]
- width: 500; height: 500
- color: "green"
-
- Column {
- //! [anchor fill]
- Rectangle {
- id: button
- width: 100; height: 100
-
- MouseArea {
- anchors.fill: parent
- onClicked: console.log("button clicked")
- }
- MouseArea {
- width:150; height: 75
- onClicked: console.log("irregular area clicked")
- }
- }
- //! [anchor fill]
-
- Rectangle {
- width: 100; height: 100
-
- //! [enable handlers]
- MouseArea {
- hoverEnabled: true
- acceptedButtons: Qt.LeftButton | Qt.RightButton
- onEntered: console.log("mouse entered the area")
- onExited: console.log("mouse left the area")
- }
- //! [enable handlers]
- }
-
- Rectangle {
- width: 100; height: 100
-
- //! [mouse handlers]
- MouseArea {
- anchors.fill: parent
- onClicked: console.log("area clicked")
- onDoubleClicked: console.log("area double clicked")
- onEntered: console.log("mouse entered the area")
- onExited: console.log("mouse left the area")
- }
- //! [mouse handlers]
- }
-
- } //end of column
-//! [parent end]
-}
-//! [parent end]
-//! [document]
diff --git a/doc/src/snippets/qml/mousearea/mousearea.qml b/doc/src/snippets/qml/mousearea/mousearea.qml
deleted file mode 100644
index 1f35cd8b5f..0000000000
--- a/doc/src/snippets/qml/mousearea/mousearea.qml
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [import]
-import QtQuick 2.0
-//! [import]
-
-Rectangle {
- width: childrenRect.width
- height: childrenRect.height
-
- Row {
- //! [intro]
- Rectangle {
- width: 100; height: 100
- color: "green"
-
- MouseArea {
- anchors.fill: parent
- onClicked: { parent.color = 'red' }
- }
- }
- //! [intro]
-
- //! [intro-extended]
- Rectangle {
- width: 100; height: 100
- color: "green"
-
- MouseArea {
- anchors.fill: parent
- acceptedButtons: Qt.LeftButton | Qt.RightButton
- onClicked: {
- if (mouse.button == Qt.RightButton)
- parent.color = 'blue';
- else
- parent.color = 'red';
- }
- }
- }
- //! [intro-extended]
-
- //! [drag]
- Rectangle {
- id: container
- width: 600; height: 200
-
- Rectangle {
- id: rect
- width: 50; height: 50
- color: "red"
- opacity: (600.0 - rect.x) / 600
-
- MouseArea {
- anchors.fill: parent
- drag.target: rect
- drag.axis: Drag.XAxis
- drag.minimumX: 0
- drag.maximumX: container.width - rect.width
- }
- }
- }
- //! [drag]
-
- //! [mousebuttons]
- Text {
- text: mouseArea.pressedButtons & Qt.RightButton ? "right" : ""
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
-
- MouseArea {
- id: mouseArea
- anchors.fill: parent
- acceptedButtons: Qt.LeftButton | Qt.RightButton
- }
- }
- //! [mousebuttons]
-
- }
-}
diff --git a/doc/src/snippets/qml/mousearea/mouseareadragfilter.qml b/doc/src/snippets/qml/mousearea/mouseareadragfilter.qml
deleted file mode 100644
index 922bfea636..0000000000
--- a/doc/src/snippets/qml/mousearea/mouseareadragfilter.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [dragfilter]
-import QtQuick 2.0
-
-Rectangle {
- width: 480
- height: 320
- Rectangle {
- x: 30; y: 30
- width: 300; height: 240
- color: "lightsteelblue"
-
- MouseArea {
- anchors.fill: parent
- drag.target: parent;
- drag.axis: "XAxis"
- drag.minimumX: 30
- drag.maximumX: 150
- drag.filterChildren: true
-
- Rectangle {
- color: "yellow"
- x: 50; y : 50
- width: 100; height: 100
- MouseArea {
- anchors.fill: parent
- onClicked: console.log("Clicked")
- }
- }
- }
- }
-}
-//! [dragfilter]
diff --git a/doc/src/snippets/qml/multipointtoucharea/multipointtoucharea.qml b/doc/src/snippets/qml/multipointtoucharea/multipointtoucharea.qml
deleted file mode 100644
index e4c2ffb039..0000000000
--- a/doc/src/snippets/qml/multipointtoucharea/multipointtoucharea.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 400; height: 400
- MultiPointTouchArea {
- anchors.fill: parent
- touchPoints: [
- TouchPoint { id: point1 },
- TouchPoint { id: point2 }
- ]
- }
-
- Rectangle {
- width: 30; height: 30
- color: "green"
- x: point1.x
- y: point1.y
- }
-
- Rectangle {
- width: 30; height: 30
- color: "yellow"
- x: point2.x
- y: point2.y
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/numberanimation.qml b/doc/src/snippets/qml/numberanimation.qml
deleted file mode 100644
index 404381863d..0000000000
--- a/doc/src/snippets/qml/numberanimation.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 100; height: 100
- color: "red"
-
- NumberAnimation on x { to: 50; duration: 1000 }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/parallelanimation.qml b/doc/src/snippets/qml/parallelanimation.qml
deleted file mode 100644
index 20f6ccc1df..0000000000
--- a/doc/src/snippets/qml/parallelanimation.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- ParallelAnimation {
- running: true
- NumberAnimation { target: rect; property: "x"; to: 50; duration: 1000 }
- NumberAnimation { target: rect; property: "y"; to: 50; duration: 1000 }
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/parentanimation.qml b/doc/src/snippets/qml/parentanimation.qml
deleted file mode 100644
index 60429ed61c..0000000000
--- a/doc/src/snippets/qml/parentanimation.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 100
-
- Rectangle {
- id: redRect
- width: 100; height: 100
- color: "red"
- }
-
- Rectangle {
- id: blueRect
- x: redRect.width
- width: 50; height: 50
- color: "blue"
-
- states: State {
- name: "reparented"
- ParentChange { target: blueRect; parent: redRect; x: 10; y: 10 }
- }
-
- transitions: Transition {
- ParentAnimation {
- NumberAnimation { properties: "x,y"; duration: 1000 }
- }
- }
-
- MouseArea { anchors.fill: parent; onClicked: blueRect.state = "reparented" }
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/parentchange.qml b/doc/src/snippets/qml/parentchange.qml
deleted file mode 100644
index 4ae4476e13..0000000000
--- a/doc/src/snippets/qml/parentchange.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 100
-
- Rectangle {
- id: redRect
- width: 100; height: 100
- color: "red"
- }
-
- Rectangle {
- id: blueRect
- x: redRect.width
- width: 50; height: 50
- color: "blue"
-
- states: State {
- name: "reparented"
- ParentChange { target: blueRect; parent: redRect; x: 10; y: 10 }
- }
-
- MouseArea { anchors.fill: parent; onClicked: blueRect.state = "reparented" }
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/path/arcdirection.qml b/doc/src/snippets/qml/path/arcdirection.qml
deleted file mode 100644
index 7522649607..0000000000
--- a/doc/src/snippets/qml/path/arcdirection.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-//![0]
-Path {
- startX: 50; startY: 50
-
- PathArc {
- x: 150; y: 50
- radiusX: 75; radiusY: 50
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/path/arcradius.qml b/doc/src/snippets/qml/path/arcradius.qml
deleted file mode 100644
index 04f2919270..0000000000
--- a/doc/src/snippets/qml/path/arcradius.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-//![0]
-Path {
- startX: 0; startY: 100
-
- PathArc {
- relativeX: 50; y: 100
- radiusX: 25; radiusY: 15
- }
- PathArc {
- relativeX: 50; y: 100
- radiusX: 25; radiusY: 25
- }
- PathArc {
- relativeX: 50; y: 100
- radiusX: 25; radiusY: 50
- }
- PathArc {
- relativeX: 50; y: 100
- radiusX: 50; radiusY: 100
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/path/basicarc.qml b/doc/src/snippets/qml/path/basicarc.qml
deleted file mode 100644
index 562f2a0adf..0000000000
--- a/doc/src/snippets/qml/path/basicarc.qml
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-//![0]
-Path {
- startX: 100; startY: 0
-
- PathArc {
- x: 0; y: 100
- radiusX: 100; radiusY: 100
- useLargeArc: true
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/path/basiccurve.qml b/doc/src/snippets/qml/path/basiccurve.qml
deleted file mode 100644
index feb783cb01..0000000000
--- a/doc/src/snippets/qml/path/basiccurve.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Canvas {
- width: 400; height: 200
-
- Path {
- id: myPath
- startX: 0; startY: 100
-
- PathCurve { x: 75; y: 75 }
- PathCurve { x: 200; y: 150 }
- PathCurve { x: 325; y: 25 }
- PathCurve { x: 400; y: 100 }
- }
-
- onPaint: {
- context.strokeStyle = Qt.rgba(.4,.6,.8);
- context.path = myPath;
- context.stroke();
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/path/largearc.qml b/doc/src/snippets/qml/path/largearc.qml
deleted file mode 100644
index 69ce953c92..0000000000
--- a/doc/src/snippets/qml/path/largearc.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-//![0]
-Path {
- startX: 0; startY: 100
- PathArc {
- x: 100; y: 200
- radiusX: 100; radiusY: 100
- direction: PathArc.Clockwise
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/pathinterpolator.qml b/doc/src/snippets/qml/pathinterpolator.qml
deleted file mode 100644
index 77cc664e27..0000000000
--- a/doc/src/snippets/qml/pathinterpolator.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 400
- height: 400
-
- PathInterpolator {
- id: motionPath
-
- path: Path {
- startX: 0; startY: 0
-
- PathCubic {
- x: 350; y: 350
-
- control1X: 350; control1Y: 0
- control2X: 0; control2Y: 350
- }
- }
-
- NumberAnimation on progress { from: 0; to: 1; duration: 2000 }
- }
-
- Rectangle {
- width: 50; height: 50
- color: "green"
-
- //bind our attributes to follow the path as progress changes
- x: motionPath.x
- y: motionPath.y
- rotation: motionPath.angle
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/pathview/ContactModel.qml b/doc/src/snippets/qml/pathview/ContactModel.qml
deleted file mode 100644
index d191413f27..0000000000
--- a/doc/src/snippets/qml/pathview/ContactModel.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-ListModel {
- ListElement {
- name: "Bill Jones"
- icon: "pics/qtlogo.png"
- }
- ListElement {
- name: "Jane Doe"
- icon: "pics/qtlogo.png"
- }
- ListElement {
- name: "John Smith"
- icon: "pics/qtlogo.png"
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/pathview/pathattributes.qml b/doc/src/snippets/qml/pathview/pathattributes.qml
deleted file mode 100644
index d555998650..0000000000
--- a/doc/src/snippets/qml/pathview/pathattributes.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import QtQuick 2.0
-
-Rectangle {
- width: 240; height: 200
-
-//! [1]
- Component {
- id: delegate
- Item {
- width: 80; height: 80
- scale: PathView.iconScale
- opacity: PathView.iconOpacity
- Column {
- Image { anchors.horizontalCenter: nameText.horizontalCenter; width: 64; height: 64; source: icon }
- Text { id: nameText; text: name; font.pointSize: 16 }
- }
- }
- }
-//! [1]
-
-//! [2]
- PathView {
- anchors.fill: parent
- model: ContactModel {}
- delegate: delegate
- path: Path {
- startX: 120; startY: 100
- PathAttribute { name: "iconScale"; value: 1.0 }
- PathAttribute { name: "iconOpacity"; value: 1.0 }
- PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
- PathAttribute { name: "iconScale"; value: 0.3 }
- PathAttribute { name: "iconOpacity"; value: 0.5 }
- PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
- }
- }
-//! [2]
-}
-//! [0]
diff --git a/doc/src/snippets/qml/pathview/pathview.qml b/doc/src/snippets/qml/pathview/pathview.qml
deleted file mode 100644
index e5249d4cb6..0000000000
--- a/doc/src/snippets/qml/pathview/pathview.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import QtQuick 2.0
-
-Rectangle {
- width: 240; height: 200
-
-//! [1]
- Component {
- id: delegate
- Column {
- id: wrapper
- Image {
- anchors.horizontalCenter: nameText.horizontalCenter
- width: 64; height: 64
- source: icon
- }
- Text {
- id: nameText
- text: name
- font.pointSize: 16
- color: wrapper.PathView.isCurrentItem ? "red" : "black"
- }
- }
- }
-//! [1]
-
-//! [2]
- PathView {
- anchors.fill: parent
- model: ContactModel {}
- delegate: delegate
- path: Path {
- startX: 120; startY: 100
- PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
- PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
- }
- }
-//! [2]
-}
-//! [0]
diff --git a/doc/src/snippets/qml/propertyaction-sequential.qml b/doc/src/snippets/qml/propertyaction-sequential.qml
deleted file mode 100644
index 77d6ec194e..0000000000
--- a/doc/src/snippets/qml/propertyaction-sequential.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-Row {
-
- Item {
- width: 400; height: 400
-
- Rectangle {
- id: rect
- width: 200; height: 100
- color: "red"
-
- states: State {
- name: "rotated"
- PropertyChanges { target: rect; rotation: 180; transformOrigin: Item.BottomRight }
- }
-
- //! [sequential]
- transitions: Transition {
- SequentialAnimation {
- PropertyAction { target: rect; property: "transformOrigin" }
- RotationAnimation { duration: 1000; direction: RotationAnimation.Counterclockwise }
- }
- }
- //! [sequential]
-
- MouseArea {
- anchors.fill: parent
- onClicked: rect.state = "rotated"
- }
- }
- }
-}
diff --git a/doc/src/snippets/qml/propertyaction.qml b/doc/src/snippets/qml/propertyaction.qml
deleted file mode 100644
index 5ddef30177..0000000000
--- a/doc/src/snippets/qml/propertyaction.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-Row {
-
- //![transition]
- Item {
- width: 400; height: 400
-
- Rectangle {
- id: rect
- width: 200; height: 100
- color: "red"
-
- states: State {
- name: "rotated"
- PropertyChanges { target: rect; rotation: 180; transformOrigin: Item.BottomRight }
- }
-
- transitions: Transition {
- RotationAnimation { duration: 1000; direction: RotationAnimation.Counterclockwise }
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: rect.state = "rotated"
- }
- }
- }
- //![transition]
-
- Item {
- width: 300; height: 300
-
- Image { id: img; source: "pics/qt.png" }
-
- //![standalone]
- SequentialAnimation {
- PropertyAction { target: img; property: "smooth"; value: "true" }
- NumberAnimation { target: img; property: "width"; to: 300; duration: 1000 }
- PropertyAction { target: img; property: "smooth"; value: "false" }
- }
- //![standalone]
- }
-}
diff --git a/doc/src/snippets/qml/propertyanimation.qml b/doc/src/snippets/qml/propertyanimation.qml
deleted file mode 100644
index b5781af94a..0000000000
--- a/doc/src/snippets/qml/propertyanimation.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Row {
-
-//![transition]
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- //! [single state]
- states: State {
- name: "moved"
- PropertyChanges { target: rect; x: 50 }
- }
- //! [single state]
-
- transitions: Transition {
- PropertyAnimation { properties: "x,y"; easing.type: Easing.InOutQuad }
- }
-}
-//![transition]
-
-//![behavior]
-Rectangle {
- width: 100; height: 100
- color: "red"
-
- Behavior on x { PropertyAnimation {} }
-
- MouseArea { anchors.fill: parent; onClicked: parent.x = 50 }
-}
-//![behavior]
-
-//![propertyvaluesource]
-Rectangle {
- width: 100; height: 100
- color: "red"
-
- SequentialAnimation on x {
- loops: Animation.Infinite
- PropertyAnimation { to: 50 }
- PropertyAnimation { to: 0 }
- }
-}
-//![propertyvaluesource]
-
- //![standalone]
- Rectangle {
- id: theRect
- width: 100; height: 100
- color: "red"
-
- // this is a standalone animation, it's not running by default
- PropertyAnimation { id: animation; target: theRect; property: "width"; to: 30; duration: 500 }
-
- MouseArea { anchors.fill: parent; onClicked: animation.running = true }
- }
- //![standalone]
-}
diff --git a/doc/src/snippets/qml/propertychanges.qml b/doc/src/snippets/qml/propertychanges.qml
deleted file mode 100644
index 3be13f7861..0000000000
--- a/doc/src/snippets/qml/propertychanges.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![import]
-import QtQuick 2.0
-//![import]
-
-Column {
-
-//![0]
-Item {
- id: container
- width: 300; height: 300
-
- Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- MouseArea {
- id: mouseArea
- anchors.fill: parent
- }
-
- states: State {
- name: "resized"; when: mouseArea.pressed
- PropertyChanges { target: rect; color: "blue"; height: container.height }
- }
- }
-}
-//![0]
-
-//![reset]
-Rectangle {
- width: 300; height: 200
-
- Text {
- id: myText
- width: 50
- wrapMode: Text.WordWrap
- text: "a text string that is longer than 50 pixels"
-
- states: State {
- name: "widerText"
- PropertyChanges { target: myText; width: undefined }
- }
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: myText.state = "widerText"
- }
-}
-//![reset]
-}
diff --git a/doc/src/snippets/qml/qml-data-models/dynamic-listmodel.qml b/doc/src/snippets/qml/qml-data-models/dynamic-listmodel.qml
deleted file mode 100644
index da9610c117..0000000000
--- a/doc/src/snippets/qml/qml-data-models/dynamic-listmodel.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 200; height: 250
-
- //! [model]
- ListModel { id: fruitModel }
- //! [model]
-
- //! [view]
- ListView {
- anchors.fill: parent
- model: fruitModel
- delegate: Row {
- Text { text: "Fruit: " + name }
- Text { text: "Cost: $" + cost }
- }
- }
- //! [view]
-
- //! [mouse area]
- MouseArea {
- anchors.fill: parent
- onClicked: fruitModel.append({"cost": 5.95, "name":"Pizza"})
- }
- //! [mouse area]
-}
diff --git a/doc/src/snippets/qml/qml-data-models/listelements.qml b/doc/src/snippets/qml/qml-data-models/listelements.qml
deleted file mode 100644
index 0097423142..0000000000
--- a/doc/src/snippets/qml/qml-data-models/listelements.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 250
-
- //! [model]
- ListModel {
- id: fruitModel
-
- ListElement {
- name: "Apple"
- cost: 2.45
- }
- ListElement {
- name: "Orange"
- cost: 3.25
- }
- ListElement {
- name: "Banana"
- cost: 1.95
- }
- }
- //! [model]
-
- //! [view]
- ListView {
- anchors.fill: parent
- model: fruitModel
- delegate: Row {
- Text { text: "Fruit: " + name }
- Text { text: "Cost: $" + cost }
- }
- }
- //! [view]
-}
-//! [document]
diff --git a/doc/src/snippets/qml/qml-data-models/listmodel-listview.qml b/doc/src/snippets/qml/qml-data-models/listmodel-listview.qml
deleted file mode 100644
index 406fada2ce..0000000000
--- a/doc/src/snippets/qml/qml-data-models/listmodel-listview.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Item {
- width: 200; height: 250
-
- ListModel {
- id: myModel
- ListElement { type: "Dog"; age: 8 }
- ListElement { type: "Cat"; age: 5 }
- }
-
- Component {
- id: myDelegate
- Text { text: type + ", " + age }
- }
-
- ListView {
- anchors.fill: parent
- model: myModel
- delegate: myDelegate
- }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/rectangle/rect-border-width.qml b/doc/src/snippets/qml/rectangle/rect-border-width.qml
deleted file mode 100644
index 6dd4dbe739..0000000000
--- a/doc/src/snippets/qml/rectangle/rect-border-width.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-//![0]
-Rectangle {
- width: 100; height: 100
- color: "lightblue"
-
- Rectangle {
- anchors.fill: parent
- anchors.margins: 10
- clip: true
-
- Rectangle {
- anchors.fill: parent
- border.width: 1
- }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/rectangle/rectangle-colors.qml b/doc/src/snippets/qml/rectangle/rectangle-colors.qml
deleted file mode 100644
index 70f7a203f4..0000000000
--- a/doc/src/snippets/qml/rectangle/rectangle-colors.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 100; height: 200
-
-Item {
- x: 10; y: 10
- width: 80; height: 180
-
-//! [rectangles]
-Rectangle {
- color: "#00B000"
- width: 80; height: 80
-}
-
-Rectangle {
- color: "steelblue"
- y: 100; width: 80; height: 80
-}
-//! [rectangles]
-}
-}
diff --git a/doc/src/snippets/qml/rectangle/rectangle-gradient.qml b/doc/src/snippets/qml/rectangle/rectangle-gradient.qml
deleted file mode 100644
index e8146a6467..0000000000
--- a/doc/src/snippets/qml/rectangle/rectangle-gradient.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
- width: 100; height: 300
-
-Item {
- x: 10; y: 10
- width: 80; height: 280
-
-//! [rectangles]
-Rectangle {
- y: 0; width: 80; height: 80
- color: "lightsteelblue"
-}
-
-Rectangle {
- y: 100; width: 80; height: 80
- gradient: Gradient {
- GradientStop { position: 0.0; color: "lightsteelblue" }
- GradientStop { position: 1.0; color: "blue" }
- }
-}
-
-Rectangle {
- y: 200; width: 80; height: 80
- rotation: 90
- gradient: Gradient {
- GradientStop { position: 0.0; color: "lightsteelblue" }
- GradientStop { position: 1.0; color: "blue" }
- }
-}
-//! [rectangles]
-}
-}
diff --git a/doc/src/snippets/qml/rectangle/rectangle.qml b/doc/src/snippets/qml/rectangle/rectangle.qml
deleted file mode 100644
index c315a27da0..0000000000
--- a/doc/src/snippets/qml/rectangle/rectangle.qml
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Rectangle {
- width: 100
- height: 100
- color: "red"
- border.color: "black"
- border.width: 5
- radius: 10
-}
-//! [document]
diff --git a/doc/src/snippets/qml/repeaters/repeater-grid-index.qml b/doc/src/snippets/qml/repeaters/repeater-grid-index.qml
deleted file mode 100644
index 0f2b770d82..0000000000
--- a/doc/src/snippets/qml/repeaters/repeater-grid-index.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Rectangle {
- width: 400; height: 400; color: "black"
-
- Grid {
- x: 5; y: 5
- rows: 5; columns: 5; spacing: 10
-
- Repeater { model: 24
- Rectangle { width: 70; height: 70
- color: "lightgreen"
-
- Text { text: index
- font.pointSize: 30
- anchors.centerIn: parent } }
- }
- }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/repeaters/repeater.qml b/doc/src/snippets/qml/repeaters/repeater.qml
deleted file mode 100644
index 856b038a04..0000000000
--- a/doc/src/snippets/qml/repeaters/repeater.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [import]
-import QtQuick 2.0
-//! [import]
-
-Row {
-
-//! [simple]
-Row {
- Repeater {
- model: 3
- Rectangle {
- width: 100; height: 40
- border.width: 1
- color: "yellow"
- }
- }
-}
-//! [simple]
-
-//! [index]
-Column {
- Repeater {
- model: 10
- Text { text: "I'm item " + index }
- }
-}
-//! [index]
-
-//! [modeldata]
-Column {
- Repeater {
- model: ["apples", "oranges", "pears"]
- Text { text: "Data: " + modelData }
- }
-}
-//! [modeldata]
-
-//! [layout]
-Row {
- Rectangle { width: 10; height: 20; color: "red" }
- Repeater {
- model: 10
- Rectangle { width: 20; height: 20; radius: 10; color: "green" }
- }
- Rectangle { width: 10; height: 20; color: "blue" }
-}
-//! [layout]
-
-}
diff --git a/doc/src/snippets/qml/righttoleft.qml b/doc/src/snippets/qml/righttoleft.qml
deleted file mode 100644
index 0566be2f67..0000000000
--- a/doc/src/snippets/qml/righttoleft.qml
+++ /dev/null
@@ -1,149 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import "righttoleft"
-
-Column {
- width: 200
-//![0]
-// automatically aligned to the left
-Text {
- text: "Phone"
- width: 200
-}
-
-// automatically aligned to the right
-Text {
- text: "خامل"
- width: 200
-}
-
-// aligned to the left
-Text {
- text: "خامل"
- horizontalAlignment: Text.AlignLeft
- width: 200
-}
-
-// aligned to the right
-Text {
- text: "خامل"
- horizontalAlignment: Text.AlignLeft
- LayoutMirroring.enabled: true
- width: 200
-}
-//![0]
-
-//![1]
-// by default child items are positioned from left to right
-Row {
- Child {}
- Child {}
-}
-
-// position child items from right to left
-Row {
- layoutDirection: Qt.RightToLeft
- Child {}
- Child {}
-}
-
-// position child items from left to right
-Row {
- LayoutMirroring.enabled: true
- layoutDirection: Qt.RightToLeft
- Child {}
- Child {}
-}
-//![1]
-
-//![2]
-Item {
- height: 50; width: 150
-
- LayoutMirroring.enabled: true
- anchors.left: parent.left // anchor left becomes right
-
- Row {
- // items flow from left to right (as per default)
- Child {}
- Child {}
- Child {}
- }
-}
-//![2]
-
-//![3]
-Item {
- height: 50; width: 150
-
- LayoutMirroring.enabled: true
- LayoutMirroring.childrenInherit: true
- anchors.left: parent.left // anchor left becomes right
-
- Row {
- // setting childrenInherit in the parent causes these
- // items to flow from right to left instead
- Child {}
- Child {}
- Child {}
- }
-}
-//![3]
-
-//![4]
-Rectangle {
- color: "black"
- height: 50; width: 50
- x: mirror(10)
- function mirror(value) {
- return LayoutMirroring.enabled ? (parent.width - width - value) : value;
- }
-}
-//![4]
-
-//![5]
-Image {
- source: "arrow.png"
- mirror: true
-}
-//![5]
-}
diff --git a/doc/src/snippets/qml/rotation.qml b/doc/src/snippets/qml/rotation.qml
deleted file mode 100644
index c7f9df3a9b..0000000000
--- a/doc/src/snippets/qml/rotation.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [0]
-import QtQuick 2.0
-
-Row {
- x: 10; y: 10
- spacing: 10
-
- Image { source: "pics/qt.png" }
- Image {
- source: "pics/qt.png"
- transform: Rotation { origin.x: 30; origin.y: 30; axis { x: 0; y: 1; z: 0 } angle: 18 }
- smooth: true
- }
- Image {
- source: "pics/qt.png"
- transform: Rotation { origin.x: 30; origin.y: 30; axis { x: 0; y: 1; z: 0 } angle: 36 }
- smooth: true
- }
- Image {
- source: "pics/qt.png"
- transform: Rotation { origin.x: 30; origin.y: 30; axis { x: 0; y: 1; z: 0 } angle: 54 }
- smooth: true
- }
- Image {
- source: "pics/qt.png"
- transform: Rotation { origin.x: 30; origin.y: 30; axis { x: 0; y: 1; z: 0 } angle: 72 }
- smooth: true
- }
-}
-//! [0]
diff --git a/doc/src/snippets/qml/rotationanimation.qml b/doc/src/snippets/qml/rotationanimation.qml
deleted file mode 100644
index caa1ce8207..0000000000
--- a/doc/src/snippets/qml/rotationanimation.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 300; height: 300
-
- Rectangle {
- id: rect
- width: 150; height: 100; anchors.centerIn: parent
- color: "red"
- smooth: true
-
- states: State {
- name: "rotated"
- PropertyChanges { target: rect; rotation: 180 }
- }
-
- transitions: Transition {
- RotationAnimation { duration: 1000; direction: RotationAnimation.Counterclockwise }
- }
- }
-
- MouseArea { anchors.fill: parent; onClicked: rect.state = "rotated" }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/row.qml b/doc/src/snippets/qml/row.qml
deleted file mode 100644
index 3e505717d6..0000000000
--- a/doc/src/snippets/qml/row.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Rectangle {
- width: 320; height: 110
- color: "#c0c0c0"
-
- Row {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.verticalCenter: parent.verticalCenter
-
- spacing: 5
-
- Rectangle { width: 100; height: 100; radius: 20.0
- color: "#024c1c" }
- Rectangle { width: 100; height: 100; radius: 20.0
- color: "#42a51c" }
- Rectangle { width: 100; height: 100; radius: 20.0
- color: "white" }
- }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/row/row.qml b/doc/src/snippets/qml/row/row.qml
deleted file mode 100644
index 465baa577b..0000000000
--- a/doc/src/snippets/qml/row/row.qml
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [document]
-import QtQuick 2.0
-
-Row {
- spacing: 2
- Rectangle { color: "red"; width: 50; height: 50 }
- Rectangle { color: "green"; width: 20; height: 50 }
- Rectangle { color: "blue"; width: 50; height: 20 }
-}
-//! [document]
diff --git a/doc/src/snippets/qml/sequentialanimation.qml b/doc/src/snippets/qml/sequentialanimation.qml
deleted file mode 100644
index 73923e4ea0..0000000000
--- a/doc/src/snippets/qml/sequentialanimation.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- SequentialAnimation {
- running: true
- NumberAnimation { target: rect; property: "x"; to: 50; duration: 1000 }
- NumberAnimation { target: rect; property: "y"; to: 50; duration: 1000 }
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/smoothedanimation.qml b/doc/src/snippets/qml/smoothedanimation.qml
deleted file mode 100644
index ba6f505976..0000000000
--- a/doc/src/snippets/qml/smoothedanimation.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 800; height: 600
- color: "blue"
-
- Rectangle {
- width: 60; height: 60
- x: rect1.x - 5; y: rect1.y - 5
- color: "green"
-
- Behavior on x { SmoothedAnimation { velocity: 200 } }
- Behavior on y { SmoothedAnimation { velocity: 200 } }
- }
-
- Rectangle {
- id: rect1
- width: 50; height: 50
- color: "red"
- }
-
- focus: true
- Keys.onRightPressed: rect1.x = rect1.x + 100
- Keys.onLeftPressed: rect1.x = rect1.x - 100
- Keys.onUpPressed: rect1.y = rect1.y - 100
- Keys.onDownPressed: rect1.y = rect1.y + 100
-}
-//![0]
diff --git a/doc/src/snippets/qml/springanimation.qml b/doc/src/snippets/qml/springanimation.qml
deleted file mode 100644
index e04c483405..0000000000
--- a/doc/src/snippets/qml/springanimation.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![0]
-import QtQuick 2.0
-
-Item {
- width: 300; height: 300
-
- Rectangle {
- id: rect
- width: 50; height: 50
- color: "red"
-
- Behavior on x { SpringAnimation { spring: 2; damping: 0.2 } }
- Behavior on y { SpringAnimation { spring: 2; damping: 0.2 } }
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: {
- rect.x = mouse.x - rect.width/2
- rect.y = mouse.y - rect.height/2
- }
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/state-when.qml b/doc/src/snippets/qml/state-when.qml
deleted file mode 100644
index de9fb39cef..0000000000
--- a/doc/src/snippets/qml/state-when.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-//![0]
-Rectangle {
- id: myRect
- width: 100; height: 100
- color: "red"
-
- MouseArea { id: mouseArea; anchors.fill: parent }
-
- states: State {
- name: "hidden"; when: mouseArea.pressed
- PropertyChanges { target: myRect; opacity: 0 }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/state.qml b/doc/src/snippets/qml/state.qml
deleted file mode 100644
index 5948cba770..0000000000
--- a/doc/src/snippets/qml/state.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: myRect
- width: 100; height: 100
- color: "black"
-
- MouseArea {
- id: mouseArea
- anchors.fill: parent
- onClicked: myRect.state == 'clicked' ? myRect.state = "" : myRect.state = 'clicked';
- }
-
- states: [
- State {
- name: "clicked"
- PropertyChanges { target: myRect; color: "red" }
- }
- ]
-}
-//![0]
diff --git a/doc/src/snippets/qml/states.qml b/doc/src/snippets/qml/states.qml
deleted file mode 100644
index aeb805f38e..0000000000
--- a/doc/src/snippets/qml/states.qml
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![document]
-import QtQuick 2.0
-
-//![parent begin]
-Rectangle {
-//![parent begin]
-
- id: screen
- width: 400; height: 500
-
-
-Rectangle {
- id: flag
-}
-Column {
- spacing: 15
-//![signal states]
-Rectangle {
- id: signal
- width: 200; height: 200
- state: "NORMAL"
-
- states: [
- State {
- name: "NORMAL"
- PropertyChanges { target: signal; color: "green"}
- PropertyChanges { target: flag; state: "FLAG_DOWN"}
- },
- State {
- name: "CRITICAL"
- PropertyChanges { target: signal; color: "red"}
- PropertyChanges { target: flag; state: "FLAG_UP"}
- }
- ]
-}
-//![signal states]
-
-//![switch states]
-Rectangle {
- id: signalswitch
- width: 75; height: 75
- color: "blue"
-
- MouseArea {
- anchors.fill: parent
- onClicked: {
- if (signal.state == "NORMAL")
- signal.state = "CRITICAL"
- else
- signal.state = "NORMAL"
- }
- }
-}
-//![switch states]
-
-//![when property]
-Rectangle {
- id: bell
- width: 75; height: 75
- color: "yellow"
-
- states: State {
- name: "RINGING"
- when: (signal.state == "CRITICAL")
- PropertyChanges {target: speaker; play: "RING!"}
- }
-}
-//![when property]
-
-Text {
- id: speaker
- property alias play: speaker.text
- text: "NORMAL"
-}
-
-} // end of row
-
-//![parent end]
-}
-//![parent end]
-
-//![document]
diff --git a/doc/src/snippets/qml/states/statechangescript.qml b/doc/src/snippets/qml/states/statechangescript.qml
deleted file mode 100644
index 262938fc9c..0000000000
--- a/doc/src/snippets/qml/states/statechangescript.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Item {
-//! [state and transition]
-State {
- name: "state1"
- StateChangeScript {
- name: "myScript"
- script: doStateStuff();
- }
- // ...
-}
-// ...
-Transition {
- to: "state1"
- SequentialAnimation {
- NumberAnimation { /* ... */ }
- ScriptAction { scriptName: "myScript" }
- NumberAnimation { /* ... */ }
- }
-}
-//! [state and transition]
-}
diff --git a/doc/src/snippets/qml/systempalette.qml b/doc/src/snippets/qml/systempalette.qml
deleted file mode 100644
index 4cb42dee93..0000000000
--- a/doc/src/snippets/qml/systempalette.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
-
- width: 640; height: 480
- color: myPalette.window
-
- Text {
- anchors.fill: parent
- text: "Hello!"; color: myPalette.windowText
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/text/onLinkActivated.qml b/doc/src/snippets/qml/text/onLinkActivated.qml
deleted file mode 100644
index 03641d989e..0000000000
--- a/doc/src/snippets/qml/text/onLinkActivated.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtQml module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-Rectangle {
- width: 700; height: 400
-
-//![0]
- Text {
- textFormat: Text.RichText
- text: "The main website is at <a href=\"http://qt.nokia.com\">Nokia Qt DF</a>."
- onLinkActivated: console.log(link + " link activated")
- }
-//![0]
-
-}
-
diff --git a/doc/src/snippets/qml/texthandling.qml b/doc/src/snippets/qml/texthandling.qml
deleted file mode 100644
index 03e5011202..0000000000
--- a/doc/src/snippets/qml/texthandling.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [document]
-import QtQuick 2.0
-
-
-//! [parent begin]
-Rectangle {
-//! [parent begin]
- width: 300; height: 300
- id: screen
-
-Column {
- anchors.centerIn:parent
-
-//! [int validator]
-Column {
- spacing: 10
-
- Text {
- text: "Enter a value from 0 to 2000"
- }
- TextInput {
- focus: true
- validator: IntValidator { bottom:0; top: 2000}
- }
-}
-//! [int validator]
-
-//! [regexp validator]
-Column {
- spacing: 10
-
- Text {
- text: "Which basket?"
- }
- TextInput {
- focus: true
- validator: RegExpValidator { regExp: /fruit basket/ }
- }
-}
-//! [regexp validator]
-
-//end of column
-}
-
-//! [parent end]
-}
-//! [parent end]
-
-//! [document]
-
diff --git a/doc/src/snippets/qml/transition-from-to-modified.qml b/doc/src/snippets/qml/transition-from-to-modified.qml
deleted file mode 100644
index 184e95afe2..0000000000
--- a/doc/src/snippets/qml/transition-from-to-modified.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- MouseArea { id: mouseArea; anchors.fill: parent }
-
- states: State {
- name: "brighter"; when: mouseArea.pressed
- PropertyChanges { target: rect; color: "yellow" }
- }
-
- //! [modified transition]
- transitions: Transition {
- to: "brighter"
- ColorAnimation { duration: 1000 }
- }
- //! [modified transition]
-}
diff --git a/doc/src/snippets/qml/transition-from-to.qml b/doc/src/snippets/qml/transition-from-to.qml
deleted file mode 100644
index c876f5cb9c..0000000000
--- a/doc/src/snippets/qml/transition-from-to.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//![0]
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- MouseArea { id: mouseArea; anchors.fill: parent }
-
- states: State {
- name: "brighter"; when: mouseArea.pressed
- PropertyChanges { target: rect; color: "yellow" }
- }
-
- transitions: Transition {
- ColorAnimation { duration: 1000 }
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/transition-reversible.qml b/doc/src/snippets/qml/transition-reversible.qml
deleted file mode 100644
index 4f7ae83468..0000000000
--- a/doc/src/snippets/qml/transition-reversible.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.0
-
-//![0]
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- MouseArea { id: mouseArea; anchors.fill: parent }
-
- states: State {
- name: "brighter"
- when: mouseArea.pressed
- PropertyChanges { target: rect; color: "yellow"; x: 50 }
- }
-
- //! [sequential animations]
- transitions: Transition {
- SequentialAnimation {
- PropertyAnimation { property: "x"; duration: 1000 }
- ColorAnimation { duration: 1000 }
- }
- }
- //! [sequential animations]
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/transition.qml b/doc/src/snippets/qml/transition.qml
deleted file mode 100644
index 614c5d364f..0000000000
--- a/doc/src/snippets/qml/transition.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- id: rect
- width: 100; height: 100
- color: "red"
-
- MouseArea {
- id: mouseArea
- anchors.fill: parent
- }
-
- states: State {
- name: "moved"; when: mouseArea.pressed
- PropertyChanges { target: rect; x: 50; y: 50 }
- }
-
- transitions: Transition {
- NumberAnimation { properties: "x,y"; easing.type: Easing.InOutQuad }
- }
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/transitions-list.qml b/doc/src/snippets/qml/transitions-list.qml
deleted file mode 100644
index f2ba768559..0000000000
--- a/doc/src/snippets/qml/transitions-list.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-
-Rectangle {
- width: 150; height: 250
-
- Rectangle {
- id: stopLight
- x: 25; y: 15; width: 100; height: 100
- }
- Rectangle {
- id: goLight
- x: 25; y: 135; width: 100; height: 100
- }
-
- states: [
- State {
- name: "stop"
- PropertyChanges { target: stopLight; color: "red" }
- PropertyChanges { target: goLight; color: "black" }
- },
- State {
- name: "go"
- PropertyChanges { target: stopLight; color: "black" }
- PropertyChanges { target: goLight; color: "green" }
- }
- ]
-
- state: "stop"
-
- MouseArea {
- anchors.fill: parent
- onClicked: parent.state == "stop" ?
- parent.state = "go" : parent.state = "stop"
- }
-
- //! [list of transitions]
- transitions: [
- Transition {
- from: "stop"; to: "go"
- PropertyAnimation { target: stopLight
- properties: "color"; duration: 1000 }
- },
- Transition {
- from: "go"; to: "stop"
- PropertyAnimation { target: goLight
- properties: "color"; duration: 1000 }
- } ]
- //! [list of transitions]
-}
diff --git a/doc/src/snippets/qml/visualdatagroup.qml b/doc/src/snippets/qml/visualdatagroup.qml
deleted file mode 100644
index 46ac9a3d7a..0000000000
--- a/doc/src/snippets/qml/visualdatagroup.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 200; height: 100
-
- VisualDataModel {
- id: visualModel
- model: ListModel {
- ListElement { name: "Apple" }
- ListElement { name: "Orange" }
- }
-
- groups: [
- VisualDataGroup { name: "selected" }
- ]
-
- delegate: Rectangle {
- id: item
- height: 25
- width: 200
- Text {
- text: {
- var text = "Name: " + name
- if (item.VisualDataModel.inSelected)
- text += " (" + item.VisualDataModel.selectedIndex + ")"
- return text;
- }
- }
- MouseArea {
- anchors.fill: parent
- onClicked: item.VisualDataModel.inSelected = !item.VisualDataModel.inSelected
- }
- }
- }
-
- ListView {
- anchors.fill: parent
- model: visualModel
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/visualdatamodel.qml b/doc/src/snippets/qml/visualdatamodel.qml
deleted file mode 100644
index 87b836e224..0000000000
--- a/doc/src/snippets/qml/visualdatamodel.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-Rectangle {
- width: 200; height: 100
-
- VisualDataModel {
- id: visualModel
- model: ListModel {
- ListElement { name: "Apple" }
- ListElement { name: "Orange" }
- }
- delegate: Rectangle {
- height: 25
- width: 100
- Text { text: "Name: " + name}
- }
- }
-
- ListView {
- anchors.fill: parent
- model: visualModel
- }
-}
-//![0]
diff --git a/doc/src/snippets/qml/visualdatamodel_rootindex/main.cpp b/doc/src/snippets/qml/visualdatamodel_rootindex/main.cpp
deleted file mode 100644
index 4468d06db4..0000000000
--- a/doc/src/snippets/qml/visualdatamodel_rootindex/main.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the QtQml module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-#include <QQuickView>
-#include <QQmlContext>
-
-#include <QApplication>
-#include <QDirModel>
-
-//![0]
-int main(int argc, char ** argv)
-{
- QApplication app(argc, argv);
-
- QQuickView view;
-
- QDirModel model;
- view.rootContext()->setContextProperty("dirModel", &model);
-
- view.setSource(QUrl::fromLocalFile("view.qml"));
- view.show();
-
- return app.exec();
-}
-//![0]
-
diff --git a/doc/src/snippets/qml/visualdatamodel_rootindex/view.qml b/doc/src/snippets/qml/visualdatamodel_rootindex/view.qml
deleted file mode 100644
index 24d6b47f8d..0000000000
--- a/doc/src/snippets/qml/visualdatamodel_rootindex/view.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
-** the names of its contributors may be used to endorse or promote
-** products derived from this software without specific prior written
-** permission.
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//![0]
-import QtQuick 2.0
-
-ListView {
- id: view
- width: 300
- height: 400
-
- model: VisualDataModel {
- model: dirModel
-
- delegate: Rectangle {
- width: 200; height: 25
- Text { text: filePath }
-
- MouseArea {
- anchors.fill: parent
- onClicked: {
- if (model.hasModelChildren)
- view.model.rootIndex = view.model.modelIndex(index)
- }
- }
- }
- }
-}
-//![0]