2016-06-18 09:12:20 +00:00
|
|
|
#include "circularprogress.h"
|
2016-06-18 09:36:40 +00:00
|
|
|
#include <QPainter>
|
2016-06-18 09:15:39 +00:00
|
|
|
#include "circularprogress_p.h"
|
|
|
|
|
|
|
|
CircularProgressPrivate::CircularProgressPrivate(CircularProgress *q)
|
|
|
|
: q_ptr(q)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CircularProgressPrivate::~CircularProgressPrivate()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CircularProgressPrivate::init()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CircularProgress::CircularProgress(QWidget *parent)
|
|
|
|
: QWidget(parent),
|
|
|
|
d_ptr(new CircularProgressPrivate(this))
|
|
|
|
{
|
|
|
|
d_func()->init();
|
|
|
|
}
|
|
|
|
|
|
|
|
CircularProgress::~CircularProgress()
|
|
|
|
{
|
|
|
|
}
|
2016-06-18 09:36:40 +00:00
|
|
|
|
|
|
|
void CircularProgress::paintEvent(QPaintEvent *event)
|
|
|
|
{
|
|
|
|
QPainter painter(this);
|
|
|
|
|
|
|
|
painter.drawRect(rect());
|
|
|
|
}
|