qt-material-widgets/components/circularprogress_internal.h

34 lines
741 B
C
Raw Normal View History

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:
CircularProgressDelegate(CircularProgress *parent = 0);
~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