27 lines
538 B
C++
27 lines
538 B
C++
#ifndef PIECHART_H
|
|
#define PIECHART_H
|
|
|
|
#include <QskControl.h>
|
|
|
|
class PieChart : public QskControl
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QSK_SUBCONTROLS( Panel, Labels )
|
|
|
|
PieChart( QQuickItem* parent = nullptr );
|
|
|
|
QVector< float > angles() const;
|
|
void setAngles( const QVector< float >& angles );
|
|
|
|
QVector< QString > labels() const;
|
|
void setLabels( const QVector< QString >& labels );
|
|
|
|
private:
|
|
QVector< float > m_angles;
|
|
QVector< QString > m_labels;
|
|
};
|
|
|
|
#endif // PIECHART_H
|