aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/qquickdefaultbusyindicator_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-05-12 19:14:19 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-05-16 03:09:44 +0000
commit21f5f9e07655f0ac34c65cc2a14489213097c622 (patch)
treee155fdfb5bd8bf6cbe34c6c16ba685b7704214b9 /src/imports/controls/qquickdefaultbusyindicator_p.h
parentebcefb5586b387445d4152ba2ed833074d9a6ad6 (diff)
QQuickDefaultBusyIndicator: allow specifying pen and fill separately
One color is enough for the current Default style, but if we allow configuring the colors, it must be possible to have them separately to be able to get decent looks. Change-Id: Ibbe6b73142edc9829ca75603cd2e86654ae824b0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/qquickdefaultbusyindicator_p.h')
-rw-r--r--src/imports/controls/qquickdefaultbusyindicator_p.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/imports/controls/qquickdefaultbusyindicator_p.h b/src/imports/controls/qquickdefaultbusyindicator_p.h
index 3bbd6c31..e214020c 100644
--- a/src/imports/controls/qquickdefaultbusyindicator_p.h
+++ b/src/imports/controls/qquickdefaultbusyindicator_p.h
@@ -55,13 +55,17 @@ QT_BEGIN_NAMESPACE
class QQuickDefaultBusyIndicator : public QQuickItem
{
Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
+ Q_PROPERTY(QColor pen READ pen WRITE setPen FINAL)
+ Q_PROPERTY(QColor fill READ fill WRITE setFill FINAL)
public:
explicit QQuickDefaultBusyIndicator(QQuickItem *parent = nullptr);
- QColor color() const;
- void setColor(const QColor &color);
+ QColor pen() const;
+ void setPen(const QColor &pen);
+
+ QColor fill() const;
+ void setFill(const QColor &fill);
int elapsed() const;
@@ -71,7 +75,8 @@ protected:
private:
int m_elapsed;
- QColor m_color;
+ QColor m_pen;
+ QColor m_fill;
};
QT_END_NAMESPACE