1// Copyright (C) 2019 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 QGUIACTIONGROUP_P_H
5#define QGUIACTIONGROUP_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <QtGui/qactiongroup.h>
20#include <QtGui/qfont.h>
21#if QT_CONFIG(shortcut)
22# include <QtGui/private/qshortcutmap_p.h>
23#endif
24#include "private/qobject_p.h"
25
26QT_REQUIRE_CONFIG(action);
27
28QT_BEGIN_NAMESPACE
29
30class Q_GUI_EXPORT QActionGroupPrivate : public QObjectPrivate
31{
32 Q_DECLARE_PUBLIC(QActionGroup)
33public:
34 enum Signal { Triggered, Hovered };
35
36 QActionGroupPrivate();
37 ~QActionGroupPrivate();
38
39 virtual void emitSignal(Signal, QAction *) {}
40
41 QList<QAction *> actions;
42 QPointer<QAction> current;
43 uint enabled : 1;
44 uint visible : 1;
45 QActionGroup::ExclusionPolicy exclusionPolicy = QActionGroup::ExclusionPolicy::Exclusive;
46
47private:
48 void _q_actionTriggered(); //private slot
49 void _q_actionChanged(); //private slot
50 void _q_actionHovered(); //private slot
51};
52
53QT_END_NAMESPACE
54
55#endif // QACTIONGROUP_P_H
56

source code of qtbase/src/gui/kernel/qactiongroup_p.h