From d81114a9429d28dec99d0cd13863114a71507c84 2012-02-27 11:03:25 From: Jani Honkonen Date: 2012-02-27 11:03:25 Subject: [PATCH] Update pie doc --- diff --git a/example/piechart/main.cpp b/example/piechart/main.cpp index d33c198..5a73bfc 100644 --- a/example/piechart/main.cpp +++ b/example/piechart/main.cpp @@ -25,6 +25,11 @@ int main(int argc, char *argv[]) chartView->addSeries(series); //! [1] + //! [2] + series->enableHoverHighlight(true); + series->enableClickExplodes(true); + //! [2] + window.setCentralWidget(chartView); window.resize(600, 600); window.show(); diff --git a/src/piechart/qpieseries.cpp b/src/piechart/qpieseries.cpp index 552ede4..ede2cc4 100644 --- a/src/piechart/qpieseries.cpp +++ b/src/piechart/qpieseries.cpp @@ -116,6 +116,11 @@ bool QPieSeries::ChangeSet::isEmpty() const Example on how to create a chart with pie series: \snippet ../example/piechart/main.cpp 1 + + To help with the most common user intercation scenarions there some convenience functions. Specifically + exploding and higlighting: + \snippet ../example/piechart/main.cpp 2 + */ /*! @@ -172,7 +177,7 @@ void QPieSeries::set(QList slices) } /*! - Adds an array of slices to the series. + Adds an array of \a slices to the series. Slice ownership is passed to the series. */ void QPieSeries::add(QList slices) @@ -350,7 +355,7 @@ void QPieSeries::setLabelsVisible(bool visible) /*! Convenience method for exploding a slice when user clicks the pie. - \sa QPieSlice::isExploded(), QPieSlice::setExploded() + \sa QPieSlice::isExploded(), QPieSlice::setExploded(), QPieSlice::setExplodeDistance() */ void QPieSeries::enableClickExplodes(bool enable) {