From 9b0eb42b0ef0871630374191914cc01983af1d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Mon, 3 Feb 2014 09:22:38 +0200 Subject: QML filename corrections, docs update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0df3a913d7e96f8bf04133b67c61fe2c73b7bd64 Reviewed-by: Tomi Korpipää --- examples/qmlbars/doc/src/qmlbars.qdoc | 4 ++-- examples/qmllegend/doc/src/qmllegend.qdoc | 10 +++++----- examples/qmlscatter/doc/src/qmlscatter.qdoc | 4 ++-- examples/qmlsurface/doc/src/qmlsurface.qdoc | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/qmlbars/doc/src/qmlbars.qdoc b/examples/qmlbars/doc/src/qmlbars.qdoc index ecd8055a..574d36a3 100644 --- a/examples/qmlbars/doc/src/qmlbars.qdoc +++ b/examples/qmlbars/doc/src/qmlbars.qdoc @@ -36,7 +36,7 @@ The example data is monthly income and expenses of a fictional company over several years. The data is defined in a list model in \c data.qml like this: - \snippet ../examples/qmlbars/qml/qmlbars/data.qml 0 + \snippet ../examples/qmlbars/qml/qmlbars/Data.qml 0 \dots Each data item has four roles: year, month, income, and expenses. Years and months are natural to @@ -65,7 +65,7 @@ \c axes.qml. This is done because the data contains abbreviated month names, which we don't want to use for our column labels: - \snippet ../examples/qmlbars/qml/qmlbars/axes.qml 0 + \snippet ../examples/qmlbars/qml/qmlbars/Axes.qml 0 \section1 Switching series diff --git a/examples/qmllegend/doc/src/qmllegend.qdoc b/examples/qmllegend/doc/src/qmllegend.qdoc index 14bacf06..586ba415 100644 --- a/examples/qmllegend/doc/src/qmllegend.qdoc +++ b/examples/qmllegend/doc/src/qmllegend.qdoc @@ -41,9 +41,9 @@ and a text field, which shows the name of the series. The colors we get from the series and the theme supplied at legend item initialization: - \snippet ../examples/qmllegend/qml/qmllegend/legenditem.qml 0 + \snippet ../examples/qmllegend/qml/qmllegend/LegendItem.qml 0 \dots 4 - \snippet ../examples/qmllegend/qml/qmllegend/legenditem.qml 1 + \snippet ../examples/qmllegend/qml/qmllegend/LegendItem.qml 1 We want the legend to be interactive, so we add additional logic to enable selection of a series by clicking on a legend item, as well as highlighting the legend item corresponding @@ -52,16 +52,16 @@ The highlight depends on the selection state of the series, so we define two states, which follow the Bar3DSeries::selectedBar property and adjust the \c legendItem color appropriately: - \snippet ../examples/qmllegend/qml/qmllegend/legenditem.qml 3 + \snippet ../examples/qmllegend/qml/qmllegend/LegendItem.qml 3 To make the legend item interactive, we define a MouseArea to detect clicks on it and adjust the series selection accordingly: - \snippet ../examples/qmllegend/qml/qmllegend/legenditem.qml 2 + \snippet ../examples/qmllegend/qml/qmllegend/LegendItem.qml 2 The \c previousSelection used above is another custom property of \c LegendItem, which we update whenever selection changes on the series. This way we remember the last selected bar of each series: - \snippet ../examples/qmllegend/qml/qmllegend/legenditem.qml 4 + \snippet ../examples/qmllegend/qml/qmllegend/LegendItem.qml 4 */ diff --git a/examples/qmlscatter/doc/src/qmlscatter.qdoc b/examples/qmlscatter/doc/src/qmlscatter.qdoc index fc982ebf..0903b875 100644 --- a/examples/qmlscatter/doc/src/qmlscatter.qdoc +++ b/examples/qmlscatter/doc/src/qmlscatter.qdoc @@ -140,7 +140,7 @@ In the main component we'll add the data itself in a \c ListModel and name it \c {dataModel}: - \snippet ../examples/qmlscatter/qml/qmlscatter/data.qml 0 + \snippet ../examples/qmlscatter/qml/qmlscatter/Data.qml 0 \dots We'll add two more of these for the other two series, and name them \c dataModelTwo and @@ -149,7 +149,7 @@ Then we need to expose the data models to be usable from \c {main.qml}. We do this by defining them as aliases in the main data component: - \snippet ../examples/qmlscatter/qml/qmlscatter/data.qml 1 + \snippet ../examples/qmlscatter/qml/qmlscatter/Data.qml 1 Now we can use the data from \c data.qml with \c scatterGraph in \c {main.qml}. First we'll add a Scatter3DSeries and call it \c {scatterSeries}: diff --git a/examples/qmlsurface/doc/src/qmlsurface.qdoc b/examples/qmlsurface/doc/src/qmlsurface.qdoc index 78f9c745..00ef03d4 100644 --- a/examples/qmlsurface/doc/src/qmlsurface.qdoc +++ b/examples/qmlsurface/doc/src/qmlsurface.qdoc @@ -47,7 +47,7 @@ The other method to set surface data used in this example is with model mapping. We do that by first defining a \c ListModel containing the data for the surface: - \snippet ../examples/qmlsurface/qml/qmlsurface/data.qml 0 + \snippet ../examples/qmlsurface/qml/qmlsurface/Data.qml 0 \dots 4 Then we set up a Surface3DSeries with a ItemModelSurfaceDataProxy: -- cgit v1.2.3