Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:27:17

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QRADIOBUTTON_H
0006 #define QRADIOBUTTON_H
0007 
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtWidgets/qabstractbutton.h>
0010 
0011 QT_REQUIRE_CONFIG(radiobutton);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 
0016 class QRadioButtonPrivate;
0017 class QStyleOptionButton;
0018 
0019 class Q_WIDGETS_EXPORT QRadioButton : public QAbstractButton
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit QRadioButton(QWidget *parent = nullptr);
0025     explicit QRadioButton(const QString &text, QWidget *parent = nullptr);
0026     ~QRadioButton();
0027 
0028     QSize sizeHint() const override;
0029     QSize minimumSizeHint() const override;
0030 
0031 protected:
0032     bool event(QEvent *e) override;
0033     bool hitButton(const QPoint &) const override;
0034     void paintEvent(QPaintEvent *) override;
0035     void mouseMoveEvent(QMouseEvent *) override;
0036     virtual void initStyleOption(QStyleOptionButton *button) const;
0037 
0038 
0039 private:
0040     Q_DECLARE_PRIVATE(QRadioButton)
0041     Q_DISABLE_COPY(QRadioButton)
0042     friend class QAccessibleButton;
0043 };
0044 
0045 QT_END_NAMESPACE
0046 
0047 #endif // QRADIOBUTTON_H