Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qactiongroup_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QGUIACTIONGROUP_P_H
6#define QGUIACTIONGROUP_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 for the convenience
13// of other Qt classes. 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 <QtGui/private/qtguiglobal_p.h>
20#include <QtGui/qactiongroup.h>
21#include <QtGui/qfont.h>
22#if QT_CONFIG(shortcut)
23# include <QtGui/private/qshortcutmap_p.h>
24#endif
25
26#include <QtCore/qpointer.h>
27#include "private/qobject_p.h"
28
30
32
33class Q_GUI_EXPORT QActionGroupPrivate : public QObjectPrivate
34{
35 Q_DECLARE_PUBLIC(QActionGroup)
36public:
37 enum Signal { Triggered, Hovered };
38
39 QActionGroupPrivate();
40 ~QActionGroupPrivate();
41
42 virtual void emitSignal(Signal, QAction *) {}
43
44 QList<QAction *> actions;
45 QPointer<QAction> current;
46 uint enabled : 1;
47 uint visible : 1;
48 QActionGroup::ExclusionPolicy exclusionPolicy = QActionGroup::ExclusionPolicy::Exclusive;
49
50private:
51 void _q_actionTriggered(); //private slot
52 void _q_actionChanged(); //private slot
53 void _q_actionHovered(); //private slot
54};
55
56QT_END_NAMESPACE
57
58#endif // QACTIONGROUP_P_H
QT_REQUIRE_CONFIG(action)
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)