From be90a995df75fa075ecd1343af5aaee676261b9e 2012-04-04 13:26:03 From: Jani Honkonen Date: 2012-04-04 13:26:03 Subject: [PATCH] Pie doc updates --- diff --git a/doc/src/examples-piechart.qdoc b/doc/src/examples-piechart.qdoc index 66e0288..4a3c58f 100644 --- a/doc/src/examples-piechart.qdoc +++ b/doc/src/examples-piechart.qdoc @@ -1,9 +1,7 @@ /*! \example examples/piechart - \title LineChart Example + \title Piechart Example \subtitle - The example shows how to create simple pie chart. - - ... -*/ \ No newline at end of file + The example shows how to create simple pie chart and do some customizations to a pie slice. +*/ diff --git a/doc/src/examples-piechartdrilldown.qdoc b/doc/src/examples-piechartdrilldown.qdoc new file mode 100644 index 0000000..3dd6571 --- /dev/null +++ b/doc/src/examples-piechartdrilldown.qdoc @@ -0,0 +1,7 @@ +/*! + \example examples/piechartdrilldown + \title Piechart drilldown example + \subtitle + + The example shows how to implement a piechart with drilldown effect. +*/ diff --git a/doc/src/examples.qdoc b/doc/src/examples.qdoc index 7c8fa9c..c2476d1 100644 --- a/doc/src/examples.qdoc +++ b/doc/src/examples.qdoc @@ -13,16 +13,17 @@ diff --git a/examples/piechart/main.cpp b/examples/piechart/main.cpp index 05607d9..8460c13 100644 --- a/examples/piechart/main.cpp +++ b/examples/piechart/main.cpp @@ -46,20 +46,24 @@ int main(int argc, char *argv[]) slice->setPen(QPen(Qt::darkGreen, 2)); slice->setBrush(Qt::green); //![2] + //![3] QChart* chart = new QChart(); chart->addSeries(series); chart->setTitle("Simple piechart example"); //![3] + //![4] QChartView* chartView = new QChartView(chart); chartView->setRenderHint(QPainter::Antialiasing); //![4] + //![5] QMainWindow window; window.setCentralWidget(chartView); window.resize(400, 300); window.show(); //![5] + return a.exec(); } diff --git a/src/piechart/qpieslice.cpp b/src/piechart/qpieslice.cpp index 6e6f9a0..5871936 100644 --- a/src/piechart/qpieslice.cpp +++ b/src/piechart/qpieslice.cpp @@ -250,8 +250,6 @@ qreal QPieSlice::labelArmLengthFactor() const \fn void QPieSlice::changed() This signal emitted when something has changed in the slice. - - \sa QPieSeries::changed() */ /*!