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
qaction_widgets_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QACTION_WIDGETS_P_H
5#define QACTION_WIDGETS_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/qaction_p.h>
19#if QT_CONFIG(menu)
20#include <QtWidgets/qmenu.h>
21#endif
22
23#include <QtCore/qpointer.h>
24
26
28
29class QShortcutMap;
30
31class Q_WIDGETS_EXPORT QtWidgetsActionPrivate : public QActionPrivate
32{
33 Q_DECLARE_PUBLIC(QAction)
34public:
37
38 void destroy() override;
39
40#if QT_CONFIG(shortcut)
41 QShortcutMap::ContextMatcher contextMatcher() const override;
42#endif
43
44#if QT_CONFIG(menu)
45 QPointer<QMenu> m_menu;
46
47 QObject *menu() const override;
48 void setMenu(QObject *menu) override;
49#endif
50};
51
53
54#endif // QACTION_WIDGETS_P_H
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
\inmodule QtCore
Definition qobject.h:103
bool(* ContextMatcher)(QObject *object, Qt::ShortcutContext context)
QtWidgetsActionPrivate()=default
Combined button and popup list for selecting options.
#define QT_REQUIRE_CONFIG(feature)
QMenu menu
[5]