Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qbuttongroup_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 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
QBUTTONGROUP_P_H
6
#
define
QBUTTONGROUP_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtWidgets
/
private
/
qtwidgetsglobal_p
.
h
>
20
#
include
<
QtWidgets
/
qbuttongroup
.
h
>
21
22
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
23
24
#
include
<
QtCore
/
qlist
.
h
>
25
#
include
<
QtCore
/
qpointer
.
h
>
26
#
include
<
QtCore
/
qhash
.
h
>
27
28
QT_REQUIRE_CONFIG
(
buttongroup
);
29
30
QT_BEGIN_NAMESPACE
31
32
class
QButtonGroupPrivate:
public
QObjectPrivate
33
{
34
Q_DECLARE_PUBLIC(QButtonGroup)
35
36
public
:
37
QButtonGroupPrivate() : exclusive(
true
) {}
38
39
QList<QAbstractButton *> buttonList;
40
QPointer<QAbstractButton> checkedButton;
41
void
detectCheckedButton();
42
43
bool
exclusive;
44
QHash<QAbstractButton*,
int
> mapping;
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QBUTTONGROUP_P_H
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(buttongroup)
qtbase
src
widgets
widgets
qbuttongroup_p.h
Generated on
for Qt by
1.18.0