5#ifndef DCIRCLEPROGRESS_H
6#define DCIRCLEPROGRESS_H
8#include <dtkwidget_global.h>
9#include <DThemeManager>
16DWIDGET_BEGIN_NAMESPACE
18class DCircleProgressPrivate;
19class LIBDTKWIDGETSHARED_EXPORT
DCircleProgress :
public QWidget,
public DTK_CORE_NAMESPACE::DObject
22 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor DESIGNABLE
true)
23 Q_PROPERTY(QColor chunkColor READ chunkColor WRITE setChunkColor DESIGNABLE
true)
24 Q_PROPERTY(
int lineWidth READ lineWidth WRITE setLineWidth DESIGNABLE
true)
35 void setValue(
int value);
38 void setText(
const QString &text);
40 const QColor backgroundColor()
const;
41 void setBackgroundColor(
const QColor &color);
43 const QColor chunkColor()
const;
44 void setChunkColor(
const QColor &color);
46 int lineWidth()
const;
47 void setLineWidth(
const int width);
50 QLabel *bottomLabel();
53 void valueChanged(
const int value)
const;
56 void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
57 void mouseReleaseEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
58 void enterEvent(
QEvent *e) Q_DECL_OVERRIDE;
59 void leaveEvent(
QEvent *e) Q_DECL_OVERRIDE;