2016-06-19 09:16:04 +00:00
|
|
|
#ifndef CIRCULARPROGRESS_INTERNAL_H
|
|
|
|
#define CIRCULARPROGRESS_INTERNAL_H
|
|
|
|
|
2016-06-19 09:17:47 +00:00
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class CircularProgress;
|
|
|
|
|
|
|
|
class CircularProgressDelegate : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY(qreal dashOffset WRITE setDashOffset READ dashOffset)
|
|
|
|
Q_PROPERTY(qreal dashLength WRITE setDashLength READ dashLength)
|
|
|
|
|
|
|
|
public:
|
2016-06-19 09:49:55 +00:00
|
|
|
CircularProgressDelegate(CircularProgress *parent);
|
2016-06-19 09:17:47 +00:00
|
|
|
~CircularProgressDelegate();
|
|
|
|
|
|
|
|
void setDashOffset(qreal offset);
|
|
|
|
qreal dashOffset() const;
|
|
|
|
|
|
|
|
void setDashLength(qreal value);
|
|
|
|
qreal dashLength() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(CircularProgressDelegate)
|
|
|
|
|
|
|
|
CircularProgress *const progress;
|
|
|
|
qreal _dashOffset;
|
|
|
|
qreal _dashLength;
|
|
|
|
};
|
|
|
|
|
2016-06-19 09:16:04 +00:00
|
|
|
#endif // CIRCULARPROGRESS_INTERNAL_H
|