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
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
25QT_REQUIRE_CONFIG(action);
26
27QT_BEGIN_NAMESPACE
28
29class QShortcutMap;
30
31class Q_WIDGETS_EXPORT QtWidgetsActionPrivate : public QActionPrivate
32{
33 Q_DECLARE_PUBLIC(QAction)
34public:
35 QtWidgetsActionPrivate() = default;
36 ~QtWidgetsActionPrivate();
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
52QT_END_NAMESPACE
53
54#endif // QACTION_WIDGETS_P_H
\inmodule QtSql
Combined button and popup list for selecting options.