Remove duplicated docs
In the move of docs to a separate file, this copy of docs seemed to be resurrected by mistake. Removing it and properly formatting the code. Change-Id: Id7257c232880a8829e8864af12c5b7b5c484a398 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
This commit is contained in:
parent
464626ffa2
commit
9237c2ecb5
|
@ -42,78 +42,22 @@ import QtQuick 2.0
|
||||||
import QtQml.Models 2.1
|
import QtQml.Models 2.1
|
||||||
import "../shared" as Examples
|
import "../shared" as Examples
|
||||||
|
|
||||||
/*!
|
Item {
|
||||||
\title QtQuick Examples - Views
|
height: 480
|
||||||
\example quick/views
|
width: 320
|
||||||
\brief This is a collection of QML model and view examples
|
Examples.LauncherList {
|
||||||
\image qml-modelviews-example.png
|
id: ll
|
||||||
|
anchors.fill: parent
|
||||||
This is a collection of small QML examples relating to model and view functionality. They
|
Component.onCompleted: {
|
||||||
are focused on the views side, which is the visual representation of the data in the models.
|
addExample("GridView", "A simple GridView", Qt.resolvedUrl("gridview/gridview-example.qml"))
|
||||||
|
addExample("Dynamic List", "A dynamically alterable list", Qt.resolvedUrl("listview/dynamiclist.qml"))
|
||||||
\section2 GridView and PathView demonstrate usage of these elements to display views.
|
addExample("Expanding Delegates", "A ListView with delegates that expand", Qt.resolvedUrl("listview/expandingdelegates.qml"))
|
||||||
\snippet examples/quick/views/gridview/gridview-example.qml 0
|
addExample("Highlight", "A ListView with a custom highlight", Qt.resolvedUrl("listview/highlight.qml"))
|
||||||
|
addExample("Highlight Ranges", "The three highlight ranges of ListView", Qt.resolvedUrl("listview/highlightranges.qml"))
|
||||||
\section2 Dynamic List demonstrates animation of runtime additions and removals to a ListView.
|
addExample("Sections", "ListView section headers and footers", Qt.resolvedUrl("listview/sections.qml"))
|
||||||
|
addExample("Packages", "Transitions between a ListView and GridView", Qt.resolvedUrl("package/view.qml"))
|
||||||
The ListView.onAdd signal handler runs an animation when new items are added to the
|
addExample("PathView", "A simple PathView", Qt.resolvedUrl("pathview/pathview-example.qml"))
|
||||||
view, and the ListView.onRemove another when they are removed.
|
addExample("ObjectModel", "Using a ObjectModel", Qt.resolvedUrl("objectmodel/objectmodel.qml"))
|
||||||
\snippet examples/quick/views/listview/dynamiclist.qml 0
|
|
||||||
\snippet examples/quick/views/listview/dynamiclist.qml 1
|
|
||||||
|
|
||||||
\section2 Expanding Delegates demonstrates delegates that expand when activated.
|
|
||||||
|
|
||||||
It has a complex delegate the size and appearance of which can change, displacing
|
|
||||||
other items in the view.
|
|
||||||
\snippet examples/quick/views/listview/expandingdelegates.qml 0
|
|
||||||
\snippet examples/quick/views/listview/expandingdelegates.qml 1
|
|
||||||
\snippet examples/quick/views/listview/expandingdelegates.qml 2
|
|
||||||
\snippet examples/quick/views/listview/expandingdelegates.qml 3
|
|
||||||
|
|
||||||
\section2 Highlight demonstrates adding a custom highlight to a ListView.
|
|
||||||
\snippet examples/quick/views/listview/highlight.qml 0
|
|
||||||
|
|
||||||
\section2 Highlight Ranges shows the three different highlight range modes of ListView.
|
|
||||||
\snippet examples/quick/views/listview/highlightranges.qml 0
|
|
||||||
\snippet examples/quick/views/listview/highlightranges.qml 1
|
|
||||||
\snippet examples/quick/views/listview/highlightranges.qml 2
|
|
||||||
|
|
||||||
\section2 Sections demonstrates the various section headers and footers available to ListView.
|
|
||||||
\snippet examples/quick/views/listview/sections.qml 0
|
|
||||||
|
|
||||||
\section2 Packages demonstrates using Packages to transition delegates between two views.
|
|
||||||
|
|
||||||
It has a Package which defines delegate items for each view and an item that can
|
|
||||||
be transferred between delegates.
|
|
||||||
|
|
||||||
\snippet examples/quick/views/package/Delegate.qml 0
|
|
||||||
|
|
||||||
A DelegateModel allows the individual views to access their specific items from
|
|
||||||
the shared package delegate.
|
|
||||||
|
|
||||||
\snippet examples/quick/views/package/view.qml 0
|
|
||||||
|
|
||||||
\section2 ObjectModel uses a ObjectModel for the model instead of a ListModel.
|
|
||||||
|
|
||||||
\snippet examples/quick/views/objectmodel/objectmodel.qml 0
|
|
||||||
*/
|
|
||||||
|
|
||||||
Item {
|
|
||||||
height: 480
|
|
||||||
width: 320
|
|
||||||
Examples.LauncherList {
|
|
||||||
id: ll
|
|
||||||
anchors.fill: parent
|
|
||||||
Component.onCompleted: {
|
|
||||||
addExample("GridView", "A simple GridView", Qt.resolvedUrl("gridview/gridview-example.qml"))
|
|
||||||
addExample("Dynamic List", "A dynamically alterable list", Qt.resolvedUrl("listview/dynamiclist.qml"))
|
|
||||||
addExample("Expanding Delegates", "A ListView with delegates that expand", Qt.resolvedUrl("listview/expandingdelegates.qml"))
|
|
||||||
addExample("Highlight", "A ListView with a custom highlight", Qt.resolvedUrl("listview/highlight.qml"))
|
|
||||||
addExample("Highlight Ranges", "The three highlight ranges of ListView", Qt.resolvedUrl("listview/highlightranges.qml"))
|
|
||||||
addExample("Sections", "ListView section headers and footers", Qt.resolvedUrl("listview/sections.qml"))
|
|
||||||
addExample("Packages", "Transitions between a ListView and GridView", Qt.resolvedUrl("package/view.qml"))
|
|
||||||
addExample("PathView", "A simple PathView", Qt.resolvedUrl("pathview/pathview-example.qml"))
|
|
||||||
addExample("ObjectModel", "Using a ObjectModel", Qt.resolvedUrl("objectmodel/objectmodel.qml"))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue