2020-05-22 13:15:38 +00:00
|
|
|
#include "PieChart.h"
|
|
|
|
|
|
|
|
QSK_SUBCONTROL( PieChart, Panel )
|
|
|
|
QSK_SUBCONTROL( PieChart, Labels )
|
|
|
|
|
2021-03-26 08:45:33 +00:00
|
|
|
PieChart::PieChart( QQuickItem* parent ) : QskControl( parent )
|
2020-05-22 13:15:38 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QVector< float > PieChart::angles() const
|
|
|
|
{
|
|
|
|
return m_angles;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PieChart::setAngles( const QVector< float >& angles )
|
|
|
|
{
|
|
|
|
m_angles = angles;
|
|
|
|
}
|
|
|
|
|
|
|
|
QVector< QString > PieChart::labels() const
|
|
|
|
{
|
|
|
|
return m_labels;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PieChart::setLabels( const QVector< QString >& labels )
|
|
|
|
{
|
|
|
|
m_labels = labels;
|
|
|
|
}
|