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 QQUICKSTYLEITEMRADIOBUTTON_H |
5 | #define QQUICKSTYLEITEMRADIOBUTTON_H |
6 | |
7 | #include "qquickstyleitem.h" |
8 | #include <QtQuickTemplates2/private/qquickradiobutton_p.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QQuickStyleItemRadioButton : public QQuickStyleItem |
13 | { |
14 | Q_OBJECT |
15 | QML_NAMED_ELEMENT(RadioButton) |
16 | |
17 | public: |
18 | QFont styleFont(QQuickItem *control) const override; |
19 | |
20 | protected: |
21 | void connectToControl() const override; |
22 | void paintEvent(QPainter *painter) const override; |
23 | StyleItemGeometry calculateGeometry() override; |
24 | |
25 | private: |
26 | void initStyleOption(QStyleOptionButton &styleOption) const; |
27 | }; |
28 | |
29 | QT_END_NAMESPACE |
30 | |
31 | #endif // QQUICKSTYLEITEMRADIOBUTTON_H |
32 |