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
10QT_BEGIN_NAMESPACE
11
12class QQuickStyleItemProgressBar : public QQuickStyleItem
13{
14 Q_OBJECT
15
16 QML_NAMED_ELEMENT(ProgressBar)
17
18public:
19 QFont styleFont(QQuickItem *control) const override;
20
21protected:
22 void connectToControl() const override;
23 void paintEvent(QPainter *painter) const override;
24 StyleItemGeometry calculateGeometry() override;
25
26private:
27 void initStyleOption(QStyleOptionProgressBar &styleOption) const;
28};
29
30QT_END_NAMESPACE
31
32#endif // QQUICKSTYLEITEMPROGRESSBAR_H
33

source code of qtdeclarative/src/quicknativestyle/items/qquickstyleitemprogressbar.h