Coverage Report

Created: 2026-06-07 08:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/kernel/qactiongroup_p.h
Line
Count
Source
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
29
QT_REQUIRE_CONFIG(action);
30
31
QT_BEGIN_NAMESPACE
32
33
class Q_GUI_EXPORT QActionGroupPrivate : public QObjectPrivate
34
{
35
0
    Q_DECLARE_PUBLIC(QActionGroup)
Unexecuted instantiation: QActionGroupPrivate::q_func()
Unexecuted instantiation: QActionGroupPrivate::q_func() const
36
0
public:
37
0
    enum Signal { Triggered, Hovered };
38
0
39
0
    QActionGroupPrivate();
40
0
    ~QActionGroupPrivate();
41
0
42
0
    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
50
private:
51
    void _q_actionTriggered();  //private slot
52
    void _q_actionChanged();    //private slot
53
    void _q_actionHovered();    //private slot
54
};
55
56
QT_END_NAMESPACE
57
58
#endif // QACTIONGROUP_P_H