summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Rosa <marek.rosa@digia.com>2012-07-31 15:12:50 +0300
committerMarek Rosa <marek.rosa@digia.com>2012-07-31 15:12:50 +0300
commit34fc5c0da098b271f7558d7a1e71deea8e698e48 (patch)
tree0842064c6b882f6bf8a1c8b825465b26b09f7319
parent10a2cce6b5a99085ce09b1d0fabc88f98249523e (diff)
Renamed donutdrilldown example to donutbreakdown
-rw-r--r--doc/src/examples-donutbreakdown.qdoc (renamed from doc/src/examples-donutdrilldown.qdoc)22
-rw-r--r--doc/src/examples.qdoc2
-rw-r--r--examples/donutbreakdown/donutbreakdown.pro (renamed from examples/donutdrilldown/donutdrilldown.pro)2
-rw-r--r--examples/donutbreakdown/main.cpp (renamed from examples/donutdrilldown/main.cpp)0
-rw-r--r--examples/donutbreakdown/widget.cpp (renamed from examples/donutdrilldown/widget.cpp)0
-rw-r--r--examples/donutbreakdown/widget.h (renamed from examples/donutdrilldown/widget.h)0
-rw-r--r--examples/examples.pro2
7 files changed, 14 insertions, 14 deletions
diff --git a/doc/src/examples-donutdrilldown.qdoc b/doc/src/examples-donutbreakdown.qdoc
index 55e8c557..0d6e9732 100644
--- a/doc/src/examples-donutdrilldown.qdoc
+++ b/doc/src/examples-donutbreakdown.qdoc
@@ -1,44 +1,44 @@
/*!
- \example examples/donutdrilldown
- \title Donut chart drilldown example
+ \example examples/donutbreakdown
+ \title Donut chart breakdown example
\subtitle
- This example shows how to use create a donut drilldown chart using QPieSeries API.
+ This example shows how to use create a donut breakdown chart using QPieSeries API.
Let's start by creating a QChartView instance and enabling the Antialiasing on it. Last line enables the animations of the chart.
- \snippet ../examples/donutdrilldown/widget.cpp 1
+ \snippet ../examples/donutbreakdown/widget.cpp 1
PieSeries is used to present the general data.
- \snippet ../examples/donutdrilldown/widget.cpp 2
+ \snippet ../examples/donutbreakdown/widget.cpp 2
Following block of code creates the slices for the mainData QPieSeries.
Then for every created slice a new series is created that stores the detailed data.
The details series is set to be a donut. Its size is adjusted so that it wraps around the mainData pie.
Next two signals from the mainData pie's slices are connected. This is used to keep the mainData slices agligned with their respective details series.
- \snippet ../examples/donutdrilldown/widget.cpp 3
+ \snippet ../examples/donutbreakdown/widget.cpp 3
Set the labels of the mainData to enabled and their postion to Outside.
Then add the mainData and detailedData series to the chart.
- \snippet ../examples/donutdrilldown/widget.cpp 4
+ \snippet ../examples/donutbreakdown/widget.cpp 4
Finally the widget is placed in a layout used by the application.
- \snippet ../examples/donutdrilldown/widget.cpp 5
+ \snippet ../examples/donutbreakdown/widget.cpp 5
To show that the detailed data stays aligned with the main data every 2.5 sec. one of the slices is modified.
It should be noted that int this example the mainData slices should not be modified directly as the change
cannot be applied to the detailed slices without the extra knowledge on how the split looks like.
- \snippet ../examples/donutdrilldown/widget.cpp 6
+ \snippet ../examples/donutbreakdown/widget.cpp 6
When the mainData slice layout is changed the detailed data layout has to be modified accordingly.
This is achived by setting the start and end angle of the detailed series.
- \snippet ../examples/donutdrilldown/widget.cpp 7
+ \snippet ../examples/donutbreakdown/widget.cpp 7
Highlight slot selects a random slice for the modification.
The slice is set to exploded to notify the user that its going to be changed.
@@ -47,6 +47,6 @@
Then the slice is modified. Respective mainData slice is modified as well to contain as the value the sum of the detailed series slices values.
Finally the slice exploded state is set to false.
- \snippet ../examples/donutdrilldown/widget.cpp 8
+ \snippet ../examples/donutbreakdown/widget.cpp 8
*/
diff --git a/doc/src/examples.qdoc b/doc/src/examples.qdoc
index ca79f163..fad9d187 100644
--- a/doc/src/examples.qdoc
+++ b/doc/src/examples.qdoc
@@ -28,7 +28,7 @@
<li><a href="examples-piechart.html">Pie chart</a></li>
<li><a href="examples-piechartdrilldown.html">Pie chart drilldown</a></li>
<li><a href="examples-donut.html">Donut chart</a></li>
- <li><a href="examples-donutdrilldown.html">Donut chart drilldown</a></li>
+ <li><a href="examples-donutbreakdown.html">Donut chart drilldown</a></li>
<li><a href="examples-presenterchart.html">Presenter chart</a></li>
<li><a href="examples-scatterchart.html">Scatter chart</a></li>
<li><a href="examples-scatterinteractions.html">Scatter interactions</a></li>
diff --git a/examples/donutdrilldown/donutdrilldown.pro b/examples/donutbreakdown/donutbreakdown.pro
index 671a8f25..c46c3bb9 100644
--- a/examples/donutdrilldown/donutdrilldown.pro
+++ b/examples/donutbreakdown/donutbreakdown.pro
@@ -2,7 +2,7 @@
error( "Couldn't find the examples.pri file!" )
}
-TARGET = donutdrilldown
+TARGET = donutbreakdown
SOURCES += main.cpp\
widget.cpp
diff --git a/examples/donutdrilldown/main.cpp b/examples/donutbreakdown/main.cpp
index 7b1f424b..7b1f424b 100644
--- a/examples/donutdrilldown/main.cpp
+++ b/examples/donutbreakdown/main.cpp
diff --git a/examples/donutdrilldown/widget.cpp b/examples/donutbreakdown/widget.cpp
index 33ba4113..33ba4113 100644
--- a/examples/donutdrilldown/widget.cpp
+++ b/examples/donutbreakdown/widget.cpp
diff --git a/examples/donutdrilldown/widget.h b/examples/donutbreakdown/widget.h
index c03196c3..c03196c3 100644
--- a/examples/donutdrilldown/widget.h
+++ b/examples/donutbreakdown/widget.h
diff --git a/examples/examples.pro b/examples/examples.pro
index ba53bbd4..72d5d4f4 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -28,6 +28,6 @@ SUBDIRS += \
horizontalstackedbarchart \
horizontalpercentbarchart \
donut \
- donutdrilldown \
+ donutbreakdown \
scrollchart \
datetimeaxis