| 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 | |
| 25 | QT_REQUIRE_CONFIG(action); |
| 26 | |
| 27 | QT_BEGIN_NAMESPACE |
| 28 | |
| 29 | class QShortcutMap; |
| 30 | |
| 31 | class Q_WIDGETS_EXPORT QtWidgetsActionPrivate : public QActionPrivate |
| 32 | { |
| 33 | Q_DECLARE_PUBLIC(QAction) |
| 34 | public: |
| 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> ; |
| 46 | |
| 47 | QObject *() const override; |
| 48 | void (QObject *) override; |
| 49 | #endif |
| 50 | }; |
| 51 | |
| 52 | QT_END_NAMESPACE |
| 53 | |
| 54 | #endif // QACTION_WIDGETS_P_H |
| 55 | |