25class LIBDTKWIDGETSHARED_EXPORT
DLoadingIndicator :
public QGraphicsView,
public DTK_CORE_NAMESPACE::DObject
29 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor DESIGNABLE
true SCRIPTABLE
true)
30 Q_PROPERTY(
bool loading READ loading WRITE setLoading)
31 Q_PROPERTY(
bool smooth READ smooth WRITE setSmooth)
32 Q_PROPERTY(QPixmap imageSource READ imageSource WRITE setImageSource)
33 Q_PROPERTY(QWidget* widgetSource READ widgetSource WRITE setWidgetSource)
34 Q_PROPERTY(
int aniDuration READ aniDuration WRITE setAniDuration)
35 Q_PROPERTY(QEasingCurve::Type aniEasingType READ aniEasingType WRITE setAniEasingType)
36 Q_PROPERTY(
RotationDirection direction READ direction WRITE setDirection NOTIFY directionChanged)
37 Q_PROPERTY(qreal rotate READ rotate WRITE setRotate NOTIFY rotateChanged)
49 Q_ENUMS(RotationDirection)
54 QColor backgroundColor()
const;
56 QWidget* widgetSource()
const;
57 QPixmap imageSource()
const;
58 int aniDuration()
const;
59 QEasingCurve::Type aniEasingType()
const;
60 QSize sizeHint() const Q_DECL_OVERRIDE;
62 RotationDirection direction() const;
68 void setLoading(
bool flag);
69 void setAniDuration(
int msecs);
70 void setAniEasingCurve(const QEasingCurve & easing);
71 void setBackgroundColor(const QColor &color);
72 void setRotate(QVariant angle);
73 void setWidgetSource(QWidget* widgetSource);
74 void setImageSource(const QPixmap &imageSource);
75 void setAniEasingType(QEasingCurve::Type aniEasingType);
76 void setSmooth(
bool smooth);
77 void setDirection(RotationDirection direction);
80 void directionChanged(RotationDirection direction);
81 void rotateChanged(qreal rotate);
84 void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;