summary refs log tree commit diff
path: root/src/ui/LoadingIndicator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/LoadingIndicator.h')
-rw-r--r--src/ui/LoadingIndicator.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/LoadingIndicator.h b/src/ui/LoadingIndicator.h

index 458ecd40..33095c4c 100644 --- a/src/ui/LoadingIndicator.h +++ b/src/ui/LoadingIndicator.h
@@ -13,7 +13,7 @@ class QPaintEvent; class LoadingIndicator : public QWidget { Q_OBJECT - Q_PROPERTY(QColor color READ color WRITE setColor) + Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) public: LoadingIndicator(QWidget *parent = nullptr); @@ -24,7 +24,11 @@ public: void stop(); QColor color() { return color_; } - void setColor(QColor color) { color_ = color; } + void setColor(QColor color) + { + color_ = color; + emit colorChanged(); + } int interval() { return interval_; } void setInterval(int interval) { interval_ = interval; } @@ -32,6 +36,9 @@ public: private slots: void onTimeout(); +signals: + void colorChanged(); + private: int interval_; int angle_;