1 | // Copyright (C) 2020 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QQUICKSTYLEITEMPROGRESSBAR_H |
5 | #define QQUICKSTYLEITEMPROGRESSBAR_H |
6 | |
7 | #include "qquickstyleitem.h" |
8 | #include <QtQuickTemplates2/private/qquickprogressbar_p.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QQuickStyleItemProgressBar : public QQuickStyleItem |
13 | { |
14 | Q_OBJECT |
15 | |
16 | QML_NAMED_ELEMENT(ProgressBar) |
17 | |
18 | public: |
19 | QFont styleFont(QQuickItem *control) const override; |
20 | |
21 | protected: |
22 | void connectToControl() const override; |
23 | void paintEvent(QPainter *painter) const override; |
24 | StyleItemGeometry calculateGeometry() override; |
25 | |
26 | private: |
27 | void initStyleOption(QStyleOptionProgressBar &styleOption) const; |
28 | }; |
29 | |
30 | QT_END_NAMESPACE |
31 | |
32 | #endif // QQUICKSTYLEITEMPROGRESSBAR_H |
33 |