Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
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
25#include <QtCore/qpointer.h>
26#include "private/qobject_p.h"
27
29
31
32class Q_GUI_EXPORT QActionGroupPrivate : public QObjectPrivate
33{
34 Q_DECLARE_PUBLIC(QActionGroup)
35public:
36 enum Signal { Triggered, Hovered };
37
40
41 virtual void emitSignal(Signal, QAction *) {}
42
43 QList<QAction *> actions;
44 QPointer<QAction> current;
48
49private:
50 void _q_actionTriggered(); //private slot
51 void _q_actionChanged(); //private slot
52 void _q_actionHovered(); //private slot
53};
54
56
57#endif // QACTIONGROUP_P_H
QPointer< QAction > current
virtual void emitSignal(Signal, QAction *)
QList< QAction * > actions
The QActionGroup class groups actions together.
ExclusionPolicy
This enum specifies the different policies that can be used to control how the group performs exclusi...
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
Combined button and popup list for selecting options.
#define QT_REQUIRE_CONFIG(feature)
unsigned int uint
Definition qtypes.h:34