2020-06-19 11:26:20 +00:00
|
|
|
#ifndef PIECHARTPAINTED_H
|
|
|
|
#define PIECHARTPAINTED_H
|
|
|
|
|
|
|
|
#include <QskControl.h>
|
|
|
|
|
|
|
|
#include "CircularProgressBar.h"
|
|
|
|
|
|
|
|
class QskTextLabel;
|
|
|
|
class QQuickPaintedItem;
|
|
|
|
|
|
|
|
class PieChartPainted : public QskControl
|
|
|
|
{
|
|
|
|
public:
|
2020-06-23 15:38:40 +00:00
|
|
|
PieChartPainted(const QColor& color, int progress, int value, QQuickItem* parent = nullptr);
|
2020-06-19 11:26:20 +00:00
|
|
|
|
|
|
|
virtual QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const override;
|
|
|
|
void updateLayout() override;
|
|
|
|
|
|
|
|
private:
|
2020-06-23 15:38:40 +00:00
|
|
|
QColor m_color;
|
2020-06-19 11:26:20 +00:00
|
|
|
CircularProgressBar* m_progressBar;
|
|
|
|
QskTextLabel* m_progressLabel;
|
|
|
|
// QskTextLabel* m_numberLabel;
|
|
|
|
// QskTextLabel* m_unitLabel;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PIECHARTPAINTED_H
|