aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicknativestyle/items/qquickstyleitemradiodelegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicknativestyle/items/qquickstyleitemradiodelegate.h')
-rw-r--r--src/quicknativestyle/items/qquickstyleitemradiodelegate.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/quicknativestyle/items/qquickstyleitemradiodelegate.h b/src/quicknativestyle/items/qquickstyleitemradiodelegate.h
new file mode 100644
index 0000000000..3661ce792e
--- /dev/null
+++ b/src/quicknativestyle/items/qquickstyleitemradiodelegate.h
@@ -0,0 +1,25 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QQUICKSTYLEITEMRADIODELEGATE_H
+#define QQUICKSTYLEITEMRADIODELEGATE_H
+
+#include "qquickstyleitemradiobutton.h"
+
+QT_BEGIN_NAMESPACE
+
+class QQuickStyleItemRadioDelegate : public QQuickStyleItemRadioButton
+{
+ Q_OBJECT
+ QML_NAMED_ELEMENT(RadioDelegate)
+
+protected:
+ void connectToControl() const override;
+
+private:
+ void initStyleOption(QStyleOptionButton &styleOption) const override;
+};
+
+QT_END_NAMESPACE
+
+#endif // QQUICKSTYLEITEMRADIODELEGATE_H