##// END OF EJS Templates
Fix documentation typo...
Fix documentation typo Change-Id: Ibc5b1f403f143eddc49a8aeeedd9de4145825b94 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>

File last commit:

r2776:bc1f6aa59d42
r2785:b99b50e22ed3
Show More
declarativepolarchart.cpp
64 lines | 2.0 KiB | text/x-c | CppLexer
/ src / chartsqml2 / declarativepolarchart.cpp
Miikka Heikkinen
Add Polar chart support...
r2483 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
Miikka Heikkinen
Add Polar chart support...
r2483 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
Miikka Heikkinen
Add Polar chart support...
r2483 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Miikka Heikkinen
Add Polar chart support...
r2483 **
Titta Heikkala
Updated license headers...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
Titta Heikkala
Copyright header changes...
r2776 ** agreement between you and The Qt Company.
Miikka Heikkinen
Add Polar chart support...
r2483 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
Miikka Heikkinen
Add Polar chart support...
r2483 **
****************************************************************************/
#include "declarativepolarchart.h"
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QChart>
Miikka Heikkinen
Add Polar chart support...
r2483
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Miikka Heikkinen
Add Polar chart support...
r2483
/*!
Titta Heikkala
Fix Charts documentation...
r2639 \qmltype PolarChartView
\instantiates DeclarativePolarChart
Titta Heikkala
Qt Charts project file structure change...
r2712 \inqmlmodule QtCharts
Miikka Heikkinen
Add Polar chart support...
r2483
Titta Heikkala
Add missing QML types to the documentation...
r2727 \brief Polar chart element.
Titta Heikkala
Qt Charts project file structure change...
r2712 PolarChartView element is the parent that is responsible for showing different chart series
types in a polar chart.
Polar charts support line, spline, area, and scatter series, and all axis types
supported by those series.
\note When setting ticks to an angular ValueAxis, keep in mind that the first and last tick
are co-located at 0/360 degree angle.
\note If the angular distance between two consecutive points in a series is more than 180
degrees, any line connecting the two points becomes meaningless, so choose the axis ranges
accordingly when displaying line, spline, or area series.
The following QML shows how to create a polar chart with two series:
\snippet qmlpolarchart/qml/qmlpolarchart/View1.qml 1
Miikka Heikkinen
Add Polar chart support...
r2483
Titta Heikkala
Qt Charts project file structure change...
r2712 \beginfloatleft
\image examples_qmlpolarchart1.png
\endfloat
\clearfloat
Miikka Heikkinen
Add Polar chart support...
r2483 */
Titta Heikkala
Qt Charts project file structure change...
r2712 DeclarativePolarChart::DeclarativePolarChart(QQuickItem *parent)
Miikka Heikkinen
Add Polar chart support...
r2483 : DeclarativeChart(QChart::ChartTypePolar, parent)
{
}
DeclarativePolarChart::~DeclarativePolarChart()
{
}
#include "moc_declarativepolarchart.cpp"
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE