diff --git a/src/charts/doc/qtcharts.qdocconf b/src/charts/doc/qtcharts.qdocconf index 240e277..df93705 100644 --- a/src/charts/doc/qtcharts.qdocconf +++ b/src/charts/doc/qtcharts.qdocconf @@ -67,4 +67,6 @@ navigation.landingpage = Qt Charts navigation.cppclassespage = Qt Charts C++ Classes navigation.qmltypespage = Qt Charts QML Types +depends = qtwidgets + buildversion = Qt Charts $QT_VERSION Reference Documentation diff --git a/src/charts/legend/qlegend.cpp b/src/charts/legend/qlegend.cpp index 6d9ba2c..6d40713 100644 --- a/src/charts/legend/qlegend.cpp +++ b/src/charts/legend/qlegend.cpp @@ -37,6 +37,7 @@ QT_CHARTS_BEGIN_NAMESPACE /*! \class QLegend \inmodule Qt Charts + \inherits QGraphicsWidget \brief Legend object. \mainclass @@ -56,7 +57,7 @@ QT_CHARTS_BEGIN_NAMESPACE \brief Legend is part of Qt Chart QML API. - Legend is a graphical object, whics displays legend of the chart. Legend state is updated by + Legend is a graphical object, which displays legend of the chart. Legend state is updated by ChartView, when series have been changed. Legend is used via ChartView class. For example: \code ChartView { @@ -99,6 +100,14 @@ QT_CHARTS_BEGIN_NAMESPACE */ /*! + \qmlproperty bool Legend::visible + \brief Whether the legend is visible or not. + + By default, this property is \c true. + \sa QGraphicsObject::visible +*/ + +/*! \property QLegend::color The color of the legend, i.e. the background (brush) color. Note that if you change the color of the legend, the style of the legend brush is set to Qt::SolidPattern. diff --git a/src/charts/xychart/qxyseries.cpp b/src/charts/xychart/qxyseries.cpp index 6a70cb7..d99dca3 100644 --- a/src/charts/xychart/qxyseries.cpp +++ b/src/charts/xychart/qxyseries.cpp @@ -330,6 +330,7 @@ QT_CHARTS_BEGIN_NAMESPACE */ /*! \qmlsignal XYSeries::onPointsReplaced() + Signal is emitted when all points have been replaced with other points. */ /*! diff --git a/src/chartsqml2/declarativechart.cpp b/src/chartsqml2/declarativechart.cpp index 3cbe157..f502432 100644 --- a/src/chartsqml2/declarativechart.cpp +++ b/src/chartsqml2/declarativechart.cpp @@ -127,6 +127,11 @@ QT_CHARTS_BEGIN_NAMESPACE */ /*! + \qmlproperty list ChartView::axes + The axes of the ChartView. +*/ + +/*! \qmlproperty bool ChartView::dropShadowEnabled The chart's border drop shadow. Set to true to enable drop shadow. */ @@ -205,12 +210,22 @@ QT_CHARTS_BEGIN_NAMESPACE */ /*! + \qmlmethod ChartView::setAxisX(AbstractAxis axis, AbstractSeries series) + Set the x-axis of the series. +*/ + +/*! \qmlmethod Axis ChartView::axisY(AbstractSeries series) The y-axis of the series. */ /*! - \qmlmethod ChartView::zoomY(real factor) + \qmlmethod ChartView::setAxisY(AbstractAxis axis, AbstractSeries series) + Set the y-axis of the series. +*/ + +/*! + \qmlmethod ChartView::zoom(real factor) Zooms in by \a factor on the center of the chart. */