Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickstyleitemprogressbar.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKSTYLEITEMPROGRESSBAR_H
6#define QQUICKSTYLEITEMPROGRESSBAR_H
7
9#include <QtQuickTemplates2/private/qquickprogressbar_p.h>
10
11QT_BEGIN_NAMESPACE
12
13class QQuickStyleItemProgressBar : public QQuickStyleItem
14{
15 Q_OBJECT
16
17 QML_NAMED_ELEMENT(ProgressBar)
18
19public:
20 QFont styleFont(QQuickItem *control) const override;
21
22protected:
23 void connectToControl() const override;
24 void paintEvent(QPainter *painter) const override;
25 StyleItemGeometry calculateGeometry() override;
26
27private:
28 void initStyleOption(QStyleOptionProgressBar &styleOption) const;
29};
30
32
33#endif // QQUICKSTYLEITEMPROGRESSBAR_H
#define QML_NAMED_ELEMENT(NAME)